Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

feat(core): allow setting params via query string on manual execution - #6302

Merged
anotherchrisberry merged 1 commit into
spinnaker:masterfrom
anotherchrisberry:manex
Jan 7, 2019
Merged

anotherchrisberry merged 1 commit into
spinnaker:masterfrom
anotherchrisberry:manex

Conversation

@anotherchrisberry

Copy link
Copy Markdown
Contributor

We have some users taking advantage of the deep linking ability to start a manual execution. They would like the ability to specify values for the parameters in the query string, e.g.

executions?startManualExecution=myPipeline&pipelineParam1=foo

I was going to rewrite this component in React, but...there's a lot going on in this component, so will for sure do it later.

export class UrlParser {
public static parseLocationHash(hash = ''): string {
return hash.indexOf('?') <= 1 ? '' : hash.substring(hash.indexOf('?') + 1);
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

};
}

public componentWillMount(): void {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved into componentDidMount - not sure why we had both componentWillMount and componentDidMount. It looks like most of this code was originally in the constructor and I moved it into this method to avoid a "no pipelines found" message during initialization.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a problem right now (i.e. not just something introduced by this PR), because, when the parameter-based start execution modal gets closed, the componentWillUnmount method fires after componentWillMount, which deactivates the data sources.

@anotherchrisberry
anotherchrisberry merged commit f455307 into spinnaker:master Jan 7, 2019
@anotherchrisberry
anotherchrisberry deleted the manex branch January 7, 2019 18:38
anotherchrisberry added a commit that referenced this pull request Jan 7, 2019
#6315)

* chore(core): Bump version to 0.0.305

80091f1 fix(core): disable manual executions while trigger data loads (#6301)
308a991 feat(core): use Ace Editor for pipeline/stage JSON editing (#6226)
f455307 feat(core): allow setting params via query string on manual execution (#6302)
c48bac2 feat(artifacts): Changed helm artifact API requests (#6202)
616e46e fix(core/account): Return empty array if no preferred zones are found in a region
e052526 refactor(core/help): Switch HelpField to PureComponent
2c3e5df feat(artifacts): add ivy and maven expected artifact editors (#6241)
86baac9 refactor(*): use mask-image CSS for cloud provider logos (#6280)
dac9b21 fix(core): fix next CRON trigger calculation offset (#6242)
6b7c1ec fix(core): avoid in sync race condition when saving pipelines (#6235)
d29b359 feat(core): show pipeline stage durations by default (#6215)
70be323 feat(stage): manual judgement continue button moved to right (#6292)
641a283 styles(core): Making the main ui-view container positive relative (#6264)
425ca35 feat(core/deploy): Support `scaleDown` as part of a rolling red/black deployment (#6265)

* chore(amazon): Bump version to 0.0.148

86baac9 refactor(*): use mask-image CSS for cloud provider logos (#6280)
fb6e6c0 fix(aws): clarify all ports/protocols on IP range ingress (#6231)
e571c95 fix(aws): provide help explanation when load balancer delete is disabled (#6236)
9a6d8fb feat(aws): make image sort options sticky; sort by TS by default (#6267)
73952e2 fix(amazon/loadBalancer): Restore the "security group removed" warning when switching regions

* chore(titus): Bump version to 0.0.65

86baac9 refactor(*): use mask-image CSS for cloud provider logos (#6280)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants