Commit 494ce490 authored by Amy Troschinetz's avatar Amy Troschinetz

Rename whole number to integer number

- **components/strategies/flexible_rollout.vue**
- **app/assets/javascripts/feature_flags/components/strategies**
  - **flexible_rollout.vue**
  - **percent_rollout.vue**
- **spec/frontend/feature_flags/components/strategies**
  - **flexible_rollout_spec.js**
  - **percent_rollout_spec.js**
- **locale/gitlab.pot**

Changes "a whole number" to "an integer".

**changelogs/unreleased/whole-number-to-integer.yml:**

Changelog.
parent 27b846a5
......@@ -497,7 +497,9 @@ export default {
:target="rolloutPercentageId(index)"
>
{{
s__('FeatureFlags|Percent rollout must be a whole number between 0 and 100')
s__(
'FeatureFlags|Percent rollout must be an integer number between 0 and 100',
)
}}
</gl-tooltip>
<span class="ml-1">%</span>
......
......@@ -17,8 +17,8 @@ export default {
},
},
i18n: {
percentageDescription: __('Enter a whole number between 0 and 100'),
percentageInvalid: __('Percent rollout must be a whole number between 0 and 100'),
percentageDescription: __('Enter an integer number number between 0 and 100'),
percentageInvalid: __('Percent rollout must be an integer number between 0 and 100'),
percentageLabel: __('Percentage'),
stickinessDescription: __('Consistency guarantee method'),
stickinessLabel: __('Based on'),
......
......@@ -16,9 +16,9 @@ export default {
},
},
i18n: {
rolloutPercentageDescription: __('Enter a whole number between 0 and 100'),
rolloutPercentageDescription: __('Enter an integer number between 0 and 100'),
rolloutPercentageInvalid: s__(
'FeatureFlags|Percent rollout must be a whole number between 0 and 100',
'FeatureFlags|Percent rollout must be an integer number between 0 and 100',
),
rolloutPercentageLabel: s__('FeatureFlag|Percentage'),
},
......
---
title: Rename "a whole number" to "an integer number" in feature flags strategies
merge_request: 45444
author:
type: changed
......@@ -9979,7 +9979,10 @@ msgstr ""
msgid "Enter a number"
msgstr ""
msgid "Enter a whole number between 0 and 100"
msgid "Enter an integer number between 0 and 100"
msgstr ""
msgid "Enter an integer number number between 0 and 100"
msgstr ""
msgid "Enter at least three characters to search"
......@@ -11340,7 +11343,7 @@ msgstr ""
msgid "FeatureFlags|Percent rollout (logged in users)"
msgstr ""
msgid "FeatureFlags|Percent rollout must be a whole number between 0 and 100"
msgid "FeatureFlags|Percent rollout must be an integer number between 0 and 100"
msgstr ""
msgid "FeatureFlags|Protected"
......@@ -19084,7 +19087,7 @@ msgstr ""
msgid "People without permission will never get a notification."
msgstr ""
msgid "Percent rollout must be a whole number between 0 and 100"
msgid "Percent rollout must be an integer number between 0 and 100"
msgstr ""
msgid "Percentage"
......
......@@ -100,7 +100,7 @@ describe('feature_flags/components/strategies/flexible_rollout.vue', () => {
});
});
describe('with percentage that is not a whole number', () => {
describe('with percentage that is not an integer number', () => {
beforeEach(() => {
wrapper = factory({ strategy: { parameters: { rollout: '3.14' } } });
});
......
......@@ -63,7 +63,7 @@ describe('~/feature_flags/components/strategies/percent_rollout.vue', () => {
});
});
describe('with percentage that is not a whole number', () => {
describe('with percentage that is not an integer number', () => {
beforeEach(() => {
wrapper = factory({ strategy: { parameters: { percentage: '3.14' } } });
......
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