Bladeren bron

SONAR-13129 Remove Quality Gate and Quality Profiles from Applications information

tags/8.3.0.34182
Jeremy Davis 4 jaren geleden
bovenliggende
commit
98ea3f7b2f

+ 15
- 14
server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx Bestand weergeven

@@ -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} />}


+ 0
- 26
server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap Bestand weergeven

@@ -303,32 +303,6 @@ exports[`should render an app correctly: default 1`] = `
measures={Array []}
/>
</div>
<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"
>

Laden…
Annuleren
Opslaan