Skip to content

[BI-2911] Remove rest of CRUD operations for ObservationDAO - #532

Open
jloux-brapi wants to merge 6 commits into
epic/BI-2862from
feature/BI-2911
Open

[BI-2911] Remove rest of CRUD operations for ObservationDAO#532
jloux-brapi wants to merge 6 commits into
epic/BI-2862from
feature/BI-2911

Conversation

@jloux-brapi

@jloux-brapijloux-brapi commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Description

Story:BI-2911

  • References to cache.post() were removed and replaced with brapiDAOUtil.post()
  • References to cache.postThese() were removed and replaced with brapiDAOUtil.put()
  • References to repopulate the observation cache were removed
  • Extension of parent CachedDAO class removed

Dependencies

Testing

Checklist:

  • I have performed a self-review of my own code
  • I have tested my code and ensured it meets the acceptance criteria of the story
  • I have create/modified unit and/or integration tests to cover this change or tests are not applicable
  • I have commented my code, particularly in hard-to-understand areas
  • I have either updated the source of truth or arranged for update with product owner if needed https://breedinginsight.atlassian.net/wiki/spaces/BI/pages/1559953409/Source+of+Truth

@jloux-brapi
jloux-brapi requested review from a team and HMS17 and removed request for a teamJuly 8, 2026 17:27
@jloux-brapijloux-brapi added on hold Review, but do not merge until removed and removed feature labels Jul 8, 2026

@HMS17HMS17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overall looks good, just one comment/question

@@ -79,75 +74,17 @@ public BrAPIObservationDAO(ProgramDAO programDAO,
@Property(name = "brapi.server.reference-source") String referenceSource,
@Property(name = "micronaut.bi.api.run-scheduled-tasks") boolean runScheduledTasks,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should this runScheduledTasks also be removed?

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

Yup, good catch, removed.

@jloux-brapi
jloux-brapi requested a review from HMS17July 16, 2026 22:29

@HMS17HMS17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good from a reading code angle!

Base automatically changed from bug/BI-2944 to epic/BI-2862August 25, 2026 16:14
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

on holdReview, but do not merge until removed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jloux-brapi@HMS17