-
Notifications
You must be signed in to change notification settings - Fork 1
Metadata server #33
base: master
Are you sure you want to change the base?
Metadata server #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass
sa.UniqueConstraint('field_set_id', 'field', | ||
name='unique_name_per_field_set_constraint'), | ||
) | ||
type = sa.Column(sa.Enum('Integer', 'String', 'Float', 'Flag', name='type_enum')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nullable=False
is_filter = sa.Column(sa.Boolean, nullable=False) | ||
is_format = sa.Column(sa.Boolean, nullable=False) | ||
is_info = sa.Column(sa.Boolean, nullable=False) | ||
length_type = sa.Column(sa.Enum('A', 'R', 'G', 'VAR', 'NUM', name='length_enum')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nullable = False
metadb/models/field.py
Outdated
is_format = sa.Column(sa.Boolean, nullable=False) | ||
is_info = sa.Column(sa.Boolean, nullable=False) | ||
length_type = sa.Column(sa.Enum('A', 'R', 'G', 'VAR', 'NUM', name='length_enum')) | ||
length_intval = sa.Column(sa.Integer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set server default 1
except exc.DataError as e: | ||
self.session.rollback() | ||
raise ValueError("{0} : {1} ".format(str(e), guid)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add an if statement if( reader) surrounding all the reader statements? ie. allow calling registerFieldSet with reader=None.
@kgururaj - Of the 4 suggestions, the first two could not be implemented. There is at least one field |
Were these the FILTER fields with no length and type attributes? |
Yes karthik. Filter fields. |
@kgururaj - committed schema changes
FYI - @kdatta