Skip to content

Commit

Permalink
SS-1206 added a temporary path validation
Browse files Browse the repository at this point in the history
  • Loading branch information
anondo1969 committed Nov 26, 2024
1 parent ed44926 commit ff925cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/models/app_types/shiny.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.db import models
import regex as re
from django.core.exceptions import ValidationError
from django.db import models

from apps.models import (
AppInstanceManager,
Expand All @@ -9,6 +9,7 @@
SocialMixin,
)


def validate_shiny_site_dir(candidate):
"""
Validates a shiny_site_dir path addition.
Expand Down Expand Up @@ -58,8 +59,7 @@ class ShinyInstance(BaseAppInstance, SocialMixin, LogsEnabledMixin):
container_waittime = models.IntegerField(default=20000)
heartbeat_timeout = models.IntegerField(default=60000)
heartbeat_rate = models.IntegerField(default=10000)
shiny_site_dir = models.CharField(
validators=[validate_shiny_site_dir], max_length=255, default="", blank=True)
shiny_site_dir = models.CharField(validators=[validate_shiny_site_dir], max_length=255, default="", blank=True)

# The following three settings control the pre-init and seats behaviour (see documentation)
# These settings override the Helm chart default values
Expand Down

0 comments on commit ff925cd

Please sign in to comment.