diff options
author | guillaume-peoch-sonarsource <91735163+guillaume-peoch-sonarsource@users.noreply.github.com> | 2022-07-14 15:52:56 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-07-14 20:03:47 +0000 |
commit | c679155c37f3d154807d07a3afaea8c42e91ebbf (patch) | |
tree | 5252fd4e798f91843ccff4230837bac7108b1153 /server/sonar-web/src/main/js/helpers | |
parent | a358dbf7c956056bb80b3f5d1628357e8a99f8b9 (diff) | |
download | sonarqube-c679155c37f3d154807d07a3afaea8c42e91ebbf.tar.gz sonarqube-c679155c37f3d154807d07a3afaea8c42e91ebbf.zip |
SONAR-16465 Replace parameter sinceLeakPeriod with inNewCodePeriod (#6275)
* SONAR-16465 Replace parameter sinceLeakPeriod with inNewCodePeriod
Diffstat (limited to 'server/sonar-web/src/main/js/helpers')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/__tests__/urls-test.ts | 4 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/helpers/urls.ts | 4 |
2 files changed, 4 insertions, 4 deletions
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, |