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: show launchplan in execution table #738

Merged
merged 6 commits into from
Apr 11, 2023

Conversation

pradithya
Copy link
Member

@pradithya pradithya commented Mar 31, 2023

TL;DR

Display Launch Plan name in the workflow execution table and link it to the launch plan details page.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested

Complete description

Display Launch Plan name in the workflow execution table and link it to the launch plan details page.

Screenshot 2023-04-01 at 9 56 39 AM

Screen.Recording.2023-04-01.at.9.57.06.AM.mov

Tracking Issue

flyteorg/flyte#3555

Follow-up issue

NA

@welcome
Copy link

welcome bot commented Mar 31, 2023

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

@codecov
Copy link

codecov bot commented Apr 1, 2023

Codecov Report

Merging #738 (db7831d) into master (c82e755) will increase coverage by 0.06%.
The diff coverage is 95.23%.

@@            Coverage Diff             @@
##           master     #738      +/-   ##
==========================================
+ Coverage   66.73%   66.79%   +0.06%     
==========================================
  Files         464      465       +1     
  Lines       11390    11411      +21     
  Branches     2104     2108       +4     
==========================================
+ Hits         7601     7622      +21     
  Misses       3789     3789              
Impacted Files Coverage Δ
...xecutions/Tables/WorkflowExecutionTable/strings.ts 57.14% <ø> (ø)
...Executions/Tables/WorkflowExecutionTable/styles.ts 100.00% <ø> (ø)
...sole/src/components/Executions/Tables/constants.ts 100.00% <ø> (ø)
...nsole/src/components/LaunchPlan/LaunchPlanLink.tsx 91.66% <91.66%> (ø)
...Executions/Tables/WorkflowExecutionTable/cells.tsx 84.28% <100.00%> (+2.02%) ⬆️
...ecutionTable/useWorkflowExecutionsTableColumns.tsx 96.15% <100.00%> (+0.15%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@pradithya pradithya self-assigned this Apr 3, 2023
@jsonporter
Copy link
Contributor

Hey thanks for this PR; looking through the code this looks largely okay my only concern is around how we want to handle archived launch plans (in general) so I've forwarded this PR to our design/UX team and we'll try to get some feedback in the next day or two 👍

@kumare3
Copy link
Contributor

kumare3 commented Apr 6, 2023

@jsonporter I actually think it makes sense to show launchplan, as you trigger launchplans and they become executions. For a single workflow, there could be multiple launch plans. from utlity pov, i like this PR +1

@@ -10,6 +10,10 @@ export const useStyles = makeStyles((theme: Theme) => ({
flexBasis: workflowExecutionsTableColumnWidths.name,
whiteSpace: 'normal',
},
columnLaunchPlan: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering how this would handle a really large string; could we add something like overflow:hidden here?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, it's ugly without overflow:hidden
Fixed it.

Screen.Recording.2023-04-06.at.9.38.47.PM.mov

@hongxunjin
Copy link

In the previous Figma design proposal.(shown down below) , the access to the launchplan was placed at the same level as "archive" and "view I/O" , as a "hovering over icon". However, the question remains: how prominent should the launchplan's access be?

If our goal is to display the launchplan's relevant information (such as name and version) upfront, then the proposal in this PR seems reasonable.

image

@pradithya
Copy link
Member Author

In the previous Figma design proposal.(shown down below) , the access to the launchplan was placed at the same level as "archive" and "view I/O" , as a "hovering over icon". However, the question remains: how prominent should the launchplan's access be?

If our goal is to display the launchplan's relevant information (such as name and version) upfront, then the proposal in this PR seems reasonable.

image

The pain point that I am addressing is the need for additional clicks to figure out which launch plan is used when executing a workflow. Currently, it's possible to figure that out by opening each execution page (with a few extra clicks). But it's becoming painful when there are multiple launch plans executing the same workflow. Having this as a column greatly helps to minimize friction.
The issue flyteorg/flyte#3555 mentioned filtering capability by launch plan which is also useful to further improve the UX.

Signed-off-by: Pradithya Aria Pura <[email protected]>
Signed-off-by: Pradithya Aria Pura <[email protected]>
Signed-off-by: Pradithya Aria Pura <[email protected]>
Signed-off-by: Pradithya Aria Pura <[email protected]>
Signed-off-by: Pradithya Aria Pura <[email protected]>
@tsheiner
Copy link

tsheiner commented Apr 6, 2023

This PR seems like an improvement to me.

In general, bringing information up, not hiding it behind clicks, is a good thing. It becomes a negative only when the additional info is distracting, not related to primary task of the view, or it makes the view too complex and hard to read.

Neither of those concerns appear to apply in this case.

@jsonporter can you say more about this: "my only concern is around how we want to handle archived launch plans (in general)..."

@jsonporter
Copy link
Contributor

Yeah just that "archiving" a launch plan is a little odd in that it doesn't actually prevent executions (ie, you can launch a WF from an archived launch plan). That said, we discussed the edge cases and they seem fine; i'm good with this PR if everyone else is 👍

@jsonporter jsonporter merged commit 7115a06 into flyteorg:master Apr 11, 2023
@welcome
Copy link

welcome bot commented Apr 11, 2023

Congrats on merging your first pull request! 🎉

@flyte-bot
Copy link
Collaborator

🎉 This PR is included in version 1.6.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants