-
Notifications
You must be signed in to change notification settings - Fork 25
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
2891 Rails 7 #3819
2891 Rails 7 #3819
Conversation
Use check_all_pending! and alias_method
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## development #3819 +/- ##
================================================
- Coverage 72.37% 60.61% -11.77%
================================================
Files 1925 1663 -262
Lines 65939 55511 -10428
================================================
- Hits 47723 33646 -14077
- Misses 18216 21865 +3649 ☔ View full report in Codecov by Sentry. |
Remove require_dependencies
!! validates_uniqueness_of now compares "across the system", which apperently means unsaved objects in this case, this is very different behaviour (if interpretation is correct) that we may have to take into account in import scripts.
* Move towards handling setting `cached_` values `after_commit`. This should help to eliminate the potential cascading touches on objects. * Updated original batch framework to save off by type, not row-by-row * TaxonName validate_parent_is_set is the same as one root per project, removed * Softened, but made more flexible cascading validation checks through `TaxonName#children` via changes to `TaxonName#parent_is_set?` * Removed the largely redundant subject/object validation in TaxonNameRelationship, this was added during Nomen batch load, and causes many redundant checks. Fixes to Batch save order made these unnecessary.
… into 2981_rails_7
I'm guessing maybe you already considered this and decided nothing needs changing, but I'll mention it just in case since it showed up in my logs. The situation was doing a batch create of new loan items from tags, where the batch create failed because one of the items was already on loan. I noticed the following deprecation warning:
and here's the code: taxonworks/app/models/loan_item.rb Lines 273 to 291 in 2d26cd6
I guess now instead of commiting the loan items that succeeded before the error, now none of them will be commited. If there's anything I can help with here feel free to let me know. |
No description provided.