-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
ui: add KeyedCachedDataReducer selector factory util, refactor jobs page props to use RequestState #101481
Conversation
2e21858
to
f3c5305
Compare
This commit adds the `createSelectorForKeyedCachedDataField` utility to help create selector functions that will transform the data of type `KeyedCachedDataReducer` into `RequestState<T>` expected by components in cluster-ui. Epic: none Release note: None
f3c5305
to
a7dd422
Compare
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.
Reviewed 2 of 2 files at r1, 8 of 8 files at r2, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @xinhaoz)
pkg/ui/workspaces/cluster-ui/src/store/jobs/jobs.reducer.ts
line 14 at r2 (raw file):
import { JobsRequest, JobsResponse } from "src/api/jobsApi"; import { DOMAIN_NAME } from "../utils"; import moment from "moment-timezone";
I think it needs to be imported from moment-timezone, related to the work of adding timezone to console pages
Refactor the jobs page components to use `RequestState` to read the jobs response parts. Epic: none Release note: None
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @maryliag)
pkg/ui/workspaces/cluster-ui/src/store/jobs/jobs.reducer.ts
line 14 at r2 (raw file):
Previously, maryliag (Marylia Gutierrez) wrote…
I think it needs to be imported from moment-timezone, related to the work of adding timezone to console pages
Done.
a7dd422
to
d6d6615
Compare
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.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @xinhaoz)
TFTR! |
Build failed (retrying...): |
Build failed: |
bors r+ |
Build succeeded: |
See individual commits.
Release note: None
Epic: CRDB-25476