aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/shared
diff options
context:
space:
mode:
authorguillaume-peoch-sonarsource <91735163+guillaume-peoch-sonarsource@users.noreply.github.com>2022-07-14 15:52:56 +0200
committersonartech <sonartech@sonarsource.com>2022-07-14 20:03:47 +0000
commitc679155c37f3d154807d07a3afaea8c42e91ebbf (patch)
tree5252fd4e798f91843ccff4230837bac7108b1153 /server/sonar-web/src/main/js/components/shared
parenta358dbf7c956056bb80b3f5d1628357e8a99f8b9 (diff)
downloadsonarqube-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/components/shared')
-rw-r--r--server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx6
-rw-r--r--server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx4
2 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx b/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx
index bd368a08cf7..56ed2212faf 100644
--- a/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx
+++ b/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx
@@ -78,7 +78,7 @@ interface Props {
className?: string;
component: string;
metric: string;
- sinceLeakPeriod?: boolean;
+ inNewCodePeriod?: boolean;
}
export default class DrilldownLink extends React.PureComponent<Props> {
@@ -91,8 +91,8 @@ export default class DrilldownLink extends React.PureComponent<Props> {
...(issueParamsPerMetric[this.props.metric] || { resolved: 'false' })
};
- if (this.props.sinceLeakPeriod) {
- params.sinceLeakPeriod = true;
+ if (this.props.inNewCodePeriod) {
+ params.inNewCodePeriod = true;
}
return params;
diff --git a/server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx b/server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx
index 94471a87ad9..4d7e2c2863b 100644
--- a/server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx
+++ b/server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx
@@ -37,10 +37,10 @@ describe('propsToIssueParams', () => {
});
it(`should render correct params`, () => {
- const wrapper = shallowRender({ metric: 'false_positive_issues', sinceLeakPeriod: true });
+ const wrapper = shallowRender({ metric: 'false_positive_issues', inNewCodePeriod: true });
expect(wrapper.instance().propsToIssueParams()).toEqual({
resolutions: 'FALSE-POSITIVE',
- sinceLeakPeriod: true
+ inNewCodePeriod: true
});
});
});