-
Notifications
You must be signed in to change notification settings - Fork 53
stats: Purchase Orders #1262
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
stats: Purchase Orders #1262
Conversation
2c15aac to
176300b
Compare
176300b to
5784201
Compare
| _VALID_DATE_INTERVALS = {"1d", "1w", "1M", "1q", "1y"} | ||
|
|
||
|
|
||
| def validate_field_name(field_name): |
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.
is this function reused somewhere outside the SecureFieldName?
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.
You are right. Moved it inside SecureFieldName
5784201 to
fbb7b0f
Compare
* the endpoint returns a histogram for stats where requested metrics are grouped by and aggregated * extend the orders index with a new stats object * the stats object contains order_processing_time and document_request_waiting_time
* validation should be handled by passing the validate param, not in the deserialization
fbb7b0f to
824fb24
Compare
kpsherva
left a comment
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.
re-reviewed, LGTM!
closes: CERNDocumentServer/cds-ils#1034