-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add holds by source report #919
Conversation
ffc39d3
to
33ea315
Compare
It occurred to me a little late in writing this report that it might actually belong in the Hold model and controller instead of Report, since it doesn't use many of the Report features. I'm ambivalent as to whether it's worth a refactor, but I wanted to put that on the radar of whoever reviews this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some N+1 queries in this report. See note in other PR for how to detect and please let me know if you'd like to pair or further discuss how to resolve.
Additionally, as a non-blocking comment it's a bit odd that the link to the Thesis from the Hold list goes to an Edit view and not either the Thesis#show or Hold#show. Is this hard coded in the Report framework? (I tried to figure out how the links got generated and gave up).
Why these changes are being introduced: We need to be able to see the holds for a given degree period, filtered by hold source. Relevant ticket(s): https://mitlibraries.atlassian.net/browse/ETD-462 How this addresses that need: This adds a report of holds that allows filtering on thesis grad date and hold source. Side effects of this change: * Report#extract_terms now checks for the type of items in the collection, so as to accommodate non-thesis collections. * Performance may be slow due to possible N+1 queries. We do not have the test data to confirm this, but we will make changes as needed depending on its behavior in production. Co-Authored-By: Jeremy Prevost <jprevost@mit.edu>
29ee59c
to
99b7508
Compare
Why these changes are being introduced:
We need to be able to see the holds for a given degree period,
filtered by hold source.
Relevant ticket(s):
https://mitlibraries.atlassian.net/browse/ETD-462
How this addresses that need:
This adds a report of holds that allows filtering on thesis
grad date and hold source.
Side effects of this change:
collection, so as to accommodate non-thesis collections.
Developer
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)
Code Reviewer
(not just this pull request message)
Requires database migrations?
NO
Includes new or updated dependencies?
NO