]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12632 Remove SonarCloud tutorial
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Tue, 17 Dec 2019 15:58:04 +0000 (16:58 +0100)
committerSonarTech <sonartech@sonarsource.com>
Mon, 10 Feb 2020 19:46:14 +0000 (20:46 +0100)
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/AnalyzeTutorial.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/AnalyzeTutorial-test.tsx
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/__snapshots__/AnalyzeTutorial-test.tsx.snap

index d1f0b7412c9cb1b77052ab6e32cf894ad306698b..e873d687706872c7ab94890105d8b6e32123dc8b 100644 (file)
@@ -21,11 +21,9 @@ import * as React from 'react';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import InstanceMessage from '../../../components/common/InstanceMessage';
 import { isVSTS } from '../../../helpers/almIntegrations';
-import { isSonarCloud } from '../../../helpers/system';
 import ProjectAnalysisStep from '../components/ProjectAnalysisStep';
 import TokenStep from '../components/TokenStep';
 import '../styles.css';
-import AnalyzeTutorialSuggestion from './AnalyzeTutorialSuggestion';
 
 export enum Steps {
   ANALYSIS,
@@ -67,8 +65,6 @@ export default class AnalyzeTutorial extends React.PureComponent<Props, State> {
           </p>
         </div>
 
-        {isSonarCloud() && <AnalyzeTutorialSuggestion almKey={almKey} />}
-
         {!isVSTS(almKey) && (
           <>
             <TokenStep
@@ -85,7 +81,6 @@ export default class AnalyzeTutorial extends React.PureComponent<Props, State> {
               component={component}
               displayRowLayout={true}
               open={step === Steps.ANALYSIS}
-              organization={isSonarCloud() ? component.organization : undefined}
               stepNumber={2}
               token={token}
             />
index 5a2fdfa60438092f5c91f3a0025c54f18b9da104..4c4344fe56a1eadeb54d6a32589936f211988cec 100644 (file)
@@ -21,10 +21,6 @@ import { shallow } from 'enzyme';
 import * as React from 'react';
 import AnalyzeTutorial from '../AnalyzeTutorial';
 
-jest.mock('../../../../helpers/system', () => ({
-  isSonarCloud: jest.fn().mockReturnValue(true)
-}));
-
 Date.now = jest.fn().mockReturnValue(1540457859031);
 
 const component = {
index a0296d11683ea586cc112989de106498d76b5bf0..c4b2f7a3b43c34c3349140ada4659f947eda91b9 100644 (file)
@@ -18,7 +18,6 @@ exports[`renders correctly 1`] = `
       />
     </p>
   </div>
-  <AnalyzeTutorialSuggestion />
   <TokenStep
     currentUser={
       Object {
@@ -50,7 +49,6 @@ exports[`renders correctly 1`] = `
     }
     displayRowLayout={true}
     open={false}
-    organization="org"
     stepNumber={2}
   />
 </Fragment>