@spinnaker/core 2025.4.0-rc1 → 2025.4.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/dist/index.js +72049 -325
- package/dist/index.js.map +1 -1
- package/dist/pipeline/config/services/PipelineConfigService.d.ts +0 -1
- package/package.json +2 -2
- package/src/pipeline/config/services/PipelineConfigService.spec.ts +0 -18
- package/src/pipeline/config/services/PipelineConfigService.ts +0 -4
- package/src/pipeline/executions/executionGroup/ExecutionGroup.tsx +1 -4
|
@@ -8,7 +8,6 @@ export declare class PipelineConfigService {
|
|
|
8
8
|
private static configViewStateCache;
|
|
9
9
|
private static buildViewStateCacheKey;
|
|
10
10
|
static getPipelinesForApplication(applicationName: string): PromiseLike<IPipeline[]>;
|
|
11
|
-
static getPipelineForApplication(applicationName: string, pipelineName: string): PromiseLike<IPipeline>;
|
|
12
11
|
static getStrategiesForApplication(applicationName: string): PromiseLike<IPipeline[]>;
|
|
13
12
|
static getHistory(id: string, isStrategy: boolean, count?: number): PromiseLike<IPipeline[]>;
|
|
14
13
|
static deletePipeline(applicationName: string, pipeline: IPipeline, pipelineName: string): PromiseLike<void>;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "https://github.com/spinnaker/spinnaker.git"
|
|
6
6
|
},
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
|
-
"version": "2025.4.
|
|
8
|
+
"version": "2025.4.1",
|
|
9
9
|
"module": "dist/index.js",
|
|
10
10
|
"typings": "dist/index.d.ts",
|
|
11
11
|
"publishConfig": {
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"shx": "0.3.3",
|
|
129
129
|
"typescript": "5.0.4"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "7806fe5efb4fb484e35123cd4928f4ddbdedfe14"
|
|
132
132
|
}
|
|
@@ -142,24 +142,6 @@ describe('PipelineConfigService', () => {
|
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
|
|
145
|
-
describe('getPipeline', () => {
|
|
146
|
-
it('makes correct get pipeline request', async () => {
|
|
147
|
-
const http = mockHttpClient();
|
|
148
|
-
const pipeline: IPipeline = buildPipeline({});
|
|
149
|
-
|
|
150
|
-
let result: IPipeline = null;
|
|
151
|
-
http.expectGET('/applications/foo/pipelineConfigs/bar%20name').respond(200, pipeline);
|
|
152
|
-
|
|
153
|
-
PipelineConfigService.getPipelineForApplication('foo', 'bar name').then((pipelines: IPipeline) => {
|
|
154
|
-
result = pipelines;
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
$scope.$digest();
|
|
158
|
-
await http.flush();
|
|
159
|
-
expect(result).toEqual(pipeline);
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
|
|
163
145
|
describe('stage dependencies', () => {
|
|
164
146
|
let a: IStage, b: IStage, c: IStage, d: IStage;
|
|
165
147
|
let pipeline: IPipeline;
|
|
@@ -30,10 +30,6 @@ export class PipelineConfigService {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
public static getPipelineForApplication(applicationName: string, pipelineName: string): PromiseLike<IPipeline> {
|
|
34
|
-
return REST('/applications').path(applicationName, 'pipelineConfigs', pipelineName).get();
|
|
35
|
-
}
|
|
36
|
-
|
|
37
33
|
public static getStrategiesForApplication(applicationName: string): PromiseLike<IPipeline[]> {
|
|
38
34
|
return REST('/applications')
|
|
39
35
|
.path(applicationName, 'strategyConfigs')
|
|
@@ -9,7 +9,6 @@ import { MigrationTag } from './MigrationTag';
|
|
|
9
9
|
import { AccountTag } from '../../../account';
|
|
10
10
|
import type { Application } from '../../../application/application.model';
|
|
11
11
|
import { CollapsibleSectionStateCache } from '../../../cache';
|
|
12
|
-
import { PipelineConfigService } from '../../config/services/PipelineConfigService';
|
|
13
12
|
import { SETTINGS } from '../../../config/settings';
|
|
14
13
|
import { PipelineTemplateReader, PipelineTemplateV2Service } from '../../config/templates';
|
|
15
14
|
import type {
|
|
@@ -154,9 +153,7 @@ export class ExecutionGroup extends React.PureComponent<IExecutionGroupProps, IE
|
|
|
154
153
|
.then((plan) => resolve(plan))
|
|
155
154
|
.catch(() => resolve(config));
|
|
156
155
|
} else {
|
|
157
|
-
|
|
158
|
-
.then((pipeline) => resolve(pipeline))
|
|
159
|
-
.catch(() => resolve(config));
|
|
156
|
+
resolve(config);
|
|
160
157
|
}
|
|
161
158
|
}),
|
|
162
159
|
)
|