-
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
Bug/bi 1158 #152
Bug/bi 1158 #152
Conversation
if (this.data && this.data.abbreviations && this.data.abbreviations.length > 0) { | ||
abbSyn = this.data.abbreviations[0]; | ||
} | ||
|
||
if (this.data && this.data.synonyms && this.data.synonyms.length > 0) { | ||
// Up to synonymsMaxLength synonyms will be shown before , ... cutoff | ||
const synonyms = this.data.synonyms.slice(0, Math.min(this.data.synonyms.length, synonymsMaxLength)).join(", "); |
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.
Are all of these abbreviation changes intended for this card? The card you linked was only for the changed file template.
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.
After a conversation with Tim, I removed all references to the abbreviation data element. (I have now added a brief comment to the Jira story )
What branch of bi-api should I be running this on? When running on develop with the file below I get the error in the image: |
There is a bug/bi-1158 branch in bi-api |
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.
Ran it with the bi-api BI-1158 branch and it worked as expected.
src/breeding-insight/model/Trait.ts
Outdated
@@ -29,7 +29,7 @@ export class Trait { | |||
traitDescription?: string; | |||
method?: Method; | |||
scale?: Scale; | |||
abbreviations?: Array<string>; | |||
//abbreviations?: Array<string>; |
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.
Looks like a line that was commented out initially and should now be deleted.
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.
Deleted
see https://breedinginsight.atlassian.net/browse/BI-1158