fix: reserved system name checks when creating templates#746
Open
Vafilor wants to merge 104 commits intoonepanelio:masterfrom
Open
fix: reserved system name checks when creating templates#746Vafilor wants to merge 104 commits intoonepanelio:masterfrom
Vafilor wants to merge 104 commits intoonepanelio:masterfrom
Conversation
…ient logic for determining resource counts
… sure they don't allow sys- prefixed names. Also updated workspace creation so that the workflow templates created by workspace templates have a sys- prefix.
chore: Add issue templates
fix: Add migration for changes in TFOD and CVAT template
Contributor
|
Code looks good, need to go through test cases. |
Contributor
|
Point of concern.
|
Contributor
Author
@aleksandrmelnikov Ah, good catch. I'll add a migration to update the old names. |
…rgo workflow templates.
…ifies the code a little.
fix: Move env vars to workspace creation
…les into their own subdirectory for easier separation of files.
feat: upgrade grpc
chore: Update demo note
… sure they don't allow sys- prefixed names. Also updated workspace creation so that the workflow templates created by workspace templates have a sys- prefix.
…rgo workflow templates.
…ifies the code a little.
…afilor/core into fix/onepanelio.core.256-reserved.names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does:
Updated workspace templates' associated workflow templates to have a sys- prefix to indicate it is a system resource.
Also added checks to workflow/workspace template creation so they don't allow sys- prefixes.
Which issue(s) this PR fixes:
Fixes #256
Special notes for your reviewer:
To test:
Try creating a workflow template and workspace template with a sys- prefixed name. You should get an error.
Try creating a workspace template and check in the database that the newly created workflow template has a sys- prefixed name.
Checklist
Please check if applies
Required