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

Report: Notice of Intent to Repatriate QA #439

Conversation

mikejritter
Copy link
Contributor

What does this do?

  • Switch to javascript templating
  • Pull distinct acquisitions related to summary
  • Coalesce for better null handling
  • Adjust spacing for some fields

Why are we doing this? (with JIRA link)
Jira: https://collectionspace.atlassian.net/browse/DRYD-1334

These are changes that came out of initial testing for the Notice of Intent to Repatriate report. Notably we had duplicating values; we now use distinct on the summary id for acquisitions to try and limit this. There will likely be some repeated data if multiple acquisitions have the same values but that is something which is still up for discussion. Likewise we are now using coalesce in order to prevent null arrays, and using filter when joining array values in order to remove null entries.

How should this be tested? Do these changes have associated tests?

  • Rebuild collectionspace
  • Run the report and verify all changes

Dependencies for merging? Releasing to production?
None

Has the application documentation been updated for these changes?
No

Did someone actually run this code to verify it works?
@mikejritter tested locally

@mikejritter mikejritter marked this pull request as ready for review December 13, 2024 00:46
Copy link
Contributor Author

@mikejritter mikejritter left a comment

Choose a reason for hiding this comment

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

For the filters we really should wrap the parameters with parens. This follows the eslint recommendations; it's kind of tricky to test against these embedded scripts though.

@mikejritter mikejritter merged commit 176ab46 into collectionspace:v8.1-branch Dec 13, 2024
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.

1 participant