Skip to content

Add programDbId to BrAPIObservationVariable - #240

Open
jloux-brapi wants to merge 2 commits into
epic/BI-2862from
feature/BI-2923
Open

jloux-brapi wants to merge 2 commits into
epic/BI-2862from
feature/BI-2923

Conversation

@jloux-brapi

@jloux-brapi jloux-brapi commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Story: BI-2923

  • Add programDbId to GET call in API
  • Update BrAPIObservationVariable

Dependencies

  • brapi-java-prodserver: feature/BI-2923
  • bi-api: feature/BI-2923

Testing

  • Create New Ontology terms in DeltaBreed, verify the terms are created and show up on the Ontology Page
  • Update ontology terms in DeltaBreed. This can be achieved by clicking Show Details and then clicking Edit, where if they are not already used you can edit some elements of the term. Activating and Deactivating also updates ontology. Simplify verify the changes are reflected once they are made.

Objects.equals(this.synonyms, observationVariable.synonyms) &&
Objects.equals(this.trait, observationVariable.trait);
Objects.equals(this.trait, observationVariable.trait) &&
Objects.equals(this.programDbId, observationVariable.programDbId);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

programName is in toString() but missing from equals() (here) and hashCode() (line 550). There’s also no fluent programName(String) builder like the one programDbId has. Can we add programName to equals and hashCode, and add the fluent setter for consistency.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants