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

DEV-779: weeding decision report #278

Merged
merged 1 commit into from
Aug 8, 2023
Merged

DEV-779: weeding decision report #278

merged 1 commit into from
Aug 8, 2023

Conversation

mwarin
Copy link
Contributor

@mwarin mwarin commented Jun 9, 2023

This pull request adds the new Weeding Decision report to the reports that can be started via phctl.

The Weeding Decision Report is mainly for use by shared print members, so this is something they would request from us to run and upload on their behalf.

The main query is based on a member's holdings, restricted to clusters with (1+ open) items and (1+ non-deprecated) commitments, and the output records show numbers based on those clusters.

The report script itself is lib/reports/weeding_decision.rb, with tests in spec/reports/weeding_decision_spec.rb and spec/phctl_spec.rb.

The changes to lib/phctl.rb and lib/sidekiq_jobs.rb make the report possible to run from inside a running container using:

bash phctl.sh report weeding-decision <org>

@mwarin mwarin changed the title init DEV-779: weeding decision report Jun 19, 2023
@coveralls
Copy link

coveralls commented Aug 2, 2023

Coverage Status

coverage: 95.061% (+0.02%) from 95.044% when pulling 6270cc5 on DEV-779 into c444ac8 on main.

@mwarin mwarin force-pushed the DEV-779 branch 2 times, most recently from 95327d3 to c89c5f3 Compare August 4, 2023 20:25
@mwarin mwarin marked this pull request as ready for review August 8, 2023 13:38
@mwarin mwarin requested a review from moseshll August 8, 2023 13:39
Copy link
Contributor

@moseshll moseshll left a comment

Choose a reason for hiding this comment

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

Looks good. I thought I could DRY out WeedingRecord a bit but that's easier said than done.

@mwarin mwarin merged commit 637181a into main Aug 8, 2023
@aelkiss aelkiss deleted the DEV-779 branch January 7, 2025 20:38
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.

3 participants