Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix job parameter rendering issues #1459

Merged
merged 3 commits into from
Dec 6, 2022

Conversation

mausworks
Copy link
Member

@mausworks mausworks commented Dec 5, 2022

Description

Sometimes the wrong job parameters show up in the UI: this PR fixes that.
It is a pure rendering problem: the back-end & backing state is fine.

The source of the issue seems to be an optimization to only re-render the form if the pipeline has changed and if any parameters are specified. The problem with that is:

  • The parameters may change depending on multiple reasons: project, job, or pipeline (and possibly something else).
  • Having no parameters is a perfectly valid state: we should render that.

This caused the UI to behave erratically when jumping between jobs & pipelines: displaying the wrong parameters and names.

Checklist

  • I have manually tested my changes and I am happy with the result.
  • The PR branch is set up to merge into dev instead of master.

@mausworks mausworks force-pushed the fix/ORC-1080-job-parameter-rendering-issues branch 2 times, most recently from 3e0278e to 247f641 Compare December 5, 2022 15:51
@mausworks mausworks force-pushed the fix/ORC-1080-job-parameter-rendering-issues branch from 247f641 to 6562d88 Compare December 5, 2022 15:51
@mausworks mausworks added the fix PR fixes a bug label Dec 5, 2022
Conditionally doing so causes a lot of issues when swapping pipelines/jobs.
@iannbing iannbing merged commit 94e6540 into dev Dec 6, 2022
@iannbing iannbing deleted the fix/ORC-1080-job-parameter-rendering-issues branch December 6, 2022 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants