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

3833 improves COLDP sic handling #3835

Closed
wants to merge 5 commits into from
Closed

Conversation

gdower
Copy link
Contributor

@gdower gdower commented Feb 16, 2024

Added clean_sic() processing on original combinations and modified the regex to eliminate the space because it was missing name components that included only [sic] with no space. Fixes #3833

Some name components have only  which the regex was missing with the space
@codecov-commenter
Copy link

codecov-commenter commented Feb 16, 2024

Codecov Report

Attention: 23 lines in your changes are missing coverage. Please review.

Comparison is base (b9ee3cd) 84.77% compared to head (e7b60e5) 84.78%.
Report is 11 commits behind head on development.

❗ Current head e7b60e5 differs from pull request most recent head 224e36e. Consider uploading reports for the commit 224e36e to get more accurate results

Files Patch % Lines
lib/export/coldp/files/name.rb 21.73% 18 Missing ⚠️
app/controllers/tasks/dwc/dashboard_controller.rb 0.00% 5 Missing ⚠️

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

Additional details and impacted files
@@             Coverage Diff              @@
##           development    #3835   +/-   ##
============================================
  Coverage        84.77%   84.78%           
============================================
  Files             2100     2100           
  Lines            77526    77509   -17     
============================================
- Hits             65722    65714    -8     
+ Misses           11804    11795    -9     

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

clean_sic(t.cached_original_combination), # scientificName
authorship_field(t, true), # authorship
rank, # rank
clean_sic(uninomial), # uninomial
Copy link
Member

Choose a reason for hiding this comment

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

@gdower perhaps you should check once against cached and create a hash of values that you can use to populate here rather than 4 checks?

@gdower
Copy link
Contributor Author

gdower commented Feb 19, 2024

@mjy, I pushed the branch which improves performance and probably fixes the #3833 and #3834 but I want to test it more before it gets merged.

@mjy
Copy link
Member

mjy commented Mar 26, 2024

@gdower what's the status on this one? Should we merge it? Seems there is a current conflict too.

@gdower gdower closed this May 22, 2024
@gdower
Copy link
Contributor Author

gdower commented May 22, 2024

Covered by another PR: #3957

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.

[Bug]: COLDP exporter: remove [sic] labels from name fields
3 participants