id="onboarding.create_project.new_code_definition.description"
values={{
link: (
- <Link to={getDocUrl('/project-administration/defining-new-code/')}>
+ <Link
+ to={getDocUrl(
+ '/project-administration/clean-as-you-code-settings/defining-new-code/',
+ )}
+ >
{translate('onboarding.create_project.new_code_definition.description.link')}
</Link>
),
export default function AppHeader(props: AppHeaderProps) {
const { canAdmin } = props;
- const toUrl = useDocUrl('/project-administration/defining-new-code/');
+ const toUrl = useDocUrl('/project-administration/clean-as-you-code-settings/defining-new-code/');
return (
<header className="sw-mt-8 sw-mb-4">
id="settings.new_code_period.description3"
values={{
link: (
- <DocumentationLink to="/project-administration/defining-new-code/">
+ <DocumentationLink to="/project-administration/clean-as-you-code-settings/defining-new-code/">
{translate('settings.new_code_period.description3.link')}
</DocumentationLink>
),
"project_activity": [],
"project_baseline": [
{
- "link": "/project-administration/defining-new-code/",
+ "link": "/project-administration/clean-as-you-code-settings/defining-new-code/",
"text": "Defining New Code"
}
],
import { translate } from '../../helpers/l10n';
export default function NewCodeDefinitionAnalysisWarning() {
- const toStatic = useDocUrl('/project-administration/defining-new-code/');
+ const toStatic = useDocUrl(
+ '/project-administration/clean-as-you-code-settings/defining-new-code/',
+ );
return (
<FlagMessage variant="warning" className="sw-mb-4 sw-max-w-[800px]">
<div>
@Before
public void setup() {
- when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
+ when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/someddoc");
ws = new WsActionTester(new ListAction(dbClient, userSession, componentFinder, dao, documentationLinkGenerator));
}
WebService.Action definition = ws.getDef();
- assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
+ assertThat(definition.description()).contains("https://docs.sonarsource.com/someddoc");
assertThat(definition.key()).isEqualTo("list");
assertThat(definition.isInternal()).isFalse();
@Before
public void setup() {
- when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
+ when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/someddoc");
ws = new WsActionTester(new SetAction(dbClient, userSession, componentFinder, editionProvider, dao, documentationLinkGenerator));
}
public void test_definition() {
WebService.Action definition = ws.getDef();
- assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
+ assertThat(definition.description()).contains("https://docs.sonarsource.com/someddoc");
assertThat(definition.key()).isEqualTo("set");
assertThat(definition.isInternal()).isFalse();
@Before
public void setup() {
- when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/latest/project-administration/defining-new-code/");
+ when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/someddoc");
ws = new WsActionTester(new ShowAction(dbClient, userSession, componentFinder, dao, documentationLinkGenerator));
}
public void test_definition() {
WebService.Action definition = ws.getDef();
- assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/latest/project-administration/defining-new-code/");
+ assertThat(definition.description()).contains("https://docs.sonarsource.com/someddoc");
assertThat(definition.key()).isEqualTo("show");
assertThat(definition.isInternal()).isFalse();
@Before
public void setup(){
- when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
+ when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/someddoc");
ws = new WsActionTester(new UnsetAction(dbClient, userSession, componentFinder, editionProvider, dao, documentationLinkGenerator));
}
public void test_definition() {
WebService.Action definition = ws.getDef();
- assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
+ assertThat(definition.description()).contains("https://docs.sonarsource.com/someddoc");
assertThat(definition.key()).isEqualTo("unset");
assertThat(definition.isInternal()).isFalse();
this.userSession = userSession;
this.componentFinder = componentFinder;
this.newCodePeriodDao = newCodePeriodDao;
- this.newCodeDefinitionDocumentationUrl = documentationLinkGenerator.getDocumentationLink("/project-administration/defining-new-code/");
+ this.newCodeDefinitionDocumentationUrl = documentationLinkGenerator.getDocumentationLink("/project-administration/clean-as-you-code-settings/defining-new-code/");
}
@Override
@Override
public void define(Context context) {
NewController controller = context.createController("api/new_code_periods")
- .setDescription("Manage "+ createHtmlExternalLink(documentationLinkGenerator.getDocumentationLink("/project-administration/defining-new-code/"), "new code definition") +".")
+ .setDescription("Manage "+ createHtmlExternalLink(documentationLinkGenerator.getDocumentationLink("/project-administration/clean-as-you-code-settings/defining-new-code/"), "new code definition") +".")
.setSince("8.0");
for (NewCodePeriodsWsAction action : actions) {
action.define(controller);
this.componentFinder = componentFinder;
this.editionProvider = editionProvider;
this.newCodePeriodDao = newCodePeriodDao;
- this.newCodeDefinitionDocumentationUrl = documentationLinkGenerator.getDocumentationLink("/project-administration/defining-new-code/");
+ this.newCodeDefinitionDocumentationUrl = documentationLinkGenerator.getDocumentationLink("/project-administration/clean-as-you-code-settings/defining-new-code/");
}
@Override
this.userSession = userSession;
this.componentFinder = componentFinder;
this.newCodePeriodDao = newCodePeriodDao;
- this.newCodeDefinitionDocumentationUrl = documentationLinkGenerator.getDocumentationLink("/project-administration/defining-new-code/");
+ this.newCodeDefinitionDocumentationUrl = documentationLinkGenerator.getDocumentationLink("/project-administration/clean-as-you-code-settings/defining-new-code/");
}
@Override
this.componentFinder = componentFinder;
this.editionProvider = editionProvider;
this.newCodePeriodDao = newCodePeriodDao;
- this.newCodeDefinitionDocumentationUrl = documentationLinkGenerator.getDocumentationLink("/project-administration/defining-new-code/");
+ this.newCodeDefinitionDocumentationUrl = documentationLinkGenerator.getDocumentationLink("/project-administration/clean-as-you-code-settings/defining-new-code/");
}
@Override