Create/Edit HPA - Don't fetch all workload types when SSP enabled#16400
Create/Edit HPA - Don't fetch all workload types when SSP enabled#16400richard-cox merged 1 commit intorancher:masterfrom
Conversation
818276a to
fe40ad2
Compare
Core Changes - Split selection of target workload from label select with ALL workloads to separate per type resource label select - Update metrics-row to fetch required resource - Add `transient` mode to find (as per findPage) - Fetches resource but does not cache it, just returns it - This change also improves SSP disabled world, given we only fetch all of one TYPE... Improvements - Convert create/edit hpa component to TS - Much better typing and mapping between workload types and workload kinds General Improvements - Pass through templates from ResourceLabeledSelect to LabeledSelect (wasn't needed in the end but should be included)
fe40ad2 to
5f6899d
Compare
codyrancher
left a comment
There was a problem hiding this comment.
I don't know if you want to address it here or at all but even though I find this works and the code looks fine I found the UX to be annoying.
ssp.mp4
The dropdown closing, it not being in alphabetical order and we still just list all of them eventually. I'd think we'd want to keep the dropdown open and paginate. It might be worth getting UX to help.
This looks like a regression. The drop down used to stay open and the loading indicator shown again. Created #16451
It does look like it's in alphabetical order? String sorts are 0 --> 1X --> 2 --> 2X etc
i might have misunderstood, but the drop down originally had pagination controls and only showed a single page. UX decided that the Going on the pr approval, additional issue and comments above will merge. Just let me know if anything more should be done |
No that's fine. And you're right about the alphabetical. I just wasn't paying close enough attention to the numerical sorting. It is still loading the entire list eventually, the first item is present after every |
Summary
Fixes #16346
Occurred changes and/or fixed issues
Remove the need to fetch all workload types to support the user just selecting one
Core Changes
transientmode to find (as per findPage)Improvements
General Improvements
Areas or cases that should be tested
Areas which could experience regressions
Screenshot/Video
Checklist
Admin,Standard UserandUser Base