-
Notifications
You must be signed in to change notification settings - Fork 7
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
JSON Export API #1531
base: main
Are you sure you want to change the base?
JSON Export API #1531
Conversation
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.
Consider renaming services/csv_export
to services/file_export
or something similar, now that we support exporting csv
and json
f6bfb73
to
dc4d316
Compare
msg = "Not authorized to export reservation statistics." | ||
return HttpResponseForbidden(msg) | ||
|
||
queryset = ReservationStatistic.objects.all() |
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.
I guess some kind of filter is needed but that could be added later after agreeing what it should be. (The data can be updated until the reservations are in the past, so the client can't just naively query today's statistics but maybe doesn't want a full update every time either. But if there is no need not know about upcoming reservations until they have taken place, a chunk containing the recent past could be queried on a weekly or daily basis.)
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.
We should ask Milla to find out what kind of filter they would like, if any.
dc4d316
to
ea142b0
Compare
ea142b0
to
253aa7a
Compare
|
🛠️ Changelog
🧪 Test plan
🚧 Dependencies
EXPORT_AUTHORIZATION_TOKEN
to Azure key vaults and sync to OpenShift.🎫 Tickets