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 Execution View Test #612

Merged
merged 9 commits into from
Oct 11, 2022
Merged

Fix Execution View Test #612

merged 9 commits into from
Oct 11, 2022

Conversation

james-union
Copy link
Contributor

@james-union james-union commented Oct 4, 2022

Fixing the failing tests for the NodeExecutionsTable

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

Complete description

Except the NodeExecutionsTable tests, this PR fixes the filters on the table to apply for future nodes that are manually added.

Tracking Issue

fixes flyteorg/flyte#604

@james-union james-union self-assigned this Oct 4, 2022
const filterState = useNodeExecutionFiltersState();

const showUnknownNodes = useMemo<Boolean>(() => {
if (
Copy link
Contributor

Choose a reason for hiding this comment

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

nit can you add a comment for intent here? you're checking the "Active" filter right? Can you write a generic function that retrieves a particular filter from a list, so this doesn't regress in case we change the filters?

if (nodeExecutions.length > 0) {
fetchData(nodeExecutions, queryClient);
}
fetchData(nodeExecutions, queryClient);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did we get rid of the length check?

return <LoadingComponent />;
}
const renderTab = (tabType) => {
if (loading) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this is hard to read, can we rename loading to nodeExecutionsLoading or something?

<WaitForQuery
errorComponent={DataError}
query={childGroupsQuery}
loadingComponent={LoadingComponent}
Copy link
Contributor

Choose a reason for hiding this comment

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

if the WaitForQuery component already takes in a loading component, why do we need the extra check on line 148?

Copy link
Contributor

@olga-union olga-union left a comment

Choose a reason for hiding this comment

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

Do you plan on adding tests for ExecutionTabContent? I think we discussed it on Friday

@james-union
Copy link
Contributor Author

Do you plan on adding tests for ExecutionTabContent? I think we discussed it on Friday

yes. I'm on it

@codecov
Copy link

codecov bot commented Oct 6, 2022

Codecov Report

Merging #612 (37182b5) into devmain (bc2dd8e) will decrease coverage by 1.11%.
The diff coverage is 70.26%.

❗ Current head 37182b5 differs from pull request most recent head 06cd89d. Consider uploading reports for the commit 06cd89d to get more accurate results

@@             Coverage Diff             @@
##           devmain     #612      +/-   ##
===========================================
- Coverage    67.35%   66.23%   -1.12%     
===========================================
  Files          398      441      +43     
  Lines         9296    10440    +1144     
  Branches      1590     1793     +203     
===========================================
+ Hits          6261     6915     +654     
- Misses        3035     3525     +490     
Impacted Files Coverage Δ
...zapp/console/src/basics/FeatureFlags/AdminFlag.tsx 94.11% <ø> (ø)
...p/console/src/basics/FeatureFlags/FeatureFlags.tsx 93.54% <ø> (ø)
...ges/zapp/console/src/basics/FeatureFlags/index.tsx 100.00% <ø> (ø)
packages/zapp/console/src/common/env.ts 100.00% <ø> (ø)
packages/zapp/console/src/common/layout.ts 100.00% <ø> (ø)
packages/zapp/console/src/common/linkify.ts 100.00% <ø> (ø)
packages/zapp/console/src/common/log.ts 100.00% <ø> (ø)
packages/zapp/console/src/common/promiseUtils.ts 0.00% <ø> (ø)
packages/zapp/console/src/common/timer.ts 0.00% <ø> (ø)
packages/zapp/console/src/common/timezone.ts 100.00% <ø> (ø)
... and 404 more

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

jsonporter
jsonporter previously approved these changes Oct 10, 2022
@jsonporter jsonporter merged commit 5ab40b1 into devmain Oct 11, 2022
@jsonporter jsonporter deleted the james/execution-view-test-2 branch October 11, 2022 16:22
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.

4 participants