8000 stats: fix validated requests count by PascalRepond · Pull Request #3402 · rero/rero-ils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

stats: fix validated requests count #3402

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

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

PascalRepond
Copy link
Contributor
  • Fixed the stats collector trigger in the query for validated_requests. Problem discovered since the loan.trigger field is declared as a keyword in operation_logs mapping.

Why are you opening this PR?

  • Which task/US does it implement?
  • Which issue does it fix?

Dependencies

My PR depends on the following rero-ils-ui's PR(s):

  • rero/rero-ils-ui#

How to test?

  • What command should I have to run to test your PR?
  • What should I test through the UI?

@github-actions github-actions bot added the f: statistics Related to the usage statistics either for pricing or for the libaries reports label Jul 10, 2023
@@ -398,7 +398,7 @@ def collect(self):
'renewals':
self.renewals(lib.pid, [ItemCirculationAction.EXTEND]),
'validated_requests':
self.validated_requests(lib.pid, ['validate']),
self.validated_requests(lib.pid, ['validate_request']),
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't understand why we have to give a trigger parameter in the first place?

@PascalRepond PascalRepond added bug Breaks something but is not blocking bug (critical) Blocking issue, should be fixed ASAP and removed bug Breaks something but is not blocking labels Jul 10, 2023
@PascalRepond PascalRepond requested a review from jma July 11, 2023 05:33
@PascalRepond PascalRepond force-pushed the rep-request-stats branch 2 times, most recently from 6e1d739 to d142907 Compare July 11, 2023 12:34
- Fixed the stats collector trigger in the query for
`validated_requests`. Problem discovered since the `loan.trigger` field
is declared as a keyword in operation_logs mapping.

Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>
@PascalRepond PascalRepond merged commit e3201b7 into rero:staging Jul 11, 2023
@PascalRepond PascalRepond deleted the rep-request-stats branch July 11, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (critical) Blocking issue, should be fixed ASAP f: statistics Related to the usage statistics either for pricing or for the libaries reports
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0