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

DRYD-1330: Updates to new claim #224

Merged
merged 7 commits into from
Jul 12, 2024

Conversation

mikejritter
Copy link
Contributor

What does this do?

  • Rename nagpraclaim to repatriationclaim
  • Update alternativeTitle to alternativeIdentifier
  • Update nagpraStatusGroupList to statusGroupList
  • Update nagpraDocumentationGroupList to documentationGroupList
  • Update claimType to be a TermPickerInput using claimtype
  • Update statusGroup to be a TermPickerInput using deaccessionapprovalgroup
  • Update documentationGroup to be a TermPickerInput using deaccessionapprovalgroup
  • Update id generator to use existing claim id

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

These are updates from data QA done for the claim procedure. It renames the nagpraclaim procedure as well as various fields so that they can be applied more generically.

A few fields were also meant to be controlled and have been updated to be TermPickerInputs - claimType, statusGroup, and documentationGroup. These are controlled by the claimtype and deaccessionapprovalgroup term lists.

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

  • Run npm run lint and npm run test as a sanity check
  • Rebuild with the application and cspace-ui prs for claim updates
  • Start collectionspace
  • Run the devserver
    • Test that the claim still saves
    • Test that the TermPickerInput fields pull from the correct sources
    • Test that the advancedsearch for claims still works

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 against the devserver

Copy link

codecov bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.18%. Comparing base (6f4f6db) to head (6922d42).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #224   +/-   ##
=======================================
  Coverage   98.18%   98.18%           
=======================================
  Files         590      590           
  Lines       12679    12679           
  Branches     2593     2593           
=======================================
  Hits        12449    12449           
  Misses        227      227           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 624 to 629
id: 'field.repatriationclaims_common.status.fullName',
defaultMessage: 'Claim status state',
},
name: {
id: 'field.nagpraclaims_common.status.name',
id: 'field.repatriationclaims_common.status.name',
defaultMessage: 'State',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

One thing I realized I left out was updating the message for the status field. Since the group message is Claim status I originally went with Claim status state, which Kristina mentioned feels awkward compared to the Claim documentation status below. I'm not sure if just Claim status/Status would be ok or if we should switch to Value. Just a minor thing and I believe it's the last thing to sort out.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe Description/Claim status description?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ended up going with Value; we'll see how it goes. It feels a little awkward but feels ok when referring to the full name of claim status value.

@mikejritter mikejritter requested a review from ray-lee July 11, 2024 17:43
Comment on lines 624 to 629
id: 'field.repatriationclaims_common.status.fullName',
defaultMessage: 'Claim status state',
},
name: {
id: 'field.nagpraclaims_common.status.name',
id: 'field.repatriationclaims_common.status.name',
defaultMessage: 'State',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe Description/Claim status description?

[config]: {
messages: defineMessages({
name: {
id: 'field.nagpraclaims_common.nagpraDocumentationGroup.name',
fullName: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should just be name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ray-lee I was just testing everything and realized I switched these to fullName to prevent the group label from displaying because it's the same as the panel.

Maybe it shouldn't have a defined message at all in this case?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, that makes sense. In that case just having fullName is fine, so that it won't appear on the record editor, but will appear when selecting the group for search on the search page. This is how Textual Inscription and Non-textual Inscription work on collectionobjects.

name: {
id: 'field.nagpraclaims_common.nagpraDocumentationGroup.name',
fullName: {
id: 'field.repatriationclaims_common.documentationGroup.fullName',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also just name.

@ray-lee ray-lee merged commit a1b3031 into collectionspace:master Jul 12, 2024
4 checks passed
@mikejritter mikejritter deleted the nagpra-claim-updates branch July 23, 2024 18:53
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.

2 participants