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

2981 rails 7 active storage #3822

Draft
wants to merge 58 commits into
base: development
Choose a base branch
from
Draft

Conversation

mjy
Copy link
Member

@mjy mjy commented Feb 12, 2024

No description provided.

mjy and others added 30 commits February 12, 2024 08:41
Use check_all_pending! and alias_method
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.
LocoDelAssembly and others added 28 commits February 13, 2024 19:48
* 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.
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 34.88372% with 56 lines in your changes are missing coverage. Please review.

Project coverage is 25.73%. Comparing base (fb167ce) to head (63fa4ce).
Report is 2 commits behind head on development.

❗ Current head 63fa4ce differs from pull request most recent head eb89536. Consider uploading reports for the commit eb89536 to get more accurate results

Files Patch % Lines
app/models/taxon_name_relationship.rb 9.52% 19 Missing ⚠️
lib/batch_load/import.rb 0.00% 6 Missing ⚠️
spec/models/citation_spec.rb 0.00% 5 Missing ⚠️
app/models/protonym.rb 0.00% 4 Missing ⚠️
app/models/taxon_name_relationship/combination.rb 0.00% 3 Missing ⚠️
...ls/taxon_name_relationship/original_combination.rb 0.00% 3 Missing ⚠️
app/models/dataset_record/darwin_core/taxon.rb 0.00% 2 Missing ⚠️
app/models/role.rb 0.00% 2 Missing ⚠️
app/models/taxon_name.rb 86.66% 2 Missing ⚠️
...batch_load/import/taxon_names/nomen_interpreter.rb 50.00% 2 Missing ⚠️
... and 7 more

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@               Coverage Diff                @@
##           development    #3822       +/-   ##
================================================
- Coverage        84.36%   25.73%   -58.63%     
================================================
  Files             2131     1688      -443     
  Lines            79566    64771    -14795     
================================================
- Hits             67123    16667    -50456     
- Misses           12443    48104    +35661     

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

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.

None yet

3 participants