Commit 737c84ec authored by Vladimir Popescu's avatar Vladimir Popescu
Browse files

[schema, entities] Drop the identifier for subject-specific entities (related to #3314076)

parent 4bc6d3700832
......@@ -24,11 +24,7 @@ from cubicweb.entities import AnyEntity, fetch_config
class GenomicMeasure(AnyEntity):
__regid__ = 'GenomicMeasure'
fetch_attrs, fetch_order = fetch_config(('identifier', 'filepath',
'type', 'format'))
def dc_title(self):
return self.identifier
fetch_attrs, fetch_order = fetch_config(('type', 'format'))
@property
def image_url(self):
......
......@@ -18,3 +18,5 @@
drop_relation_definition('GenomicMeasure', 'results_file', 'File')
remove_cube('file')
drop_attribute('GenomicMeasure', 'identifier')
......@@ -119,7 +119,6 @@ class Snp(EntityType):
###############################################################################
class GenomicMeasure(EntityType):
""" A genomic measure """
identifier = String(required=True, indexed=True, maxsize=64)
type = String(maxsize=256, required=True, indexed=True)
format = String(maxsize=128, indexed=True)
chip_serialnum = Int()
......
......@@ -25,7 +25,7 @@ class GenomicSchemaTC(CubicWebTC):
according to the schema.
"""
req = self.request()
t_gen_meas = req.create_entity('GenomicMeasure', identifier=u'Test gen meas id',
t_gen_meas = req.create_entity('GenomicMeasure',
type=u'Test measure type', format=u'raw')
t_chrom = req.create_entity('Chromosome', name=u'Test chr 1', identifier=u'chr1')
t_other_chrom = req.create_entity('Chromosome', name=u'Test chr 2', identifier=u'chr2')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment