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: adds more identifying information for node executions #70

Merged
merged 6 commits into from
May 21, 2020

Conversation

schottra
Copy link
Contributor

@schottra schottra commented May 20, 2020

Execution Details Page

  • Show the task / workflow name below each node in the NodeExecutions list
  • Show the task / workflow name below the header in the DetailsPanel
  • Updates formatting logic for items in the Executions tab of the DetailsPanel to only show attempt numbers. This is in line with some upcoming changes to the hierarchy in the NodeExecutionsList
  • Unit tests for the above changes

image

image

@codecov-commenter
Copy link

codecov-commenter commented May 20, 2020

Codecov Report

Merging #70 into dynamic-task-updates will increase coverage by 2.85%.
The diff coverage is 87.50%.

Impacted file tree graph

@@                   Coverage Diff                    @@
##           dynamic-task-updates      #70      +/-   ##
========================================================
+ Coverage                 58.65%   61.50%   +2.85%     
========================================================
  Files                       363      363              
  Lines                      5664     5669       +5     
  Branches                    847      847              
========================================================
+ Hits                       3322     3487     +165     
+ Misses                     2342     2182     -160     
Impacted Files Coverage Δ
...ecutions/ExecutionDetails/NodeExecutionDetails.tsx 83.87% <ø> (+46.77%) ⬆️
...ions/TaskExecutionsList/TaskExecutionsListItem.tsx 51.72% <50.00%> (ø)
src/common/formatters.ts 95.58% <100.00%> (+0.13%) ⬆️
...ponents/Executions/Tables/nodeExecutionColumns.tsx 89.18% <100.00%> (+59.45%) ⬆️
.../components/Executions/TaskExecutionsList/utils.ts 100.00% <100.00%> (ø)
src/components/hooks/useDataRefresher.ts 95.83% <0.00%> (+16.66%) ⬆️
src/components/Executions/utils.ts 73.21% <0.00%> (+28.57%) ⬆️
src/components/Executions/Tables/RowExpander.tsx 100.00% <0.00%> (+28.57%) ⬆️
src/components/common/DetailsPanel.tsx 92.30% <0.00%> (+30.76%) ⬆️
src/components/Theme/useTheme.ts 66.66% <0.00%> (+33.33%) ⬆️
... and 9 more

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 d4d9b03...db723c6. Read the comment docs.

@schottra schottra force-pushed the remove-task-execution-rows branch from a6285ef to eea4719 Compare May 20, 2020 21:09
@schottra schottra changed the base branch from dynamic-task-updates to master May 20, 2020 22:03
@schottra schottra changed the base branch from master to dynamic-task-updates May 20, 2020 22:03
.editorconfig Outdated
Comment on lines 23 to 24
[*.yaml]
[*.{yaml,yml}]
indent_size = 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any benefit to maintaining both file-extension specific configs here and also in prettier? It looks like prettier handles more file types compared to this file, and given prettier's ability to format files on-save in an IDE, or in the pre-commit hook that's set up here, I'm not sure I understand the utility of keeping file-extension specific configs in this file.

Copy link
Contributor Author

@schottra schottra May 20, 2020

Choose a reason for hiding this comment

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

(The base for this PR is branched from another PR which I haven't merged yet. I did a rebase/force push/base change to avoid showing that diff here. But I'll answer the question anyway)
.editorconfig is just a convenience for people who use editors which don't support tslint. It will at least give them a better chance at getting close to our syntax without having to wait for the commit lint to yell at them.
So no it's not necessarily required. But since it's already set up, I decided to update it 😄

@@ -1,28 +1,28 @@
{
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 was a result of running yarn lint-fix manually on one of my commits, which processed all JSON files in the repo to get them in line with our prettier config :-)

@schottra schottra merged commit 7a252f3 into dynamic-task-updates May 21, 2020
@schottra schottra deleted the remove-task-execution-rows branch May 26, 2020 17:45
@schottra schottra restored the remove-task-execution-rows branch June 1, 2020 19:55
@schottra schottra deleted the remove-task-execution-rows branch June 1, 2020 19:56
schottra added a commit that referenced this pull request Jun 29, 2020
* feat: show workflow node name beneath node execution ids

* feat: updating DetailsPanel info for NodeExecutions

* fix lint errors

* adding tests for new formatter function

* test: adding new test for NodeExecutionDetails

* test: adding test for new code in NodeExecutionsTable
schottra added a commit that referenced this pull request Jun 30, 2020
* feat: show workflow node name beneath node execution ids

* feat: updating DetailsPanel info for NodeExecutions

* fix lint errors

* adding tests for new formatter function

* test: adding new test for NodeExecutionDetails

* test: adding test for new code in NodeExecutionsTable
schottra added a commit that referenced this pull request Jun 30, 2020
* feat: adds more identifying information for node executions (#70)

* feat: show workflow node name beneath node execution ids

* feat: updating DetailsPanel info for NodeExecutions

* fix lint errors

* adding tests for new formatter function

* test: adding new test for NodeExecutionDetails

* test: adding test for new code in NodeExecutionsTable

* refactor: fetch child node executions for NodeExecution rows (#72)

* refactor: fetch child node executions to determine expandability

* fix: handling detection of children for sub-workflows as well

* fix: poor performance with object-hash on some identifiers

* docs: cleanup and docs for newly exposed functions

* test: ensure request config is used for all levels

* chore: remove unused import

* feat: Remove intermediate NodeExecutionsTable row content (#75)

* refactor: removing specialized rows and rendering only nodes

* refactor: moving contexts up to common folder

* refactor: use a data cache for nested node mapping

* refactor: update loading of workflow data

* fix: update usage of NodeExecutions in graph tab

* fix: update TaskExecutionDetails to use data cache

* fix: getting tests and stories working again

* chore: docs and cleanup

* test: use a more robust element query

* refactor: use filter instead of reduce

* docs: adding some missing function docs

* fix: cleanup for dynamic tasks refactoring (#76)

* test: creating dynamic task cases for NodeExecutionsTable stories

* fix: styling for child group labels

* fix: mock api context for NodeExecutionsTable stories

* test: mock nodeExecutionData endpoint

* chore: remove unused imports

* fix: extract nodes from subworkflows as well

* fix: adjust borders to make child groups more obvious

* refactor: checkpoint for getting the nesting styles correct

* refactor: adding logic for borders/spacing based on nesting/index

* fix: correct workflow execution table row styles
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