From 11d6bb443780b5f6b13a1f41fbb4b5ec4261205f Mon Sep 17 00:00:00 2001 From: Shijun Sun <30999793+AllForNothing@users.noreply.github.com> Date: Sat, 27 May 2023 00:32:19 +0800 Subject: [PATCH] Add a text to explain the time window for GC (#18735) 1.Fixes #18692 Signed-off-by: AllForNothing --- .../clearing-job/gc-page/gc/gc.component.html | 8 ++++++++ src/portal/src/i18n/lang/de-de-lang.json | 1 + src/portal/src/i18n/lang/en-us-lang.json | 1 + src/portal/src/i18n/lang/es-es-lang.json | 1 + src/portal/src/i18n/lang/fr-fr-lang.json | 1 + src/portal/src/i18n/lang/pt-br-lang.json | 1 + src/portal/src/i18n/lang/tr-tr-lang.json | 1 + src/portal/src/i18n/lang/zh-cn-lang.json | 1 + src/portal/src/i18n/lang/zh-tw-lang.json | 1 + 9 files changed, 16 insertions(+) diff --git a/src/portal/src/app/base/left-side-nav/clearing-job/gc-page/gc/gc.component.html b/src/portal/src/app/base/left-side-nav/clearing-job/gc-page/gc/gc.component.html index 519d3697d3c..2b63b0ad366 100644 --- a/src/portal/src/app/base/left-side-nav/clearing-job/gc-page/gc/gc.component.html +++ b/src/portal/src/app/base/left-side-nav/clearing-job/gc-page/gc/gc.component.html @@ -56,6 +56,14 @@ {{ 'GC.EXPLAIN' | translate }} +
+
+
+ {{ + 'GC.EXPLAIN_TIME_WINDOW' | translate + }} +
+
diff --git a/src/portal/src/i18n/lang/de-de-lang.json b/src/portal/src/i18n/lang/de-de-lang.json index a0c88c0858d..31eea848a53 100644 --- a/src/portal/src/i18n/lang/de-de-lang.json +++ b/src/portal/src/i18n/lang/de-de-lang.json @@ -1228,6 +1228,7 @@ "PARAMETERS": "Parameter", "DELETE_UNTAGGED": "Erlaube Speicherbereinigung auf Artefakte ohne Tag", "EXPLAIN": "Speicherbereinigung (Garbage Collection / GC) ist eine rechenintensive Operation, die die Registry-Leistung beeinflussen kann", + "EXPLAIN_TIME_WINDOW": "Artifacts uploaded in the past 2 hours(the default window) are excluded from garbage collection", "DRY_RUN_SUCCESS": "Probelauf erfolgreich gestartet" }, "RETAG": { diff --git a/src/portal/src/i18n/lang/en-us-lang.json b/src/portal/src/i18n/lang/en-us-lang.json index 3eac96bec3b..1b0d135cf5d 100644 --- a/src/portal/src/i18n/lang/en-us-lang.json +++ b/src/portal/src/i18n/lang/en-us-lang.json @@ -1228,6 +1228,7 @@ "PARAMETERS": "Parameters", "DELETE_UNTAGGED": "Allow garbage collection on untagged artifacts", "EXPLAIN": "GC is a compute intensive operation that may impact registry performance", + "EXPLAIN_TIME_WINDOW": "Artifacts uploaded in the past 2 hours(the default window) are excluded from garbage collection", "DRY_RUN_SUCCESS": "Triggered dry run successfully" }, "RETAG": { diff --git a/src/portal/src/i18n/lang/es-es-lang.json b/src/portal/src/i18n/lang/es-es-lang.json index 1d7bb1f7a2b..561bf1a8a7c 100644 --- a/src/portal/src/i18n/lang/es-es-lang.json +++ b/src/portal/src/i18n/lang/es-es-lang.json @@ -1225,6 +1225,7 @@ "PARAMETERS": "Parameters", "DELETE_UNTAGGED": "Allow garbage collection on untagged artifacts", "EXPLAIN": "GC is a compute intensive operation that may impact registry performance", + "EXPLAIN_TIME_WINDOW": "Artifacts uploaded in the past 2 hours(the default window) are excluded from garbage collection", "DRY_RUN_SUCCESS": "Triggered dry run successfully" }, "RETAG": { diff --git a/src/portal/src/i18n/lang/fr-fr-lang.json b/src/portal/src/i18n/lang/fr-fr-lang.json index 0ba468e53d6..cdb932d4b1e 100644 --- a/src/portal/src/i18n/lang/fr-fr-lang.json +++ b/src/portal/src/i18n/lang/fr-fr-lang.json @@ -1195,6 +1195,7 @@ "PARAMETERS": "Paramètres", "DELETE_UNTAGGED": "Supprimer les artefacts non tagués", "EXPLAIN": "GC est une opération gourmande en puissance de calcul qui peut impacter les performances du registre", + "EXPLAIN_TIME_WINDOW": "Artifacts uploaded in the past 2 hours(the default window) are excluded from garbage collection", "DRY_RUN_SUCCESS": "Exécution à blanc déclenchée avec succès" }, "RETAG": { diff --git a/src/portal/src/i18n/lang/pt-br-lang.json b/src/portal/src/i18n/lang/pt-br-lang.json index 631c00d4dd8..9f29bca1100 100644 --- a/src/portal/src/i18n/lang/pt-br-lang.json +++ b/src/portal/src/i18n/lang/pt-br-lang.json @@ -1225,6 +1225,7 @@ "PARAMETERS": "Parâmetros", "DELETE_UNTAGGED": "Permitir coleta de artefatos sem tags", "EXPLAIN": "A limpeza exige recursos computacionais e pode impactar performance.", + "EXPLAIN_TIME_WINDOW": "Artifacts uploaded in the past 2 hours(the default window) are excluded from garbage collection", "DRY_RUN_SUCCESS": "Teste executado com sucesso" }, "RETAG": { diff --git a/src/portal/src/i18n/lang/tr-tr-lang.json b/src/portal/src/i18n/lang/tr-tr-lang.json index 0dc6ce9ae77..47adcb3fccb 100644 --- a/src/portal/src/i18n/lang/tr-tr-lang.json +++ b/src/portal/src/i18n/lang/tr-tr-lang.json @@ -1228,6 +1228,7 @@ "PARAMETERS": "Parameters", "DELETE_UNTAGGED": "Allow garbage collection on untagged artifacts", "EXPLAIN": "GC is a compute intensive operation that may impact registry performance", + "EXPLAIN_TIME_WINDOW": "Artifacts uploaded in the past 2 hours(the default window) are excluded from garbage collection", "DRY_RUN_SUCCESS": "Triggered dry run successfully" }, "RETAG": { diff --git a/src/portal/src/i18n/lang/zh-cn-lang.json b/src/portal/src/i18n/lang/zh-cn-lang.json index fc634a973a4..e3ae304dc5c 100644 --- a/src/portal/src/i18n/lang/zh-cn-lang.json +++ b/src/portal/src/i18n/lang/zh-cn-lang.json @@ -1225,6 +1225,7 @@ "PARAMETERS": "参数", "DELETE_UNTAGGED": "允许回收无 tag 的 artifacts", "EXPLAIN": "垃圾回收是一个计算密集型操作,可能会影响仓库性能", + "EXPLAIN_TIME_WINDOW": "在最近的两小时(默认窗口期)内被推送的 Artifacts 不会被当做垃圾回收的目标", "DRY_RUN_SUCCESS": "触发模拟运行成功" }, "RETAG": { diff --git a/src/portal/src/i18n/lang/zh-tw-lang.json b/src/portal/src/i18n/lang/zh-tw-lang.json index 5d37f33f6c7..c9d0c02fa9b 100644 --- a/src/portal/src/i18n/lang/zh-tw-lang.json +++ b/src/portal/src/i18n/lang/zh-tw-lang.json @@ -1217,6 +1217,7 @@ "PARAMETERS": "參數", "DELETE_UNTAGGED": "允許對未標籤檔案進行垃圾收集", "EXPLAIN": "清理垃圾是一個計算密集的操作,可能影響註冊表的效能", + "EXPLAIN_TIME_WINDOW": "Artifacts uploaded in the past 2 hours(the default window) are excluded from garbage collection", "DRY_RUN_SUCCESS": "成功觸發測試執行" }, "RETAG": {