Skip to content

Commit

Permalink
fix: limit number of characters of model service name (#2003)
Browse files Browse the repository at this point in the history
* fix: sevice session fails to create when service name is long enough

* remove unrelated changes
  • Loading branch information
kyujin-cho authored Nov 1, 2023
1 parent 630b3a1 commit 281e29a
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion react/src/components/ServiceLauncherModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const ServiceLauncherModal: React.FC<ServiceLauncherProps> = ({
name="serviceName"
rules={[
{
pattern: /^(?=.{4,64}$)\w[\w.-]*\w$/,
pattern: /^(?=.{4,24}$)\w[\w.-]*\w$/,
message: t('modelService.ServiceNameRule'),
},
{
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@
"FormValidationFailed": "Formularüberprüfung fehlgeschlagen",
"StartNewServing": "Neue Portion starten",
"ServiceName": "Dienst Name",
"ServiceNameRule": "Erlaubt sind nur 4 bis 64 alphanumerische Zeichen, Unterstrich(_), Bindestrich(-) und Punkt(.) und er muss mit einem alphanumerischen Zeichen enden.",
"ServiceNameRule": "Erlaubt sind nur 4 bis 24 alphanumerische Zeichen, Unterstrich(_), Bindestrich(-) und Punkt(.) und er muss mit einem alphanumerischen Zeichen enden.",
"OpenToPublic": "Offen für die Öffentlichkeit",
"DesiredRoutingCount": "Gewünschte Routinganzahl",
"ServingRouteErrorModalTitle": "Serving Route Fehler",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@
"FormValidationFailed": "Η επικύρωση της φόρμας απέτυχε",
"StartNewServing": "Έναρξη νέου σερβιρίσματος",
"ServiceName": "Όνομα υπηρεσίας",
"ServiceNameRule": "Επιτρέπονται μόνο 4 έως 64 αλφαριθμητικοί χαρακτήρες, υπογράμμιση(_), παύλα(-) και τελεία(.) και πρέπει να τελειώνουν με έναν αλφαριθμητικό χαρακτήρα.",
"ServiceNameRule": "Επιτρέπονται μόνο 4 έως 24 αλφαριθμητικοί χαρακτήρες, υπογράμμιση(_), παύλα(-) και τελεία(.) και πρέπει να τελειώνουν με έναν αλφαριθμητικό χαρακτήρα.",
"OpenToPublic": "Ανοιχτό για το κοινό",
"DesiredRoutingCount": "Επιθυμητός αριθμός δρομολόγησης",
"ServingRouteErrorModalTitle": "Σφάλμα διαδρομής εξυπηρέτησης",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
"ExpiredDate": "Expired Date",
"TokenExpiredDateHelp": "The default token expiration time is 24 hours later.",
"TokenExpiredDateError": "The token expiration time must be after the current time",
"ServiceNameRule": "Only allow 4 to 64 characters of alphanumeric, underscore(_), hyphen(-), and period(.) and it must end with an alphanumeric character.",
"ServiceNameRule": "Only allow 4 to 24 characters of alphanumeric, underscore(_), hyphen(-), and period(.) and it must end with an alphanumeric character.",
"FormValidationFailed": "Form validation failed",
"resources": "Resources",
"Image": "Image"
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@
"ServiceEndpoint": "Punto final del servicio",
"ServiceInfo": "Información de servicio",
"ServiceName": "Nombre del servicio",
"ServiceNameRule": "Sólo se permiten de 4 a 64 caracteres alfanuméricos, guión bajo(_), guión(-) y punto(.) y debe terminar con un carácter alfanumérico.",
"ServiceNameRule": "Sólo se permiten de 4 a 24 caracteres alfanuméricos, guión bajo(_), guión(-) y punto(.) y debe terminar con un carácter alfanumérico.",
"Services": "Servicios",
"ServingRouteErrorModalTitle": "Error de ruta de servicio",
"SessionId": "ID de sesión",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@
"ServiceEndpoint": "Palvelun päätepiste",
"ServiceInfo": "Palvelun tiedot",
"ServiceName": "Palvelun nimi",
"ServiceNameRule": "Ainoastaan aakkosnumeerisia merkkejä, alaviivoja(_), väliviivoja(-) ja pisteitä(.) saa olla 4-64 merkkiä, ja sen on päätyttävä aakkosnumeeriseen merkkiin.",
"ServiceNameRule": "Ainoastaan aakkosnumeerisia merkkejä, alaviivoja(_), väliviivoja(-) ja pisteitä(.) saa olla 4-24 merkkiä, ja sen on päätyttävä aakkosnumeeriseen merkkiin.",
"Services": "Palvelut",
"ServingRouteErrorModalTitle": "Palvelevan reitin virhe",
"SessionId": "Istunnon ID",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@
"TokenExpiredDateHelp": "Le délai d'expiration par défaut du jeton est de 24 heures.",
"TokenExpiredDateError": "L'heure d'expiration du jeton doit être postérieure à l'heure actuelle.",
"FormValidationFailed": "La validation du formulaire a échoué",
"ServiceNameRule": "Seuls 4 à 64 caractères alphanumériques, le trait de soulignement (_), le trait d'union (-) et le point (.) sont autorisés et le texte doit se terminer par un caractère alphanumérique.",
"ServiceNameRule": "Seuls 4 à 24 caractères alphanumériques, le trait de soulignement (_), le trait d'union (-) et le point (.) sont autorisés et le texte doit se terminer par un caractère alphanumérique.",
"resources": "Ressources",
"Image": "Image"
},
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@
"TokenExpiredDateHelp": "Waktu kedaluwarsa token default adalah 24 jam kemudian.",
"TokenExpiredDateError": "Waktu kedaluwarsa token harus setelah waktu saat ini",
"FormValidationFailed": "Validasi formulir gagal",
"ServiceNameRule": "Hanya mengizinkan 4 hingga 64 karakter alfanumerik, garis bawah (_), tanda hubung (-), dan titik (.) dan harus diakhiri dengan karakter alfanumerik.",
"ServiceNameRule": "Hanya mengizinkan 4 hingga 24 karakter alfanumerik, garis bawah (_), tanda hubung (-), dan titik (.) dan harus diakhiri dengan karakter alfanumerik.",
"resources": "Sumber daya",
"Image": "Gambar"
},
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@
"FormValidationFailed": "Convalida del modulo non riuscita",
"StartNewServing": "Iniziare un nuovo servizio",
"ServiceName": "Nome del servizio",
"ServiceNameRule": "Sono consentiti solo da 4 a 64 caratteri alfanumerici, underscore(_), trattino(-) e punto(.) e devono terminare con un carattere alfanumerico.",
"ServiceNameRule": "Sono consentiti solo da 4 a 24 caratteri alfanumerici, underscore(_), trattino(-) e punto(.) e devono terminare con un carattere alfanumerico.",
"OpenToPublic": "Aperto al pubblico",
"DesiredRoutingCount": "Conteggio dell'instradamento desiderato",
"ServingRouteErrorModalTitle": "Errore del percorso di servizio",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@
"FormValidationFailed": "フォーム検証の失敗",
"StartNewServing": "新サービス開始",
"ServiceName": "サービス名",
"ServiceNameRule": "4~64文字の英字、数字、アンダーライン(_)、ハイフン(-)、ピリオド(.)のみを許可し、英文で英字または数字で終わる必要があります。",
"ServiceNameRule": "4~24文字の英字、数字、アンダーライン(_)、ハイフン(-)、ピリオド(.)のみを許可し、英文で英字または数字で終わる必要があります。",
"OpenToPublic": "アプリを外部に公開",
"DesiredRoutingCount": "希望のルーティング数",
"ServingRouteErrorModalTitle": "サービングルートエラー",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
"ExpiredDate": "토큰 만료 시각",
"TokenExpiredDateHelp": "토큰 만료 시각 기본 값은 24시간 뒤입니다.",
"TokenExpiredDateError": "토큰 만료 시간은 현재 시간 이후여야 합니다.",
"ServiceNameRule": "4~64자의 영문, 숫자, 밑줄(_), 하이픈(-), 마침표(.)만 허용하며, 영문으로 영문이나 숫자로 끝나야합니다.",
"ServiceNameRule": "4~24자의 영문, 숫자, 밑줄(_), 하이픈(-), 마침표(.)만 허용하며, 영문으로 영문이나 숫자로 끝나야합니다.",
"FormValidationFailed": "양식 유효성 검사 실패",
"resources": "자원",
"Image": "이미지"
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/mn.json
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@
"TokenExpiredDateHelp": "Өгөгдмөл токен дуусах хугацаа нь 24 цагийн дараа байна.",
"TokenExpiredDateError": "Токен дуусах хугацаа нь одоогийн цагаас хойш байх ёстой",
"FormValidationFailed": "Маягтын баталгаажуулалт амжилтгүй боллоо",
"ServiceNameRule": "Зөвхөн 4-64 үсэг тоо, доогуур зураас(_), зураас(-), цэг(.) оруулахыг зөвшөөрөх ба энэ нь үсэг, тоон тэмдэгтээр төгсөх ёстой.",
"ServiceNameRule": "Зөвхөн 4-24 үсэг тоо, доогуур зураас(_), зураас(-), цэг(.) оруулахыг зөвшөөрөх ба энэ нь үсэг, тоон тэмдэгтээр төгсөх ёстой.",
"resources": "Нөөц",
"Image": "Зураг"
},
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/ms.json
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@
"FormValidationFailed": "Pengesahan borang gagal",
"StartNewServing": "Mulakan hidangan baharu",
"ServiceName": "Nama Perkhidmatan",
"ServiceNameRule": "Hanya benarkan 4 hingga 64 aksara abjad angka, garis bawah(_), sempang(-), dan noktah(.) dan ia mesti berakhir dengan aksara abjad angka.",
"ServiceNameRule": "Hanya benarkan 4 hingga 24 aksara abjad angka, garis bawah(_), sempang(-), dan noktah(.) dan ia mesti berakhir dengan aksara abjad angka.",
"OpenToPublic": "Terbuka Kepada Umum",
"DesiredRoutingCount": "Kiraan Laluan yang Diingini",
"ServingRouteErrorModalTitle": "Ralat Laluan Pelayanan",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@
"FormValidationFailed": "Walidacja formularza nie powiodła się",
"StartNewServing": "Rozpocznij nową porcję",
"ServiceName": "Nazwa usługi",
"ServiceNameRule": "Dozwolone są tylko 4 do 64 znaki alfanumeryczne, podkreślenie(_), myślnik(-) i kropka(.) i muszą kończyć się znakiem alfanumerycznym.",
"ServiceNameRule": "Dozwolone są tylko 4 do 24 znaki alfanumeryczne, podkreślenie(_), myślnik(-) i kropka(.) i muszą kończyć się znakiem alfanumerycznym.",
"OpenToPublic": "Otwarte dla publiczności",
"DesiredRoutingCount": "Pożądana liczba tras",
"ServingRouteErrorModalTitle": "Błąd trasy serwowania",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@
"FormValidationFailed": "Falha na validação do formulário",
"StartNewServing": "Iniciar nova dose",
"ServiceName": "Nome do serviço",
"ServiceNameRule": "Só são permitidos 4 a 64 caracteres alfanuméricos, sublinhado(_), hífen(-) e ponto(.) e deve terminar com um carácter alfanumérico.",
"ServiceNameRule": "Só são permitidos 4 a 24 caracteres alfanuméricos, sublinhado(_), hífen(-) e ponto(.) e deve terminar com um carácter alfanumérico.",
"OpenToPublic": "Aberto ao público",
"DesiredRoutingCount": "Contagem de roteiros desejada",
"ServingRouteErrorModalTitle": "Erro de rota de serviço",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@
"FormValidationFailed": "Falha na validação do formulário",
"StartNewServing": "Iniciar nova dose",
"ServiceName": "Nome do serviço",
"ServiceNameRule": "Só são permitidos 4 a 64 caracteres alfanuméricos, sublinhado(_), hífen(-) e ponto(.) e deve terminar com um carácter alfanumérico.",
"ServiceNameRule": "Só são permitidos 4 a 24 caracteres alfanuméricos, sublinhado(_), hífen(-) e ponto(.) e deve terminar com um carácter alfanumérico.",
"OpenToPublic": "Aberto ao público",
"DesiredRoutingCount": "Contagem de roteiros desejada",
"ServingRouteErrorModalTitle": "Erro de rota de serviço",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@
"TokenExpiredDateHelp": "По умолчанию время истечения срока действия токена составляет 24 часа.",
"TokenExpiredDateError": "Время истечения срока действия токена должно быть после текущего времени",
"FormValidationFailed": "Не удалось выполнить валидацию формы",
"ServiceNameRule": "Допускается только от 4 до 64 буквенно-цифровых символов, символов подчеркивания (_), дефиса (-) и точки(.), и он должен заканчиваться буквенно-цифровым символом.",
"ServiceNameRule": "Допускается только от 4 до 24 буквенно-цифровых символов, символов подчеркивания (_), дефиса (-) и точки(.), и он должен заканчиваться буквенно-цифровым символом.",
"resources": "Ресурсы",
"Image": "Изображение"
},
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@
"FormValidationFailed": "Form doğrulama başarısız oldu",
"StartNewServing": "Yeni servis başlatın",
"ServiceName": "Hizmet Adı",
"ServiceNameRule": "Yalnızca alfanümerik, alt çizgi (_), kısa çizgi (-) ve nokta (.) karakterlerinden oluşan 4 ila 64 karaktere izin verin ve alfanümerik bir karakterle bitmelidir.",
"ServiceNameRule": "Yalnızca alfanümerik, alt çizgi (_), kısa çizgi (-) ve nokta (.) karakterlerinden oluşan 4 ila 24 karaktere izin verin ve alfanümerik bir karakterle bitmelidir.",
"OpenToPublic": "Halka Açık",
"DesiredRoutingCount": "İstenen Yönlendirme Sayısı",
"ServingRouteErrorModalTitle": "Hizmet Veren Rota Hatası",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@
"FormValidationFailed": "Xác thực biểu mẫu không thành công",
"StartNewServing": "Bắt đầu phân phát mới",
"ServiceName": "Tên dịch vụ",
"ServiceNameRule": "Chỉ cho phép 4 đến 64 ký tự chữ và số, dấu gạch dưới (_), dấu gạch nối (-) và dấu chấm (.) và phải kết thúc bằng ký tự chữ và số.",
"ServiceNameRule": "Chỉ cho phép 4 đến 24 ký tự chữ và số, dấu gạch dưới (_), dấu gạch nối (-) và dấu chấm (.) và phải kết thúc bằng ký tự chữ và số.",
"OpenToPublic": "Mở cửa cho công chúng",
"DesiredRoutingCount": "Số lượng định tuyến mong muốn",
"ServingRouteErrorModalTitle": "Lỗi tuyến đường phục vụ",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@
"FormValidationFailed": "表单验证失败",
"StartNewServing": "开始新服务",
"ServiceName": "服务名称",
"ServiceNameRule": "只允许 4 至 64 个字符的字母数字、下划线(_)、连字符(-)和句号(.),且必须以字母数字字符结尾。",
"ServiceNameRule": "只允许 4 至 24 个字符的字母数字、下划线(_)、连字符(-)和句号(.),且必须以字母数字字符结尾。",
"OpenToPublic": "向公众开放",
"DesiredRoutingCount": "所需的路由计数",
"ServingRouteErrorModalTitle": "服务路由错误",
Expand Down
2 changes: 1 addition & 1 deletion resources/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@
"FormValidationFailed": "表单验证失败",
"StartNewServing": "开始新服务",
"ServiceName": "服务名称",
"ServiceNameRule": "只允许 4 至 64 个字符的字母数字、下划线(_)、连字符(-)和句号(.),且必须以字母数字字符结尾。",
"ServiceNameRule": "只允许 4 至 24 个字符的字母数字、下划线(_)、连字符(-)和句号(.),且必须以字母数字字符结尾。",
"OpenToPublic": "向公众开放",
"DesiredRoutingCount": "所需的路由计数",
"ServingRouteErrorModalTitle": "服务路由错误",
Expand Down

0 comments on commit 281e29a

Please sign in to comment.