Преглед на файлове

SONAR-14632 Update EE promo on Background Tasks page

tags/8.9.0.43852
Wouter Admiraal преди 3 години
родител
ревизия
b975029196

+ 1
- 1
server/sonar-web/src/main/js/apps/background-tasks/components/NoWorkersSupportPopup.tsx Целия файл

@@ -31,7 +31,7 @@ export default function NoWorkersSupportPopup() {
</p>
<p>
<a
href="https://redirect.sonarsource.com/editions/enterprise.html"
href="https://www.sonarqube.org/trial-request/enterprise-edition/?referrer=sonarqube-background-tasks"
rel="noopener noreferrer"
target="_blank">
{translate('learn_more')}

+ 5
- 1
server/sonar-web/src/main/js/apps/background-tasks/components/Workers.tsx Целия файл

@@ -22,8 +22,10 @@ import { EditButton } from 'sonar-ui-common/components/controls/buttons';
import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
import Tooltip from 'sonar-ui-common/components/controls/Tooltip';
import AlertWarnIcon from 'sonar-ui-common/components/icons/AlertWarnIcon';
import PlusCircleIcon from 'sonar-ui-common/components/icons/PlusCircleIcon';
import { translate } from 'sonar-ui-common/helpers/l10n';
import { getWorkers } from '../../../api/ce';
import { colors } from '../../../app/theme';
import NoWorkersSupportPopup from './NoWorkersSupportPopup';
import WorkersForm from './WorkersForm';

@@ -130,7 +132,9 @@ export default class Workers extends React.PureComponent<{}, State> {
)}

{!loading && !canSetWorkerCount && (
<HelpTooltip className="spacer-left" overlay={<NoWorkersSupportPopup />} />
<HelpTooltip className="spacer-left" overlay={<NoWorkersSupportPopup />}>
<PlusCircleIcon fill={colors.blue} size={12} />
</HelpTooltip>
)}

{formOpen && <WorkersForm onClose={this.closeForm} workerCount={this.state.workerCount} />}

+ 27
- 0
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/NoWorkersSupportPopup-test.tsx Целия файл

@@ -0,0 +1,27 @@
/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

import { shallow } from 'enzyme';
import * as React from 'react';
import NoWorkersSupportPopup from '../NoWorkersSupportPopup';

it('should render correctly', () => {
expect(shallow(<NoWorkersSupportPopup />)).toMatchSnapshot();
});

+ 27
- 0
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/NoWorkersSupportPopup-test.tsx.snap Целия файл

@@ -0,0 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should render correctly 1`] = `
<Fragment>
<p
className="spacer-bottom"
>
<strong>
background_tasks.add_more_workers
</strong>
</p>
<p
className="big-spacer-bottom markdown"
>
background_tasks.add_more_workers.text
</p>
<p>
<a
href="https://www.sonarqube.org/trial-request/enterprise-edition/?referrer=sonarqube-background-tasks"
rel="noopener noreferrer"
target="_blank"
>
learn_more
</a>
</p>
</Fragment>
`;

+ 6
- 1
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Workers-test.tsx.snap Целия файл

@@ -158,7 +158,12 @@ exports[`renders 4`] = `
<HelpTooltip
className="spacer-left"
overlay={<NoWorkersSupportPopup />}
/>
>
<PlusCircleIcon
fill="#4b9fd5"
size={12}
/>
</HelpTooltip>
</div>
`;


+ 2
- 2
sonar-core/src/main/resources/org/sonar/l10n/core.properties Целия файл

@@ -2831,8 +2831,8 @@ background_tasks.number_of_workers=Number of Workers:
background_tasks.number_of_workers.warning=Configuring additional workers without first vertically scaling your server could have negative performance impacts.
background_tasks.change_number_of_workers=Edit CE Workers
background_tasks.change_number_of_workers.hint=If your queue backs up behind the analysis reports from large projects, increasing the number of Compute Engine workers will allow you to take full advantage of having configured increased Compute Engine memory on a multi-core server (vertical scaling).
background_tasks.add_more_workers=Speed up your analysis by adding more Workers
background_tasks.add_more_workers.text=Increase the number of Compute Engine Workers with the Enterprise Edition.
background_tasks.add_more_workers=Speed up analysis with parallel processing
background_tasks.add_more_workers.text=Configure multiple workers for parallel processing of analysis reports in Enterprise Edition.
background_tasks.search_by_task_or_component=Search by Task or Component
background_tasks.failing_count=Count of projects where processing of most recent analysis report failed


Loading…
Отказ
Запис