Skip to content

Commit 60b21e7

Browse files
authored
fix: drop ?version=main from TTL disable URL and rename i18n key to actions.disableTTL
Agent-Logs-Url: https://github.com/ydb-platform/ydb-embedded-ui/sessions/1c61cdb3-b2e3-4741-b040-73f42aca0da4
1 parent 6bc2e0c commit 60b21e7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/containers/Tenant/i18n/en.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"actions.manageAutoPartitioning": "Manage auto partitioning...",
4848
"actions.manageReadReplicas": "Add read-only replicas...",
4949
"actions.enableTTL": "Enable TTL...",
50-
"actions.manageTTL": "Disable TTL...",
50+
"actions.disableTTL": "Disable TTL...",
5151
"actions.addTableIndex": "Add index...",
5252
"actions.addVectorIndex": "Add vector index...",
5353
"actions.addFulltextIndex": "Add fulltext index...",

‎src/containers/Tenant/utils/schemaActions.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const bindActions = (
194194
stripEllipsis(i18n('actions.manageReadReplicas')),
195195
),
196196
enableTTL: inputQuery(enableTTLTemplate, stripEllipsis(i18n('actions.enableTTL'))),
197-
manageTTL: inputQuery(manageTTLTemplate, stripEllipsis(i18n('actions.manageTTL'))),
197+
manageTTL: inputQuery(manageTTLTemplate, stripEllipsis(i18n('actions.disableTTL'))),
198198
selectQuery: inputQuery(selectQueryTemplate, stripEllipsis(i18n('actions.selectQuery'))),
199199
showCreateTable: inputQuery(
200200
showCreateTableTemplate,
@@ -351,7 +351,7 @@ export const getActions =
351351
action: actions.enableTTL,
352352
};
353353
const manageTTLItem = {
354-
text: i18n('actions.manageTTL'),
354+
text: i18n('actions.disableTTL'),
355355
action: actions.manageTTL,
356356
};
357357

‎src/containers/Tenant/utils/schemaQueryTemplates.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export const manageTTLTemplate = (params?: SchemaQueryParams) => {
178178
: '${1:<my_table>}';
179179

180180
return `-- Disable Time to Live (TTL) for automatic row deletion, see docs for more information
181-
-- https://ydb.tech/docs/en/yql/reference/recipes/ttl?version=main#disable
181+
-- https://ydb.tech/docs/en/yql/reference/recipes/ttl#disable
182182
183183
ALTER TABLE ${path} RESET (TTL);`;
184184
};

0 commit comments

Comments
 (0)