-
Notifications
You must be signed in to change notification settings - Fork 41
Hotfixes: Fullname query hotfix + catalog number cast hotfix for 7.10.2
#6465
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
Conversation
- Also adds a unit test to ensure this doesn't break again
…eric Fixes #6464 See related #5485 and #6245 This handles the most common case. In the case where there exists both numeric and non-numeric formats for catalogNumber, the numeric formats will still be cast as a string. This also ONLY works with formats called CatalogNumberNumeric; i.e., any other purely numeric format will not be considered as numeric by the QueryBuilder
…nto hotfix-7.10.2
7.10.27.10.2
|
Hey everyone! I pushed a fix for #6464! The fix is very simple and not very flexible, but should apply in nearly all cases #6464 is happening. Now, reports and labels which use I can edit the testing instructions to reflect the changes, but generally: Testing Instructions
|
|
The Edit: I reuploaded the db and it is working now |
emenslin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Verify the results for the Geography columns are the same on both branches
-
Verify results are the same on both branches
-
Verify results are the same on both versions
General test queries:
- Verify results are the same in both branches
- Verify results are the same in both branches
Test for catalog number cast:
- Ensure the leading zeroes are trimmed for the catalogNumbers in the Report or Label output
Leading zeroes are not trimmed
|
@emenslin Which db and collection was this on? |
|
Sorry I forgot to include that! It's on ojsmnh20250314 in the fossil invertebrates collection (https://ojsmnh20250314-hotfix-7102.test.specifysystems.org/specify/) |
|
@emenslin Looks like this db has COTs which have catalog number format that aren't CatalogNumberNumeric. The hotfix will only work for dbs that have all COT formatters as CatalogNumberNumeric and the Collection's default formatter is also CatalogNumberNumeric. |
alesan99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Verify the results for the Geography columns are the same on both branches
- Verify results are the same on both branches
- Verify results are the same on both versions
- Verify results are the same in both branches
- Edit some rank names to include spaces in the ranks and re-run the queries
- Verify results are the same in both branches
- Ensure the leading zeroes are trimmed for the catalogNumbers in the Report or Label output
I tried queries on the Taxon and Geography trees and they seem to be holding up as well 👍
Labels appear to be displaying correctly again.
emenslin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Verify the results for the Geography columns are the same on both branches
-
Verify results are the same on both branches
-
Use the
os_2025_04_30_09_33_44_fixdb on both versions -
Verify results are the same on both versions
General test queries:
- Verify results are the same in both branches
- Verify results are the same in both branches
Test for catalog number cast:
- Ensure the leading zeroes are trimmed for the catalogNumbers in the Report or Label output
Looks good!





Closes #6463
Closes #6459
Closes #6464
namefield instead offullnameeven if you map a column to<specific rank> -> fullName, restoring the behavior from before 7.10.2find_tree_and_fieldto ensure this doesn't break again7.10.2#6465 (comment)Checklist
self-explanatory (or properly documented)
Testing instructions
Use the
shellmuseum20250210db on version 7.10.0 and thehotfix-7.10.2branchRun the query 'Specimen Label'
Verify the results for the Geography columns are the same on both branches
Click on Reports > Specimen Label > Problem Nos
Verify results are the same on both branches
Use the
os_2025_04_30_09_33_44_fixdb on both versionsClick Reports > OSU Small Label > 1506
Verify results are the same on both versions
General test queries:
<rank> -> fullNamein 7.10.0 and the hotfix-7.10.2 branchTest for catalog number cast:
Collection -> catalogNumFormatNameas CatalogNumberNumeric and ALLCollectionObjectType -> catalogNumberFormatNameas CatalogNumberNumeric