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: hide recover button for successful executions #203

Merged

Conversation

Pianist038801
Copy link
Contributor

Signed-off-by: Pianist038801 [email protected]

This hides recover button for the successful executions.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Tracking Issue

fixes flyteorg/flyte#1416

Follow-up issue

NA

@codecov
Copy link

codecov bot commented Sep 16, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@99bace4). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #203   +/-   ##
=========================================
  Coverage          ?   65.89%           
=========================================
  Files             ?      354           
  Lines             ?     7412           
  Branches          ?     1257           
=========================================
  Hits              ?     4884           
  Misses            ?     2528           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99bace4...81bf2e5. Read the comment docs.

Comment on lines 131 to 135
{[
WorkflowExecutionPhase.FAILED,
WorkflowExecutionPhase.ABORTED,
WorkflowExecutionPhase.TIMED_OUT
].includes(phase) && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we change this to const isRecoverVisible = React.useMemo(() => [WorkflowExecutionPhase.FAILED,WorkflowExecutionPhase.ABORTED,WorkflowExecutionPhase.TIMED_OUT].includes(phase), [phase]); and use that variable in dom?
Just my suggestion, ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch, just pushed the fix.

govalt
govalt previously approved these changes Sep 16, 2021
Copy link
Contributor

@govalt govalt left a comment

Choose a reason for hiding this comment

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

LGTM!

@Pianist038801 Pianist038801 force-pushed the fix/hide-recover-button-for-successful-executions branch from 65a2b3f to 81bf2e5 Compare September 16, 2021 17:22
@flyte-bot
Copy link
Collaborator

🎉 This PR is included in version 0.25.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@anrusina anrusina deleted the fix/hide-recover-button-for-successful-executions branch January 13, 2022 00:25
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] Recover button shows up even for successful executions
4 participants