-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BI-998] - Add tags to traits #95
Conversation
@@ -55,13 +56,17 @@ | |||
@Property(name = "brapi.server.reference-source") | |||
private String referenceSource; | |||
private ObservationDAO observationDao; | |||
private Gson gson; | |||
|
|||
private String TAGS_KEY = "tags"; |
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.
could be final static
@@ -36,7 +36,8 @@ | |||
SCALE_DECIMAL_PLACES("Scale decimal places"), | |||
SCALE_LOWER_LIMIT("Scale lower limit"), | |||
SCALE_UPPER_LIMIT("Scale upper limit"), | |||
SCALE_CATEGORIES("Scale categories"); | |||
SCALE_CATEGORIES("Scale categories"), | |||
TAGS("Tags"); |
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.
How is tags different from trait lists?
@@ -59,6 +59,8 @@ | |||
private DSLContext dsl; | |||
private TraitValidatorError traitValidatorError; | |||
|
|||
private String FAVORITES_TAG = "favorites"; |
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.
could be final static
} | ||
} | ||
|
||
tags.add(FAVORITES_TAG); |
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.
What is the purpose of this favorites tag?
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.
There should always be a favorites tag as an option. This sends the favorites tag back in the options of tags even if a trait isn't assigned that tag yet.
[BI-998] - Add tags to traits
Some of the tests fail right now because tags were added and the brapi-server needs to be patched. This can still be review before then, I won't merge until the tests pass.
Uses the brapi
variable.additionalInfo
field to store the tags.Additions:
Notes:
See other PRs for this feature:
brapi: Breeding-Insight/brapi#40
sgn: Breeding-Insight/sgn#30
bi-web: Breeding-Insight/bi-web#99
LEFT TO DO: