Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions data/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -9571,9 +9571,6 @@ type ModelRevision implements Node
id: ID!
Comment thread
yomybaby marked this conversation as resolved.
imageId: ID!

"""The name identifier for this revision."""
name: String!

"""Cluster configuration for replica distribution."""
clusterConfig: ClusterConfig!

Expand Down Expand Up @@ -14470,6 +14467,9 @@ enum RBACElementType
DEPLOYMENT_REVISION @join__enumValue(graph: STRAWBERRY)
IMAGE_ALIAS @join__enumValue(graph: STRAWBERRY)
ROLE_ASSIGNMENT @join__enumValue(graph: STRAWBERRY)
VFOLDER_DATA @join__enumValue(graph: STRAWBERRY)
SESSION_APP_SERVICE @join__enumValue(graph: STRAWBERRY)
USER_EMAIL @join__enumValue(graph: STRAWBERRY)
ARTIFACT_REVISION @join__enumValue(graph: STRAWBERRY)
}

Expand Down
8 changes: 7 additions & 1 deletion react/src/components/DeploymentAddRevisionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import VFolderTableFormItem, {
} from './VFolderTableFormItem';
import {
App,
Checkbox,
Collapse,
Divider,
Form,
Expand Down Expand Up @@ -128,6 +129,7 @@ type FormValues = ImageEnvironmentFormInput &
commandInitialDelay?: number;
commandMaxRetries?: number;
environ: EnvVarFormListValue[];
autoActivate: boolean;
};

interface DeploymentAddRevisionModalFormBodyProps {
Expand Down Expand Up @@ -809,7 +811,7 @@ const DeploymentAddRevisionModalFormBody: React.FC<
},
modelDefinition,
extraMounts: extraMounts.length > 0 ? extraMounts : null,
options: { autoActivate: true },
options: { autoActivate: values.autoActivate },
},
},
onCompleted: (_, errors) => {
Expand Down Expand Up @@ -897,11 +899,15 @@ const DeploymentAddRevisionModalFormBody: React.FC<
commandInitialDelay: 60,
commandMaxRetries: 10,
environ: [],
autoActivate: true,
})}
>
<Form.Item name="name" label={t('deployment.RevisionName')}>
<Input placeholder={t('deployment.RevisionNamePlaceholder')} />
</Form.Item>
<Form.Item name="autoActivate" valuePropName="checked">
<Checkbox>{t('deployment.AutoActivate')}</Checkbox>
</Form.Item>

<SectionHeader>{t('deployment.step.ModelAndRuntime')}</SectionHeader>
<Form.Item
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Revision hinzufügen",
"AdditionalMounts": "Zusätzliche Einhängepunkte",
"AnotherDeploymentInProgress": "Ein weiteres Deployment-Update wird bereits durchgeführt. Bitte warten Sie, bis es abgeschlossen ist, bevor Sie es erneut versuchen.",
"AutoActivate": "Nach dem Hinzufügen automatisch aktivieren",
"AutoScaling": "Automatische Skalierung",
"AutoScalingRules": "Regeln für automatische Skalierung",
"BasicInformation": "Grundlegende Informationen",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Προσθήκη Revision",
"AdditionalMounts": "Πρόσθετες Προσαρτήσεις",
"AnotherDeploymentInProgress": "Μια άλλη ενημέρωση ανάπτυξης βρίσκεται ήδη σε εξέλιξη. Παρακαλούμε περιμένετε να ολοκληρωθεί πριν προσπαθήσετε ξανά.",
"AutoActivate": "Αυτόματη ενεργοποίηση μετά την προσθήκη",
"AutoScaling": "Αυτόματη κλιμάκωση",
"AutoScalingRules": "Κανόνες αυτόματης κλιμάκωσης",
"BasicInformation": "Βασικές πληροφορίες",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@
"AddRevision": "Add Revision",
"AdditionalMounts": "Additional Mounts",
"AnotherDeploymentInProgress": "Another deployment update is already in progress. Please wait for it to complete before trying again.",
"AutoActivate": "Auto-activate after adding",
"AutoScaling": "Auto-scaling",
"AutoScalingRules": "Auto-scaling Rules",
"BasicInformation": "Basic Information",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Agregar Revisión",
"AdditionalMounts": "Montajes adicionales",
"AnotherDeploymentInProgress": "Ya hay otra actualización de despliegue en curso. Por favor, espere a que se complete antes de intentarlo de nuevo.",
"AutoActivate": "Activar automáticamente después de agregar",
"AutoScaling": "Escalado automático",
"AutoScalingRules": "Reglas de escalado automático",
"BasicInformation": "Información básica",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Lisää Revision",
"AdditionalMounts": "Lisäliitokset",
"AnotherDeploymentInProgress": "Toinen käyttöönoton päivitys on jo käynnissä. Odota sen valmistumista ennen kuin yrität uudelleen.",
"AutoActivate": "Aktivoi automaattisesti lisäyksen jälkeen",
"AutoScaling": "Automaattinen skaalaus",
"AutoScalingRules": "Automaattisen skaalauksen säännöt",
"BasicInformation": "Perustiedot",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Ajouter une Revision",
"AdditionalMounts": "Montages supplémentaires",
"AnotherDeploymentInProgress": "Une autre mise à jour de déploiement est déjà en cours. Veuillez attendre qu'elle se termine avant de réessayer.",
"AutoActivate": "Activer automatiquement après ajout",
"AutoScaling": "Mise à l'échelle automatique",
"AutoScalingRules": "Règles de mise à l'échelle automatique",
"BasicInformation": "Informations de base",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Tambah Revision",
"AdditionalMounts": "Pemasangan Tambahan",
"AnotherDeploymentInProgress": "Pembaruan deployment lain sedang berlangsung. Harap tunggu hingga selesai sebelum mencoba lagi.",
"AutoActivate": "Aktifkan otomatis setelah menambahkan",
"AutoScaling": "Skala Otomatis",
"AutoScalingRules": "Aturan Skala Otomatis",
"BasicInformation": "Informasi Dasar",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Aggiungi Revision",
"AdditionalMounts": "Montaggio aggiuntivo",
"AnotherDeploymentInProgress": "Un altro aggiornamento del deployment è già in corso. Attendere il completamento prima di riprovare.",
"AutoActivate": "Attiva automaticamente dopo l'aggiunta",
"AutoScaling": "Scalabilità automatica",
"AutoScalingRules": "Regole di scalabilità automatica",
"BasicInformation": "Informazioni di base",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Revision を追加",
"AdditionalMounts": "追加マウント",
"AnotherDeploymentInProgress": "別のデプロイ更新が既に進行中です。再試行する前に完了するまでお待ちください。",
"AutoActivate": "追加後に自動的にアクティブにする",
"AutoScaling": "自動スケーリング",
"AutoScalingRules": "自動スケーリングルール",
"BasicInformation": "基本情報",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@
"AddRevision": "리비전 추가",
"AdditionalMounts": "추가 마운트",
"AnotherDeploymentInProgress": "다른 배포 업데이트가 이미 진행 중입니다. 다시 시도하기 전에 완료될 때까지 기다려 주세요.",
"AutoActivate": "추가 후 자동 활성화",
"AutoScaling": "자동 스케일링",
"AutoScalingRules": "자동 스케일링 규칙",
"BasicInformation": "기본 정보",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/mn.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Revision нэмэх",
"AdditionalMounts": "Нэмэлт холболтууд",
"AnotherDeploymentInProgress": "Өөр байршуулалтын шинэчлэлт аль хэдийн явагдаж байна. Дахин оролдохоос өмнө дуусахыг хүлээнэ үү.",
"AutoActivate": "Нэмсний дараа автоматаар идэвхжүүлэх",
"AutoScaling": "Автомат масштабжуулалт",
"AutoScalingRules": "Автомат масштабжуулалтын дүрмүүд",
"BasicInformation": "Үндсэн мэдээлэл",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/ms.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Tambah Revision",
"AdditionalMounts": "Pemasangan Tambahan",
"AnotherDeploymentInProgress": "Kemas kini deployment lain sedang dalam proses. Sila tunggu sehingga selesai sebelum mencuba lagi.",
"AutoActivate": "Aktifkan secara automatik selepas menambah",
"AutoScaling": "Penskalaan Automatik",
"AutoScalingRules": "Peraturan Penskalaan Automatik",
"BasicInformation": "Maklumat Asas",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Dodaj Revision",
"AdditionalMounts": "Dodatkowe Montowania",
"AnotherDeploymentInProgress": "Inna aktualizacja wdrożenia jest już w toku. Poczekaj na jej zakończenie przed ponowną próbą.",
"AutoActivate": "Automatycznie aktywuj po dodaniu",
"AutoScaling": "Automatyczne skalowanie",
"AutoScalingRules": "Reguły automatycznego skalowania",
"BasicInformation": "Podstawowe informacje",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Adicionar Revision",
"AdditionalMounts": "Montagens adicionais",
"AnotherDeploymentInProgress": "Outra atualização de implantação já está em andamento. Aguarde a conclusão antes de tentar novamente.",
"AutoActivate": "Ativar automaticamente após adicionar",
"AutoScaling": "Dimensionamento automático",
"AutoScalingRules": "Regras de dimensionamento automático",
"BasicInformation": "Informações básicas",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Adicionar Revision",
"AdditionalMounts": "Montagens adicionais",
"AnotherDeploymentInProgress": "Outra atualização de implementação já está em curso. Por favor, aguarde a sua conclusão antes de tentar novamente.",
"AutoActivate": "Ativar automaticamente após adicionar",
"AutoScaling": "Dimensionamento automático",
"AutoScalingRules": "Regras de dimensionamento automático",
"BasicInformation": "Informações básicas",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Добавить Revision",
"AdditionalMounts": "Дополнительные монтирования",
"AnotherDeploymentInProgress": "Другое обновление развёртывания уже выполняется. Пожалуйста, дождитесь его завершения перед повторной попыткой.",
"AutoActivate": "Автоматически активировать после добавления",
"AutoScaling": "Автоматическое масштабирование",
"AutoScalingRules": "Правила автоматического масштабирования",
"BasicInformation": "Основная информация",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "เพิ่ม Revision",
"AdditionalMounts": "การเมาท์เพิ่มเติม",
"AnotherDeploymentInProgress": "การอัปเดตการปรับใช้อื่นกำลังดำเนินอยู่แล้ว โปรดรอให้เสร็จสิ้นก่อนลองอีกครั้ง",
"AutoActivate": "เปิดใช้งานอัตโนมัติหลังจากเพิ่ม",
"AutoScaling": "การปรับขนาดอัตโนมัติ",
"AutoScalingRules": "กฎการปรับขนาดอัตโนมัติ",
"BasicInformation": "ข้อมูลพื้นฐาน",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Revision Ekle",
"AdditionalMounts": "Ek Bağlama Noktaları",
"AnotherDeploymentInProgress": "Başka bir dağıtım güncellemesi zaten devam ediyor. Tekrar denemeden önce tamamlanmasını bekleyin.",
"AutoActivate": "Ekledikten sonra otomatik etkinleştir",
"AutoScaling": "Otomatik Ölçeklendirme",
"AutoScalingRules": "Otomatik Ölçeklendirme Kuralları",
"BasicInformation": "Temel Bilgiler",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "Thêm Revision",
"AdditionalMounts": "Gắn Kết Bổ Sung",
"AnotherDeploymentInProgress": "Một bản cập nhật triển khai khác đang được thực hiện. Vui lòng chờ cho đến khi hoàn thành trước khi thử lại.",
"AutoActivate": "Tự động kích hoạt sau khi thêm",
"AutoScaling": "Tự động mở rộng",
"AutoScalingRules": "Quy tắc tự động mở rộng",
"BasicInformation": "Thông tin cơ bản",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
"AddRevision": "添加 Revision",
"AdditionalMounts": "附加挂载",
"AnotherDeploymentInProgress": "另一个部署更新已在进行中。请等待其完成后再重试。",
"AutoActivate": "添加后自动激活",
"AutoScaling": "自动扩缩容",
"AutoScalingRules": "自动扩缩容规则",
"BasicInformation": "基本信息",
Expand Down
1 change: 1 addition & 0 deletions resources/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@
"AddRevision": "新增 Revision",
"AdditionalMounts": "附加掛載",
"AnotherDeploymentInProgress": "另一個部署更新已在進行中。請等待完成後再重試。",
"AutoActivate": "新增後自動啟用",
"AutoScaling": "自動擴縮容",
"AutoScalingRules": "自動擴縮容規則",
"BasicInformation": "基本資訊",
Expand Down
Loading