Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

DEVPROD-1976: Migrate execution tasks table to LeafyGreen table #2302

Merged
merged 9 commits into from
Mar 20, 2024

Conversation

minnakt
Copy link
Contributor

@minnakt minnakt commented Mar 15, 2024

DEVPROD-1976

PR is not actually that big, most changes are from regenerating snapshots. True PR size is about ~400 lines.

Description

This PR updates ExecutionTasksTable to use LeafyGreen table. I will be opening two more PRs for the remaining tables.

Background Info

Currently Execution Tasks, Downstream Projects, and Patch Tasks all share the same table instance. I've decided to split them up into separate tables because it is difficult to reconcile their differences. Namely:

  • Execution task table does not have filters, and sorting state is maintained internally by the table instance
  • Downstream project table filter and sorting state is maintained by a reducer
  • Patch task table filter and sorting state is maintained by URL query params

I think splitting them up into different tables will make it easier to debug them in the future. And it will also make it easier to review these PRs. 😃

Screenshots

Screenshot 2024-03-15 at 2 08 01 PM

Testing

  • Updated Cypress tests

Copy link

cypress bot commented Mar 15, 2024

1 failed and 1 flaky tests on run #16220 ↗︎

1 548 7 0 Flakiness 1
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

add multisort
Project: Spruce Commit: 53c1a7a999
Status: Failed Duration: 20:21 💡
Started: Mar 18, 2024 6:10 PM Ended: Mar 18, 2024 6:31 PM

Review all test suite changes for PR #2302 ↗︎

@minnakt minnakt marked this pull request as ready for review March 15, 2024 18:56
@minnakt minnakt requested a review from a team March 15, 2024 18:56
Comment on lines +47 to +52
meta: {
search: {
"data-cy": "task-name-filter-popover",
placeholder: "Task name regex",
},
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be removed since task name isn't a searchable column for the execution tasks table? Or will it be used later?

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 column definition will be reused for the upcoming tables, and they'll be shown in those tables! (initially i wrote these changes in one big PR which got split up now into 3 PRs, so that's why they are here 😅)

Comment on lines +146 to +151
meta: {
search: {
"data-cy": "variant-filter-popover",
placeholder: "Variant name regex",
},
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

containerRef: tableContainerRef,
data: executionTasksFull ?? [],
defaultColumn: {
enableColumnFilter: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

The current implementation allows multisort but it's missing here. You can check out the tests table for an example!

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok I just noticed that I don't think this works currently 🤣 do you think we should just omit multisort altogether?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added it back! i think it works now...

Comment on lines +88 to +93
meta: {
treeSelect: {
"data-cy": "status-filter-popover",
options: statusOptions,
},
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly, the current table doesn't allow filtering so this may be superfluous

Comment on lines +114 to +119
meta: {
treeSelect: {
"data-cy": "base-status-filter-popover",
options: baseStatusOptions,
},
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

@minnakt minnakt requested a review from sophstad March 18, 2024 18:25
Copy link
Contributor

@sophstad sophstad left a comment

Choose a reason for hiding this comment

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

💅

@minnakt
Copy link
Contributor Author

minnakt commented Mar 20, 2024

failing test just seems like a flaky project settings test, will merge

@minnakt minnakt changed the title DEVPROD-1976: Migrate execution tasks table DEVPROD-1976: Migrate execution tasks table to LeafyGreen table Mar 20, 2024
@minnakt minnakt merged commit fd6f072 into evergreen-ci:main Mar 20, 2024
2 of 4 checks passed
@minnakt minnakt deleted the DEVPROD-1976_execution-tasks branch March 20, 2024 16:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants