-
Notifications
You must be signed in to change notification settings - Fork 1
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
SS-1191: Bugfix related to environment and flavor deletion #243
Conversation
Co-authored-by: Nikita Churikov <[email protected]>
Co-authored-by: Nikita Churikov <[email protected]>
Co-authored-by: Nikita Churikov <[email protected]>
No, these errors are coming from periodic tasks. That's solved in PR #239 |
…all correction of previous PR)
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.
Copilot reviewed 5 out of 10 changed files in this pull request and generated no suggestions.
Files not reviewed (5)
- templates/common/app_card.html: Language not supported
- templates/projects/settings.html: Language not supported
- apps/migrations/0019_alter_jupyterinstance_environment_and_more.py: Evaluated as low risk
- apps/models/app_types/jupyter.py: Evaluated as low risk
- apps/models/app_types/rstudio.py: Evaluated as low risk
Comments skipped due to low confidence (3)
projects/tests/test_create_delete_environments.py:23
- [nitpick] The method name
test_environment_creation_user
should betest_environment_creation_by_user
for better readability.
def test_environment_creation_user(self):
projects/tests/test_create_delete_environments.py:60
- [nitpick] The method name
test_environment_creation_deletion_superuser
should betest_environment_creation_and_deletion_by_superuser
for better readability.
def test_environment_creation_deletion_superuser(self):
projects/tests/test_create_delete_environments.py:24
- The docstring should be updated to "Test regular user is not allowed to create environment".
"""Test regular user not allowed to create environment"""
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.
LGTM
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.
These are just minor comment, after them LGTM
messages.error( | ||
request, | ||
"Environment cannot be deleted because it is currently used by at least one app \ | ||
(can also be a deleted app).", |
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.
What to do if it's a deleted app?
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 think then we are not allowed to delete that flavor. If there is a use case where it is needed we can implement something else later I think. It may have repercussions further down, not sure.
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.
Just a small suggestion that could be applied to most of the other test. Otherwise, lgtm
Description
This PR contains bugfix SS-1191 - environment and flavor deletion from the UI resulted in internal server error when these were currently used in an app. While working on it, I also made a number of other improvements:
This PR also includes an unrelated small change that was missed in previous PR: allowing display of instructions to run Gradio and Streamlit apps locally with Docker.
Finally, this PR includes an updated Serve logo
Checklist
If you're unsure about any of the items below, don't hesitate to ask. We're here to help!
This is simply a reminder of what we are going to look for before merging your code.