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

feat: handle non blocking errors on fork #1351

Merged
merged 5 commits into from
May 25, 2021

Conversation

lorenzo-cavazzi
Copy link
Member

@lorenzo-cavazzi lorenzo-cavazzi commented May 17, 2021

This improves the UX when a non-fatal error occurs while forking (i.e. the pipeline or webhook creation fails)

How to test: it's a bit tricky. The easiest way is running telepresence on the PR environment and manually modifying the code in the client.forkProject function to trigger the error on the target API (try with the main fork API, then with runPipeline and createGraphWebhook)

Screenshot_20210517_144720

P.S. mind that the error message is slightly different than the suggested one, to keep it coherent with the other cases. Feel free to suggest changes if it's not clear (or change it directly in the PR).

/deploy renku=ui-design-test-fix
fix #1341

@lorenzo-cavazzi lorenzo-cavazzi requested a review from a team as a code owner May 17, 2021 13:13
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-1351 May 17, 2021 13:13 Inactive
@RenkuBot
Copy link
Contributor

You can access the deployment of this PR at https://renku-ci-ui-1351.dev.renku.ch

@ciyer ciyer temporarily deployed to renku-ci-ui-1351 May 19, 2021 10:48 Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-1351 May 19, 2021 10:53 Inactive
Copy link
Contributor

@ciyer ciyer left a comment

Choose a reason for hiding this comment

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

I think this will solve UX issue and clarify what happened when a fork only partially succeeds. I added a commit to change the messages slightly.

@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-1351 May 19, 2021 11:45 Inactive
@lorenzo-cavazzi
Copy link
Member Author

I pushed a minor change to prevent linting errors

@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-1351 May 21, 2021 15:50 Inactive
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-1351 May 25, 2021 06:32 Inactive
@lorenzo-cavazzi lorenzo-cavazzi merged commit cb43054 into ui-design-2021 May 25, 2021
@lorenzo-cavazzi lorenzo-cavazzi deleted the 1341-fork-messages branch May 25, 2021 08:04
@RenkuBot
Copy link
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants