-
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-1206 Site dir option should have path validation #259
Merged
anondo1969
merged 7 commits into
develop
from
SS-1206-Site-dir-option-should-have-path-validation
Nov 29, 2024
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5a9cf7f
SS-1206 wrote site-dir path validation and unit tests
anondo1969 3ae51f4
SS-1206 wrote comment for future e2e tests
anondo1969 53858ce
Merge branch 'develop' of https://github.com/ScilifelabDataCentre/ser…
anondo1969 b608510
SS-1206 moved the path validation method
anondo1969 d3715a2
SS-1206 fixing unit tests
anondo1969 4c8f77c
Update apps/helpers.py
anondo1969 7ee29b6
Merge branch 'develop' into SS-1206-Site-dir-option-should-have-path-…
anondo1969 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
20 changes: 20 additions & 0 deletions
20
apps/migrations/0019_alter_shinyinstance_shiny_site_dir.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 5.1.1 on 2024-11-27 12:47 | ||
|
||
import apps.models.app_types.shiny | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("apps", "0018_customappinstance_default_url_subpath"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="shinyinstance", | ||
name="shiny_site_dir", | ||
field=models.CharField( | ||
blank=True, default="", max_length=255, validators=[apps.helpers.validate_path_k8s_label_compatible] | ||
), | ||
), | ||
] |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
Isort was not applied here
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.
https://scilifelab.slack.com/archives/C02L5Q7HWR1/p1732872632171369?thread_ts=1732623632.294409&cid=C02L5Q7HWR1