-
Notifications
You must be signed in to change notification settings - Fork 52
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
fix: handle None system metrics in user admin panel #1029
fix: handle None system metrics in user admin panel #1029
Conversation
- Add default values for system metrics when None - Add conditional system metrics display in template - Show informative message when metrics unavailable Closes conda-incubator#1028
✅ Deploy Preview for conda-store canceled.
|
✅ Deploy Preview for conda-store canceled.
|
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.
Sweet, thanks for this contribution!
Just a little suggestion about setting the default value of system_metrics
.
There currently are not tests for views/ui.py
and we plan on deprecating the admin app soon, so I think it's ok to not be adding tests for this.
conda-store-server/conda_store_server/_internal/server/views/ui.py
Outdated
Show resolved
Hide resolved
conda-store-server/conda_store_server/_internal/server/templates/user.html
Outdated
Show resolved
Hide resolved
- Return raw system_metrics from API without default values - Update user.html template to check for None metrics - Display info message when metrics not available Closes conda-incubator#1028
Done! |
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.
Awesome, looks great 🦩
Thanks for the contribution. Will merge once the tests are passing!
Closes #1028