-
Notifications
You must be signed in to change notification settings - Fork 3
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
Agents-transfers logging reports #65
Conversation
d4a651d
to
41464d2
Compare
41464d2
to
76d1810
Compare
d140e7b
to
d9d2ed0
Compare
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.
Hi @ross-spencer. This is looking great - nice work! I've left comments where I had questions or think there are some opportunities to tidy bits of the code up a bit, but overall it's already in good shape.
I'm wondering what the Gantt chart will look like for Storage Services that have been in production for months or years. Would the individual ingests still be visible and hoverable? It seems like the built-in plotly toolbar's zoom function would help but I suspect that might point to the need to add support for start/end date parameters in the near future. That said, I think it would be reasonable to do so in a follow-up PR, and as I pointed out offline my next PR will contain some helpers that might make that a bit simpler.
Thanks Tessa - resubmitted for code review. Also noted offline, we're thinking we can improve the date handling around the plot chart sometime down the line using some of your new handlers. I'm looking forward to review those, and thanks again for the conversation around this. |
0c69ef3
to
ecccc40
Compare
ecccc40
to
9f7e25a
Compare
@tw4l there are a couple of commits on top of the first push here now - I noticed a broken endpoint (i broke it), and some documentation issues that it felt appropriate to fix. Sorry about that! |
@ross-spencer cool, thanks! I'm planning to finish up my review tomorrow morning. |
Hi @ross-spencer - this is looking great and I think we're very nearly there. In addition to my comment above about removing the
(Edit: Added reference to |
Should be good now @tw4l lmk! |
EDIT: You got me thinking about dates more and I spotted an issue with the query as a result so there are two other commits. They work like this:
Now I'm hoping this PR is looking good! 🤞 |
2f3e65d
to
70885f4
Compare
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.
70885f4
to
ab27b95
Compare
We include a data endpoint for retrieving information about users and the transfers that they are responsible for. Using that data we construct a tabular log of transfers as well as a prototype timeline that shows the same information in an interactive Plotly Express chart. These new reports follow some of the new best practices for testing and templates established by Tessa in previous commits. Plotly express is introduced here as well as a complete Fontawesome package for use in future reports.
ab27b95
to
07d46de
Compare
This finally completes an API endpoint and basic reports to list information about users and ingests for which they were responsible for. Delivering a tabular representation of that work and a prototype timeline using plotly express.
The API endpoint to access the data will be at:
curl -X GET "http://127.0.0.1:5000/api/data/agents-transfers/1" -H "accept: application/json"
Prototype gantt
Table
The work leverages much of the testing efforts of Tessa so thank you for that! And also tries to comply with new efforts around base templates as well. Hopefully it's looking okay.
@peterVG we'd spoken before about what methods we might use to deliver charts and there might be some good exploration to do there. For this work the code that enables that is located in this commit which you might be interested in: d8cf25d
Connected to #18