-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-32689 Include/Exclude pending scopes in metrics #19132
HPCC-32689 Include/Exclude pending scopes in metrics #19132
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-32689 Jirabot Action Result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GordonSmith GH Actions had noted one lint warning about a missing dependency, and I saw one other minor change with a couple variable names
.metrics(scopesTableMetrics, view.scopeTypes, view.properties, scopeFilter, matchCase) | ||
.lazyRender() | ||
; | ||
}, [includePendingItems, matchCase, metrics, scopeFilter, scopesTable, view.properties, view.scopeTypes]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lint warning about metricGraph missing from dependencies
esp/src/src-react/hooks/metrics.ts
Outdated
@@ -303,18 +314,18 @@ export function useWorkunitMetrics( | |||
}); | |||
}, [workunit, state, count, scopeFilter, nestedFilter]); | |||
|
|||
return [data, columns, activities, properties, measures, scopeTypes, status, increment]; | |||
return { metrics, columns, activities, properties, measures, scopeTypes, status, refresh: increment }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit of a nitpick I guess, but I might've done metrics: data
here (and line 378) instead of having the state variable and it's setter have mismatched names.
b9d6ee7
to
c025e3f
Compare
Changes made as per review. |
Signed-off-by: Gordon Smith <[email protected]>
c025e3f
to
35cc7c8
Compare
Rebased |
44e211e
into
hpcc-systems:candidate-9.2.x
Type of change:
Checklist:
Smoketest:
Testing: