Skip to content

Remove cat number format check in interaction dialog#6306

Merged
CarolineDenis merged 6 commits intoproductionfrom
issue-6287
Mar 13, 2025
Merged

Remove cat number format check in interaction dialog#6306
CarolineDenis merged 6 commits intoproductionfrom
issue-6287

Conversation

@CarolineDenis
Copy link
Contributor

@CarolineDenis CarolineDenis commented Mar 7, 2025

Fixes #6287

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone

Testing instructions

  • Go to Interactions and choose Loan
  • Choose the option "By entering catalog numbers"
  • Enter a catalog number that is using a COT with a non-default catalog number
  • Click Next
  • Verify that you are directed to the prep dialog selection If the CO has preps
  • Verify that a message "no prep found for this cat num" is displayed If the CO has no preps or even doesn't exist

Notes:
Since we now allow multiple catalog number formats within the same collection using the collection object type, we can no longer determine which type of CO corresponds to the catalog number entered in the interaction dialog.

As a result, checking whether the catalog number follows the default collection format is no longer necessary for collections having multiple COType cat number format. Therefore, that check and the error message for catalog number format will be displayed only for collections that have a single cat number format COType.

For collections having several COTypes the parser will not be used anymore which means that to fins cat num 000001 entering only 1 will not work the user has to enter the entire format

@CarolineDenis CarolineDenis added this to the 7.10.2 milestone Mar 7, 2025
@CarolineDenis CarolineDenis requested a review from sharadsw March 7, 2025 18:29
@github-project-automation github-project-automation bot moved this to 📋Back Log in General Tester Board Mar 7, 2025
@CarolineDenis CarolineDenis removed the request for review from sharadsw March 7, 2025 18:31
@CarolineDenis CarolineDenis requested a review from sharadsw March 7, 2025 18:32
@CarolineDenis CarolineDenis requested a review from sharadsw March 10, 2025 18:46
Copy link
Contributor

@sharadsw sharadsw left a comment

Choose a reason for hiding this comment

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

When I enter a catalog number with format 2025-000001 it gets parsed to 000000002 and all the preps shown are of 000000002

@CarolineDenis CarolineDenis requested a review from sharadsw March 12, 2025 16:09
@CarolineDenis CarolineDenis requested review from a team and acwhite211 March 12, 2025 17:20
Copy link
Collaborator

@emenslin emenslin left a comment

Choose a reason for hiding this comment

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

  • Verify that you are directed to the prep dialog selection If the CO has preps
  • Verify that a message "no prep found for this cat num" is displayed If the CO has no preps or even doesn't exist

Looks good, I tried on multiple interactions including loan, gift, disposal, and exchange out.

@emenslin emenslin requested a review from a team March 12, 2025 18:11
Copy link
Collaborator

@lexiclevenger lexiclevenger left a comment

Choose a reason for hiding this comment

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

Testing instructions

  • Go to Interactions and choose Loan
  • Choose the option "By entering catalog numbers"
  • Enter a catalog number that is using a COT with a non-default catalog number
  • Click Next
  • Verify that you are directed to the prep dialog selection If the CO has preps
  • Verify that a message "no prep found for this cat num" is displayed If the CO has no preps or even doesn't exist

Looks great!

@CarolineDenis CarolineDenis merged commit 434ff54 into production Mar 13, 2025
12 checks passed
@CarolineDenis CarolineDenis deleted the issue-6287 branch March 13, 2025 18:20
@github-project-automation github-project-automation bot moved this from 📋Back Log to ✅Done in General Tester Board Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅Done

Development

Successfully merging this pull request may close these issues.

COs with non-default catalog number formats cannot be added to Loans

5 participants