From c679155c37f3d154807d07a3afaea8c42e91ebbf Mon Sep 17 00:00:00 2001 From: guillaume-peoch-sonarsource <91735163+guillaume-peoch-sonarsource@users.noreply.github.com> Date: Thu, 14 Jul 2022 15:52:56 +0200 Subject: SONAR-16465 Replace parameter sinceLeakPeriod with inNewCodePeriod (#6275) * SONAR-16465 Replace parameter sinceLeakPeriod with inNewCodePeriod --- server/sonar-web/src/main/js/helpers/__tests__/urls-test.ts | 4 ++-- server/sonar-web/src/main/js/helpers/urls.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'server/sonar-web/src/main/js/helpers') diff --git a/server/sonar-web/src/main/js/helpers/__tests__/urls-test.ts b/server/sonar-web/src/main/js/helpers/__tests__/urls-test.ts index a881a16e4a1..a46d5ae3f83 100644 --- a/server/sonar-web/src/main/js/helpers/__tests__/urls-test.ts +++ b/server/sonar-web/src/main/js/helpers/__tests__/urls-test.ts @@ -122,7 +122,7 @@ describe('#getComponentSecurityHotspotsUrl', () => { it('should forward some query parameters', () => { expect( getComponentSecurityHotspotsUrl(SIMPLE_COMPONENT_KEY, { - sinceLeakPeriod: 'true', + inNewCodePeriod: 'true', [SecurityStandard.OWASP_TOP10_2021]: 'a1', [SecurityStandard.CWE]: 'a1', [SecurityStandard.OWASP_TOP10]: 'a1', @@ -135,7 +135,7 @@ describe('#getComponentSecurityHotspotsUrl', () => { pathname: '/security_hotspots', search: queryToSearch({ id: SIMPLE_COMPONENT_KEY, - sinceLeakPeriod: 'true', + inNewCodePeriod: 'true', [SecurityStandard.OWASP_TOP10_2021]: 'a1', [SecurityStandard.SONARSOURCE]: 'a1', [SecurityStandard.OWASP_TOP10]: 'a1', diff --git a/server/sonar-web/src/main/js/helpers/urls.ts b/server/sonar-web/src/main/js/helpers/urls.ts index d6e71bead37..0e7ab419f9c 100644 --- a/server/sonar-web/src/main/js/helpers/urls.ts +++ b/server/sonar-web/src/main/js/helpers/urls.ts @@ -196,14 +196,14 @@ export function getComponentIssuesUrl(componentKey: string, query?: Query): Path * Generate URL for a component's security hotspot page */ export function getComponentSecurityHotspotsUrl(componentKey: string, query: Query = {}): Path { - const { branch, pullRequest, sinceLeakPeriod, hotspots, assignedToMe, file } = query; + const { branch, pullRequest, inNewCodePeriod, hotspots, assignedToMe, file } = query; return { pathname: '/security_hotspots', search: queryToSearch({ id: componentKey, branch, pullRequest, - sinceLeakPeriod, + inNewCodePeriod, hotspots, assignedToMe, file, -- cgit v1.2.3