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

[Frontend] Fix run id not populated in NewRun page when clicked too fast bug #2547

Conversation

Bobgy
Copy link
Contributor

@Bobgy Bobgy commented Nov 5, 2019

Fixes #2488

Before, when page is not loaded yet, clicking "Create Run" will go to a page that doesn't specify which pipeline to run.
After, screencast: https://drive.google.com/file/d/1QiGCwdKByWsu-AvsTaTIn6_D8CgwEd9j/view

/area front-end
/kind bug
/cc @Ark-kun
/assign @rmgogogo


This change is Reviewable

@Bobgy
Copy link
Contributor Author

Bobgy commented Nov 5, 2019

/test kubeflow-pipeline-e2e-test

? this.state.pipeline.id!
: pipelineIdFromParams
? pipelineIdFromParams
: '';
Copy link
Contributor

Choose a reason for hiding this comment

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

try to learn TS from you.
do it equal to following? not sure whether should use ()
this.state.pipeline
? this.state.pipeline.id!
: (pipelineIdFromParams
? pipelineIdFromParams
: '')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's equal.

I agree your format looks clearer to me too.
But we are using prettier for auto formatting, it doesn't allow any format change.

Main opinion of prettier

No need to discuss style in code review

https://prettier.io/docs/en/option-philosophy.html

And corresponding issue: prettier/prettier#3805
for context.

@rmgogogo
Copy link
Contributor

rmgogogo commented Nov 5, 2019

/lgtm

@Bobgy
Copy link
Contributor Author

Bobgy commented Nov 5, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bobgy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 5d47ac5 into kubeflow:master Nov 5, 2019
@Bobgy Bobgy deleted the fe_populate_run_id_when_pipeline_not_loaded branch November 6, 2019 02:49
magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this pull request Oct 22, 2023
Signed-off-by: Sukumar Gaonkar <sgaonkar4@bloomberg.net>

Signed-off-by: Sukumar Gaonkar <sgaonkar4@bloomberg.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pipeline is not populated when you go to pipeline page and then quickly click "Create run"
3 participants