Fix formatted CO query results for nested relationship fields#7969
Fix formatted CO query results for nested relationship fields#7969acwhite211 wants to merge 8 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR fixes relation-based stringid parsing in stored queries. The core logic in ChangesRelation stringid parsing and test coverage
Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Triggered by 1400132 on branch refs/heads/issue-7919
emenslin
left a comment
There was a problem hiding this comment.
- Run the query and confirm results render instead of throwing an error
- Run the query and confirm formatted taxon values are populated
- Run the query and confirm formatted chronostrat values are populated
- Confirm previously working formatted fields still behave correctly, such as
collectingEvent -> locality -> formatted - Confirm aggregated fields that were already working, such as accession agents, still return expected values
Looks good, I didn't run into any issues
bhumikaguptaa
left a comment
There was a problem hiding this comment.
- Run the query and confirm results render instead of throwing an error
- Run the query and confirm formatted taxon values are populated
- Run the query and confirm formatted chronostrat values are populated
- Confirm previously working formatted fields still behave correctly, such as
collectingEvent -> locality -> formatted - Confirm aggregated fields that were already working, such as accession agents, still return expected values
Looks good to me.
Iwantexpresso
left a comment
There was a problem hiding this comment.
- Run the query and confirm results render instead of throwing an error
- Run the query and confirm formatted taxon values are populated
- Run the query and confirm formatted chronostrat values are populated
- Confirm previously working formatted fields still behave correctly, such as
collectingEvent -> locality -> formatted - Confirm aggregated fields that were already working, such as accession agents, still return expected values
every results is being displayed as intended, nice work!
Fixes #7919
Fixes incorrect query-builder results when
CollectionObjectis the base table and a display field uses a nested formatted relationship. Some formatted query result fields underCollectionObjectwere being parsed incorrectly from stored querystringidvalues.In affected cases, relationship fields were being reinterpreted as tree-rank fields on the related table, which caused errors:
CO -> preparations -> prepType -> formattedcould throw an errorCO -> determinations -> taxon -> formattedcould appear blankCO -> paleoContext -> chronosStrat/lithoStrat/... -> formattedcould appear blankChecklist
self-explanatory (or properly documented)
Testing instructions
CollectionObjectas the base tablepreparations -> prepType -> formatteddeterminations -> taxon -> formattedpaleoContext -> chronosStrat -> formattedpaleoContext -> lithoStrat -> formattedif the collection has lithostrat datacollectingEvent -> locality -> formattedSummary by CodeRabbit
Bug Fixes
Tests