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

Ensures that the overdrive new titles script does not fail when cover… #2050

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

dbernstein
Copy link
Contributor

@dbernstein dbernstein commented Sep 11, 2024

…age records are added.

Description

The overdrive new titles and overdrive recent titles monitors are currently broken due to a hidden commit when coverage records are added. I discovered this issue while fixing #2040

Motivation and Context

https://ebce-lyrasis.atlassian.net/browse/PP-1708

How Has This Been Tested?

I tested this manually to make sure that it is fixed and changed a single unit test that was affected.

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.78%. Comparing base (3784c8f) to head (89ec3d7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2050   +/-   ##
=======================================
  Coverage   90.78%   90.78%           
=======================================
  Files         343      343           
  Lines       40561    40562    +1     
  Branches     8787     8787           
=======================================
+ Hits        36824    36825    +1     
  Misses       2483     2483           
  Partials     1254     1254           

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

@dbernstein dbernstein requested a review from a team September 11, 2024 03:56
Copy link
Contributor

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

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

Nice catch here! 🎉

One suggestion below related to the test code that was removed.

Comment on lines -549 to -551
# finalize_batch() was called.
assert True == success_provider.finalized

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like we would want to ensure that finalize_batch is called, since, in hindsight, it was easy to miss. Could you make a test that fails without the fixes you made above, but passes with them?

@jonathangreen jonathangreen added the bug Something isn't working label Sep 11, 2024
…ted and not being called when it is unexpected.
@dbernstein dbernstein force-pushed the fix-overdrive-new-titles branch from 21a5bb1 to 89ec3d7 Compare September 11, 2024 16:00
@dbernstein dbernstein merged commit 1c86b3b into main Sep 11, 2024
20 checks passed
@dbernstein dbernstein deleted the fix-overdrive-new-titles branch September 11, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants