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: archive/unarchive workflow's execution #271

Merged
merged 3 commits into from
Feb 3, 2022
Merged

Conversation

anrusina
Copy link
Contributor

Signed-off-by: Nastya Rusina [email protected]

New feature: Archive/Unarchive workflow's executions

Video walk through on archive feature: https://share.getcloudapp.com/4guZZp6R
Video on storybook changes: https://share.getcloudapp.com/2NuvvZn9

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

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

Complete description

Updated flyteidl to latest version
Added ExecutionState enum and calls to UpdateExecutionState
Added notistack to support error and success notifications
Ensured that items could be archived and unarchived from "workflow->execution" and "all executions" view.
Added new styling for archived items
Updates storybook to observe all recent changes
Added "localization" string support, which is a bit closer to localization standards

Tracking Issue

adds feature for flyteorg/flyte#2046

@anrusina anrusina requested review from a team, Pianist038801, jsonporter and govalt and removed request for a team January 27, 2022 01:28
@codecov
Copy link

codecov bot commented Jan 27, 2022

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #271   +/-   ##
=========================================
  Coverage          ?   65.18%           
=========================================
  Files             ?      377           
  Lines             ?     8359           
  Branches          ?     1500           
=========================================
  Hits              ?     5449           
  Misses            ?     2910           
  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 54272a3...9fe5bdb. Read the comment docs.

@@ -0,0 +1,8 @@
export const createLocalizedString = (strings = {}) => (key, ...rest) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this something we want to establish as a pattern? Currently we don't have plans for localized strings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This pattern will not require you to localize strings, but will keep all strings in file sections, which make them easier to change, and makes easier to switch to localization if we would have such plan in future.
Most problems with localizations are usually come from struggle to find all strings and get developer used to t("string") notation.
Proper localization will require files to be located in folders per language - but we won't go there until we will start to really discuss localization.

Signed-off-by: Nastya Rusina <[email protected]>
Signed-off-by: Nastya Rusina <[email protected]>
flexBasis: workflowExecutionsTableColumnWidths.actions,
marginLeft: theme.spacing(2),
marginRight: theme.spacing(2),
textAlign: 'left'
textAlign: 'right'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As per our conversation, put actions to right side + updated column nanme size
Screen Shot 2022-02-02 at 11 19 04 AM

Copy link
Contributor

@jsonporter jsonporter left a comment

Choose a reason for hiding this comment

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

LGTM

@flyte-bot
Copy link
Collaborator

🎉 This PR is included in version 0.41.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants