aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2020-02-26 13:54:50 +0100
committersonartech <sonartech@sonarsource.com>2020-02-28 20:04:11 +0000
commit98ea3f7b2f39f6c63d3c50e6bc1f9ef1adfbe189 (patch)
tree42c05ad3f077869ce503c27d5c68929a267c2450 /server
parent3b3a41305ac0ee247874eab4565d94ae21c0c28d (diff)
downloadsonarqube-98ea3f7b2f39f6c63d3c50e6bc1f9ef1adfbe189.tar.gz
sonarqube-98ea3f7b2f39f6c63d3c50e6bc1f9ef1adfbe189.zip
SONAR-13129 Remove Quality Gate and Quality Profiles from Applications information
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx29
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap26
2 files changed, 15 insertions, 40 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx
index 4bee5cdeac6..1aff0f9cf33 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx
@@ -79,21 +79,22 @@ export function ProjectInformationRenderer(props: ProjectInformationRendererProp
<MetaSize component={component} measures={measures} />
</div>
- {(component.qualityGate ||
- (component.qualityProfiles && component.qualityProfiles.length > 0)) && (
- <>
- <div className="big-padded bordered-bottom">
- {component.qualityGate && <MetaQualityGate qualityGate={component.qualityGate} />}
+ {!isApp &&
+ (component.qualityGate ||
+ (component.qualityProfiles && component.qualityProfiles.length > 0)) && (
+ <>
+ <div className="big-padded bordered-bottom">
+ {component.qualityGate && <MetaQualityGate qualityGate={component.qualityGate} />}
- {component.qualityProfiles && component.qualityProfiles.length > 0 && (
- <MetaQualityProfiles
- headerClassName={component.qualityGate ? 'big-spacer-top' : undefined}
- profiles={component.qualityProfiles}
- />
- )}
- </div>
- </>
- )}
+ {component.qualityProfiles && component.qualityProfiles.length > 0 && (
+ <MetaQualityProfiles
+ headerClassName={component.qualityGate ? 'big-spacer-top' : undefined}
+ profiles={component.qualityProfiles}
+ />
+ )}
+ </div>
+ </>
+ )}
{!isApp && <MetaLinks component={component} />}
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap
index f1d2b875e96..d071690097a 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap
@@ -306,32 +306,6 @@ exports[`should render an app correctly: default 1`] = `
<div
className="big-padded bordered-bottom"
>
- <MetaQualityGate
- qualityGate={
- Object {
- "isDefault": true,
- "key": "30",
- "name": "Sonar way",
- }
- }
- />
- <Connect(MetaQualityProfiles)
- headerClassName="big-spacer-top"
- profiles={
- Array [
- Object {
- "deleted": false,
- "key": "my-qp",
- "language": "ts",
- "name": "Sonar way",
- },
- ]
- }
- />
- </div>
- <div
- className="big-padded bordered-bottom"
- >
<MetaKey
componentKey="my-project"
qualifier="APP"