Skip to content
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

[TTAHUB-3614] Use materialized view for finding goals from replaced grants (activity report goals handler) #2497

Merged
merged 7 commits into from
Nov 26, 2024

Conversation

nvms
Copy link
Collaborator

@nvms nvms commented Nov 20, 2024

Description of change

The handler that grabbed goals for ARs did not use the new materialized view, which means goals from replaced grants were not surfaced in the UI. This simple change fixes that.

The result is that when the old goal is used on the new grant, and the AR is approved, an entirely new goal is created referencing the new grant ID.

How to test

Issue(s)

Checklists

Every PR

  • Meets issue criteria
  • JIRA ticket status updated
  • Code is meaningfully tested
  • Meets accessibility standards (WCAG 2.1 Levels A, AA)
  • API Documentation updated
  • Boundary diagram updated
  • Logical Data Model updated
  • Architectural Decision Records written for major infrastructure decisions
  • UI review complete

Before merge to main

  • OHS demo complete
  • Ready to create production PR

Production Deploy

  • Staging smoke test completed

After merge/deploy

  • Update JIRA ticket status

@nvms nvms changed the title use materialized view for AR goal retrieval [TTAHUB-3614] Use materialized view for finding goals from replaced grants (activity report goals handler) Nov 20, 2024
@nvms nvms marked this pull request as ready for review November 20, 2024 20:30
@nvms nvms marked this pull request as draft November 20, 2024 20:59
@nvms nvms marked this pull request as ready for review November 22, 2024 14:15
Copy link
Collaborator

@AdamAdHocTeam AdamAdHocTeam left a comment

Choose a reason for hiding this comment

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

I couldnt repro on my db but the code looks good.

@nvms nvms merged commit c47f133 into main Nov 26, 2024
10 checks passed
@nvms nvms deleted the jp/3614/grant-materialized-view-ar branch November 26, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants