Commit 2f1996e0 authored by Zack Cuddy's avatar Zack Cuddy Committed by Phil Hughes

Geo Node Form - Text Updates

Text cleanup around the
Selective Sync and
Tuning Settings.
parent 023b7230
...@@ -23,25 +23,25 @@ export default { ...@@ -23,25 +23,25 @@ export default {
formGroups: [ formGroups: [
{ {
id: 'node-repository-capacity-field', id: 'node-repository-capacity-field',
label: __('Repository sync capacity'), label: __('Repository synchronization concurrency limit'),
key: VALIDATION_FIELD_KEYS.REPOS_MAX_CAPACITY, key: VALIDATION_FIELD_KEYS.REPOS_MAX_CAPACITY,
conditional: 'secondary', conditional: 'secondary',
}, },
{ {
id: 'node-file-capacity-field', id: 'node-file-capacity-field',
label: __('File sync capacity'), label: __('File synchronization concurrency limit'),
key: VALIDATION_FIELD_KEYS.FILES_MAX_CAPACITY, key: VALIDATION_FIELD_KEYS.FILES_MAX_CAPACITY,
conditional: 'secondary', conditional: 'secondary',
}, },
{ {
id: 'node-container-repository-capacity-field', id: 'node-container-repository-capacity-field',
label: __('Container repositories sync capacity'), label: __('Container repositories synchronization concurrency limit'),
key: VALIDATION_FIELD_KEYS.CONTAINER_REPOSITORIES_MAX_CAPACITY, key: VALIDATION_FIELD_KEYS.CONTAINER_REPOSITORIES_MAX_CAPACITY,
conditional: 'secondary', conditional: 'secondary',
}, },
{ {
id: 'node-verification-capacity-field', id: 'node-verification-capacity-field',
label: __('Verification capacity'), label: __('Verification concurrency limit'),
key: VALIDATION_FIELD_KEYS.VERIFICATION_MAX_CAPACITY, key: VALIDATION_FIELD_KEYS.VERIFICATION_MAX_CAPACITY,
}, },
{ {
...@@ -68,9 +68,9 @@ export default { ...@@ -68,9 +68,9 @@ export default {
}, },
sectionDescription() { sectionDescription() {
return this.nodeData.primary return this.nodeData.primary
? __('Set the synchronization and verification capacity for the secondary node.') ? __('Set verification limit and frequency.')
: __( : __(
'Set the number of concurrent requests this secondary node will make to the primary node while backfilling.', 'Limit the number of concurrent operations this secondary node can run in the background.',
); );
}, },
sectionLink() { sectionLink() {
......
...@@ -52,13 +52,9 @@ export default { ...@@ -52,13 +52,9 @@ export default {
<template> <template>
<div ref="geoNodeFormSelectiveSyncContainer"> <div ref="geoNodeFormSelectiveSyncContainer">
<h2 class="gl-font-size-h2 gl-my-5">{{ __('Selective synchronization') }}</h2> <h2 class="gl-font-size-h2 gl-my-5">{{ __('Synchronization settings') }}</h2>
<p class="gl-mb-5"> <p class="gl-mb-5">
{{ {{ __('Set what should be replicated by this secondary node.') }}
__(
'Set what should be replicated by choosing specific projects or groups by the secondary node.',
)
}}
<gl-link <gl-link
:href="$options.SELECTIVE_SYNC_MORE_INFO" :href="$options.SELECTIVE_SYNC_MORE_INFO"
target="_blank" target="_blank"
...@@ -69,6 +65,7 @@ export default { ...@@ -69,6 +65,7 @@ export default {
<gl-form-group <gl-form-group
:label="__('Selective synchronization')" :label="__('Selective synchronization')"
label-for="node-selective-synchronization-field" label-for="node-selective-synchronization-field"
:description="__('Choose specific groups or storage shards')"
> >
<gl-form-select <gl-form-select
id="node-selective-synchronization-field" id="node-selective-synchronization-field"
......
---
title: Geo Node Form - Text Updates
merge_request: 47297
author:
type: changed
...@@ -61,12 +61,13 @@ describe('GeoNodeFormCapacities', () => { ...@@ -61,12 +61,13 @@ describe('GeoNodeFormCapacities', () => {
const findGeoNodeFormReverificationIntervalField = () => const findGeoNodeFormReverificationIntervalField = () =>
wrapper.find('#node-reverification-interval-field'); wrapper.find('#node-reverification-interval-field');
const findErrorMessage = () => wrapper.find('.invalid-feedback'); const findErrorMessage = () => wrapper.find('.invalid-feedback');
const findFieldLabel = id => wrapper.vm.formGroups.find(el => el.id === id).label;
describe('template', () => { describe('template', () => {
describe.each` describe.each`
primaryNode | description | link primaryNode | description | link
${true} | ${'Set the synchronization and verification capacity for the secondary node.'} | ${REVERIFICATION_MORE_INFO} ${true} | ${'Set verification limit and frequency.'} | ${REVERIFICATION_MORE_INFO}
${false} | ${'Set the number of concurrent requests this secondary node will make to the primary node while backfilling.'} | ${BACKFILL_MORE_INFO} ${false} | ${'Limit the number of concurrent operations this secondary node can run in the background.'} | ${BACKFILL_MORE_INFO}
`(`section description`, ({ primaryNode, description, link }) => { `(`section description`, ({ primaryNode, description, link }) => {
describe(`when node is ${primaryNode ? 'primary' : 'secondary'}`, () => { describe(`when node is ${primaryNode ? 'primary' : 'secondary'}`, () => {
beforeEach(() => { beforeEach(() => {
...@@ -168,7 +169,9 @@ describe('GeoNodeFormCapacities', () => { ...@@ -168,7 +169,9 @@ describe('GeoNodeFormCapacities', () => {
showError, showError,
); );
if (showError) { if (showError) {
expect(findErrorMessage().text()).toBe(`Verification capacity ${errorMessage}`); expect(findErrorMessage().text()).toBe(
`${findFieldLabel('node-verification-capacity-field')} ${errorMessage}`,
);
} }
}); });
}); });
...@@ -183,7 +186,9 @@ describe('GeoNodeFormCapacities', () => { ...@@ -183,7 +186,9 @@ describe('GeoNodeFormCapacities', () => {
showError, showError,
); );
if (showError) { if (showError) {
expect(findErrorMessage().text()).toBe(`Re-verification interval ${errorMessage}`); expect(findErrorMessage().text()).toBe(
`${findFieldLabel('node-reverification-interval-field')} ${errorMessage}`,
);
} }
}); });
}); });
...@@ -202,7 +207,9 @@ describe('GeoNodeFormCapacities', () => { ...@@ -202,7 +207,9 @@ describe('GeoNodeFormCapacities', () => {
it(`${showError ? 'shows' : 'hides'} error when data is ${data}`, () => { it(`${showError ? 'shows' : 'hides'} error when data is ${data}`, () => {
expect(findGeoNodeFormRepositoryCapacityField().classes('is-invalid')).toBe(showError); expect(findGeoNodeFormRepositoryCapacityField().classes('is-invalid')).toBe(showError);
if (showError) { if (showError) {
expect(findErrorMessage().text()).toBe(`Repository sync capacity ${errorMessage}`); expect(findErrorMessage().text()).toBe(
`${findFieldLabel('node-repository-capacity-field')} ${errorMessage}`,
);
} }
}); });
}); });
...@@ -215,7 +222,9 @@ describe('GeoNodeFormCapacities', () => { ...@@ -215,7 +222,9 @@ describe('GeoNodeFormCapacities', () => {
it(`${showError ? 'shows' : 'hides'} error when data is ${data}`, () => { it(`${showError ? 'shows' : 'hides'} error when data is ${data}`, () => {
expect(findGeoNodeFormFileCapacityField().classes('is-invalid')).toBe(showError); expect(findGeoNodeFormFileCapacityField().classes('is-invalid')).toBe(showError);
if (showError) { if (showError) {
expect(findErrorMessage().text()).toBe(`File sync capacity ${errorMessage}`); expect(findErrorMessage().text()).toBe(
`${findFieldLabel('node-file-capacity-field')} ${errorMessage}`,
);
} }
}); });
}); });
...@@ -231,7 +240,7 @@ describe('GeoNodeFormCapacities', () => { ...@@ -231,7 +240,7 @@ describe('GeoNodeFormCapacities', () => {
); );
if (showError) { if (showError) {
expect(findErrorMessage().text()).toBe( expect(findErrorMessage().text()).toBe(
`Container repositories sync capacity ${errorMessage}`, `${findFieldLabel('node-container-repository-capacity-field')} ${errorMessage}`,
); );
} }
}); });
...@@ -247,7 +256,9 @@ describe('GeoNodeFormCapacities', () => { ...@@ -247,7 +256,9 @@ describe('GeoNodeFormCapacities', () => {
showError, showError,
); );
if (showError) { if (showError) {
expect(findErrorMessage().text()).toBe(`Verification capacity ${errorMessage}`); expect(findErrorMessage().text()).toBe(
`${findFieldLabel('node-verification-capacity-field')} ${errorMessage}`,
);
} }
}); });
}); });
......
...@@ -5327,6 +5327,9 @@ msgstr "" ...@@ -5327,6 +5327,9 @@ msgstr ""
msgid "Choose labels" msgid "Choose labels"
msgstr "" msgstr ""
msgid "Choose specific groups or storage shards"
msgstr ""
msgid "Choose the top-level group for your repository imports." msgid "Choose the top-level group for your repository imports."
msgstr "" msgstr ""
...@@ -7156,7 +7159,7 @@ msgstr "" ...@@ -7156,7 +7159,7 @@ msgstr ""
msgid "Container repositories" msgid "Container repositories"
msgstr "" msgstr ""
msgid "Container repositories sync capacity" msgid "Container repositories synchronization concurrency limit"
msgstr "" msgstr ""
msgid "Container repository" msgid "Container repository"
...@@ -11754,7 +11757,7 @@ msgstr "" ...@@ -11754,7 +11757,7 @@ msgstr ""
msgid "File renamed with no changes." msgid "File renamed with no changes."
msgstr "" msgstr ""
msgid "File sync capacity" msgid "File synchronization concurrency limit"
msgstr "" msgstr ""
msgid "File templates" msgid "File templates"
...@@ -16056,6 +16059,9 @@ msgstr "" ...@@ -16056,6 +16059,9 @@ msgstr ""
msgid "Limit namespaces and projects that can be indexed" msgid "Limit namespaces and projects that can be indexed"
msgstr "" msgstr ""
msgid "Limit the number of concurrent operations this secondary node can run in the background."
msgstr ""
msgid "Limited to showing %d event at most" msgid "Limited to showing %d event at most"
msgid_plural "Limited to showing %d events at most" msgid_plural "Limited to showing %d events at most"
msgstr[0] "" msgstr[0] ""
...@@ -22844,7 +22850,7 @@ msgstr "" ...@@ -22844,7 +22850,7 @@ msgstr ""
msgid "Repository storage" msgid "Repository storage"
msgstr "" msgstr ""
msgid "Repository sync capacity" msgid "Repository synchronization concurrency limit"
msgstr "" msgstr ""
msgid "Repository: %{counter_repositories} / Wikis: %{counter_wikis} / Build Artifacts: %{counter_build_artifacts} / LFS: %{counter_lfs_objects} / Snippets: %{counter_snippets}" msgid "Repository: %{counter_repositories} / Wikis: %{counter_wikis} / Build Artifacts: %{counter_build_artifacts} / LFS: %{counter_lfs_objects} / Snippets: %{counter_snippets}"
...@@ -24550,12 +24556,6 @@ msgstr "" ...@@ -24550,12 +24556,6 @@ msgstr ""
msgid "Set the milestone to %{milestone_reference}." msgid "Set the milestone to %{milestone_reference}."
msgstr "" msgstr ""
msgid "Set the number of concurrent requests this secondary node will make to the primary node while backfilling."
msgstr ""
msgid "Set the synchronization and verification capacity for the secondary node."
msgstr ""
msgid "Set the timeout in seconds to send a secondary node status to the primary and IPs allowed for the secondary nodes." msgid "Set the timeout in seconds to send a secondary node status to the primary and IPs allowed for the secondary nodes."
msgstr "" msgstr ""
...@@ -24598,13 +24598,16 @@ msgstr "" ...@@ -24598,13 +24598,16 @@ msgstr ""
msgid "Set up your project to automatically push and/or pull changes to/from another repository. Branches, tags, and commits will be synced automatically." msgid "Set up your project to automatically push and/or pull changes to/from another repository. Branches, tags, and commits will be synced automatically."
msgstr "" msgstr ""
msgid "Set verification limit and frequency."
msgstr ""
msgid "Set weight" msgid "Set weight"
msgstr "" msgstr ""
msgid "Set weight to %{weight}." msgid "Set weight to %{weight}."
msgstr "" msgstr ""
msgid "Set what should be replicated by choosing specific projects or groups by the secondary node." msgid "Set what should be replicated by this secondary node."
msgstr "" msgstr ""
msgid "SetPasswordToCloneLink|set a password" msgid "SetPasswordToCloneLink|set a password"
...@@ -26201,6 +26204,9 @@ msgstr "" ...@@ -26201,6 +26204,9 @@ msgstr ""
msgid "Synchronization disabled" msgid "Synchronization disabled"
msgstr "" msgstr ""
msgid "Synchronization settings"
msgstr ""
msgid "Syncing…" msgid "Syncing…"
msgstr "" msgstr ""
...@@ -29626,7 +29632,7 @@ msgstr "" ...@@ -29626,7 +29632,7 @@ msgstr ""
msgid "Various settings that affect GitLab performance." msgid "Various settings that affect GitLab performance."
msgstr "" msgstr ""
msgid "Verification capacity" msgid "Verification concurrency limit"
msgstr "" msgstr ""
msgid "Verification information" msgid "Verification information"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment