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

[UI] Add synchronous start/stop pipeline error notifications #133

Merged
merged 2 commits into from
Jan 27, 2022

Conversation

jmar910
Copy link
Member

@jmar910 jmar910 commented Jan 27, 2022

Description

We wrote an error system around handling asynchronous pipeline errors, but it doesnt handle synchronous pipeline errors 😅

This PR addresses that

Fixes #127

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

@jmar910 jmar910 self-assigned this Jan 27, 2022
@jmar910 jmar910 requested a review from jayjayjpg January 27, 2022 14:34
@github-actions
Copy link
Contributor

UI test coverage: 69.89%

🚨 Decreased by -0.21% (was 70.1%)

Copy link
Contributor

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

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

This reads great! I have one more question left with regards to the stopPipeline action, but otherwise this should be good to go! ✨

ui/app/controllers/pipeline.js Outdated Show resolved Hide resolved
ui/app/controllers/pipeline.js Outdated Show resolved Hide resolved
ui/tests/acceptance/pipeline/index-test.js Show resolved Hide resolved
@jmar910 jmar910 force-pushed the james/add-sync-start-stop-errors branch from 9aaeac5 to ff4dc5d Compare January 27, 2022 17:15
@github-actions
Copy link
Contributor

UI test coverage: 70.61%

🎉 Increased by +0.51% (was 70.1%)

Copy link
Contributor

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

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

This reads great and nice test coverage! ✨

async stopPipeline(pipeline) {
await pipeline.stopPipeline();
try {
await pipeline.stopPipeline();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! ✨

ui/tests/acceptance/pipeline/index-test.js Outdated Show resolved Hide resolved
await click(page.pipelineStatusStop);
});

test('it displays an error notification', function (assert) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice testing addition! ✨

@jmar910 jmar910 force-pushed the james/add-sync-start-stop-errors branch from ff4dc5d to de3f4b5 Compare January 27, 2022 17:20
@github-actions
Copy link
Contributor

UI test coverage: 70.61%

🎉 Increased by +0.51% (was 70.1%)

@jmar910 jmar910 merged commit b63dea3 into main Jan 27, 2022
@jmar910 jmar910 deleted the james/add-sync-start-stop-errors branch January 27, 2022 17:23
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.

Bug: UI doesn't expose initial start/stop pipeline request errors
2 participants