-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SuggestedResource matches to metric reports
** Why are these changes being introduced: * We need to include the performance of our SuggestedResource records in the historical performance reports we are generating. ** Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/tco-25 ** How does this address that need: * This copies the approach for counting Journal matches, applying it to the SuggestedResource model as well. This includes a migration to add a field to the report model, and tests and fixtures to confirm that the counts are being generated correctly. ** Document any side effects to this change: * Maybe not a side effect (but maybe it is) - the SuggestedResource model did not have a full_term_match method before this PR. This work adds it as well as tests for its behavior.
- Loading branch information
1 parent
44758fc
commit 3614dac
Showing
9 changed files
with
82 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
db/migrate/20240813181057_add_suggested_resource_exact_to_metrics_algorithm.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddSuggestedResourceExactToMetricsAlgorithm < ActiveRecord::Migration[7.1] | ||
def change | ||
add_column :metrics_algorithms, :suggested_resource_exact, :integer | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters