@spinnaker/core 0.19.3 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spinnaker/core",
3
3
  "license": "Apache-2.0",
4
- "version": "0.19.3",
4
+ "version": "0.20.1",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "scripts": {
@@ -74,7 +74,7 @@
74
74
  "react-virtualized": "9.18.5",
75
75
  "react-virtualized-select": "3.1.3",
76
76
  "react2angular": "3.2.1",
77
- "recoil": "0.0.10",
77
+ "recoil": "0.7.2",
78
78
  "rxjs": "6.6.7",
79
79
  "select2": "3.5.1",
80
80
  "select2-bootstrap-css": "1.4.6",
@@ -120,5 +120,5 @@
120
120
  "shx": "0.3.3",
121
121
  "typescript": "4.3.5"
122
122
  },
123
- "gitHead": "4e2ec409f093985f4c084f8140c650f29bb9009b"
123
+ "gitHead": "d54989b80af2ae88d41b110bed090cd99a602608"
124
124
  }
@@ -1,4 +1,4 @@
1
- <dl class="dl-horizontal" ng-if="(config.application.attributes && config.application.attributes.email)">
1
+ <dl class="dl-horizontal" ng-if="(vm.application.attributes && vm.application.attributes.email)">
2
2
  <dt>Owner</dt>
3
3
  <dd>{{vm.application.attributes.email}}</dd>
4
4
  <dt ng-if="vm.application.attributes.appGroup">App Group <help-field key="application.group"></help-field></dt>
@@ -55,11 +55,11 @@
55
55
  <dd>{{vm.permissions}}</dd>
56
56
  </render-if-feature>
57
57
  </dl>
58
- <p ng-if="(!config.application.attributes || !config.application.attributes.email)">
58
+ <p ng-if="(!vm.application.attributes || !vm.application.attributes.email)">
59
59
  This application has not been configured.
60
60
  </p>
61
61
  <button class="btn btn-link" ng-click="vm.editApplication()">
62
62
  <span class="glyphicon glyphicon-cog"></span>
63
- {{ (!config.application.attributes || !config.application.attributes.email) ? "Create Application" : "Edit Application
63
+ {{ (!vm.application.attributes || !vm.application.attributes.email) ? "Create Application" : "Edit Application
64
64
  Attributes"}}
65
65
  </button>
@@ -1,7 +1,25 @@
1
1
  import { atom } from 'recoil';
2
- import { CollapsibleSectionStateCache } from '../../cache/collapsibleSectionStateCache';
2
+ import { CollapsibleSectionStateCache } from '../../cache';
3
3
 
4
4
  export const verticalNavExpandedAtom = atom({
5
5
  key: 'verticalNavExpanded',
6
6
  default: !CollapsibleSectionStateCache.isSet('verticalNav') || CollapsibleSectionStateCache.isExpanded('verticalNav'),
7
+ effects: [
8
+ ({ setSelf, trigger }) => {
9
+ if (trigger === 'get') {
10
+ // Avoid expensive initialization
11
+ setSelf(
12
+ !CollapsibleSectionStateCache.isSet('verticalNav') || CollapsibleSectionStateCache.isExpanded('verticalNav'),
13
+ );
14
+ }
15
+ CollapsibleSectionStateCache.onChange('verticalNav', (expanded: boolean) => {
16
+ setSelf(expanded);
17
+ });
18
+
19
+ return () => {
20
+ // clean up
21
+ CollapsibleSectionStateCache.onChange('verticalNav', null);
22
+ };
23
+ },
24
+ ],
7
25
  });
@@ -5,6 +5,7 @@ export class CollapsibleSectionStateCacheInternal {
5
5
  private cacheFactory = new CacheFactory();
6
6
  private cacheId = 'collapsibleSectionStateCache';
7
7
  private stateCache: Cache;
8
+ private handlers = new Map();
8
9
 
9
10
  constructor() {
10
11
  try {
@@ -31,6 +32,16 @@ export class CollapsibleSectionStateCacheInternal {
31
32
  public setExpanded(heading: string, expanded: boolean) {
32
33
  if (heading) {
33
34
  this.stateCache.put(heading, !!expanded);
35
+ const handler = this.handlers.get(heading);
36
+ if (handler) {
37
+ handler(!CollapsibleSectionStateCache.isSet(heading) || CollapsibleSectionStateCache.isExpanded(heading));
38
+ }
39
+ }
40
+ }
41
+
42
+ public onChange(heading: string, listener: Function) {
43
+ if (!this.handlers.get(heading)) {
44
+ this.handlers.set(heading, listener);
34
45
  }
35
46
  }
36
47
  }
@@ -34,6 +34,7 @@ export class BakeHelmConfigForm extends React.Component<IFormikStageConfigInject
34
34
  ArtifactTypePatterns.S3_OBJECT,
35
35
  ArtifactTypePatterns.HELM_CHART,
36
36
  ArtifactTypePatterns.HTTP_FILE,
37
+ ArtifactTypePatterns.ORACLE_OBJECT,
37
38
  );
38
39
 
39
40
  public componentDidMount() {
@@ -7,7 +7,7 @@ import { OrchestratedItemRunningTime } from './OrchestratedItemRunningTime';
7
7
  import type { Application } from '../../../application/application.model';
8
8
  import { SETTINGS } from '../../../config/settings';
9
9
  import { ExecutionBarLabel } from '../../config/stages/common/ExecutionBarLabel';
10
- import type { IExecution, IExecutionStageSummary } from '../../../domain';
10
+ import type { IExecution, IExecutionStageSummary, IStage } from '../../../domain';
11
11
  import { logger } from '../../../utils';
12
12
  import { duration } from '../../../utils/timeFormatters';
13
13
 
@@ -94,7 +94,19 @@ export class ExecutionMarker extends React.Component<IExecutionMarkerProps, IExe
94
94
 
95
95
  public render() {
96
96
  const { stage, application, execution, active, previousStageActive, width } = this.props;
97
- const stageType = (stage.activeStageType || stage.type).toLowerCase(); // support groups
97
+ let stageType = (stage.activeStageType || stage.type).toLowerCase(); // support groups
98
+ stage.stages.forEach((childStage: IStage) => {
99
+ if (childStage.type == 'pipeline') {
100
+ const childPipeline = application.executions.data.find((p: any) => p.id === childStage.context.executionId);
101
+ if (childPipeline != undefined) {
102
+ childPipeline.stages.forEach((stageToCheck: IStage) => {
103
+ if (stageToCheck.type == 'manualJudgment' && stageToCheck.status == 'RUNNING') {
104
+ stageType = 'manualjudgment';
105
+ }
106
+ });
107
+ }
108
+ }
109
+ });
98
110
  const pipelineStatus = this.stageStatus(stage.status.toLowerCase());
99
111
  const markerClassName = [
100
112
  stage.type !== 'group' ? 'clickable' : '',