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

Fetch only specific csp adapter helm apps... instead of all helm apps #10435

Draft
wants to merge 158 commits into
base: master
Choose a base branch
from

Conversation

richard-cox
Copy link
Member

@richard-cox richard-cox commented Feb 12, 2024

Blocked on

Summary

Fixes #10434

Occurred changes and/or fixed issues

  • Fetch only required apps using new filter param
  • Also do in parallel with settings. This is just best practise i think in all cases (logged in, not logged in) settings are fetched elsewhere)

Technical notes summary

We fetch all apps when pagination is off and then filter for the required ones. I've kept that same filter in, even though the apps list should only contain the required entries just in case there's socket update shenanigans.

Areas or cases that should be tested

Rough flow

Tab 1 - Refresh - Dashboard in standard blue brand,
Tab 2 - /v3/settings/ui-brand does not exist
Tab 3 - Install csp adatper chart (see #9270)
Tab 1 - Without any intervention branding should change to green.
Tab 2 - /v3/settings/ui-brand should exist and be set to csp
Tab 1 - Refresh - branding should remain green
Tab 3 - Uninstall csp adapter chart
Tab 1 - Branding should remain green,
Tab 2 - /v3/settings/ui-brand should exist and be set to csp
Tab 2 - /v3/settings/ui-brand DELETE
Tab 1 - Without intervention brandng should be blue,
Tab 1 - Refresh - Dashboard in standard blue brand,

See #9270 for some more detail on how to install the csp adapter chart

Checklist

  • The PR is linked to an issue, or one is not required. The linked issue has a Milestone
  • The PR has a Milestone
  • The PR template below has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests. The linked issue has appropriate QA labels
  • The PR has reviewed with UX (if required) and tested in light and dark mode

- New visuals
- Pagination controls --> load more
- finished testing of label select with pagination off

# Conflicts:
#	shell/edit/provisioning.cattle.io.cluster/__tests__/Basics.tests.ts
@richard-cox richard-cox added this to the v2.9.0 milestone Feb 12, 2024
@richard-cox richard-cox self-assigned this Feb 12, 2024
shell/mixins/brand.js Outdated Show resolved Hide resolved
- Setup pagination headers for the node type
- Define a pattern for fetching custom list secondary resources
- Major improvements to the way pagination settings are defined and created
- Lots of docs improvements
- Handle calling fetch again once fetch is in progress (nuxt caches running request)
- Validate filter fields (not all are supported by the vai cache
- General pagination fixes
- fix syntax
- catch scenario where a pr has no fixed issue

> There's duplication between files, see rancher#10534
- Everything is gated on `on-disk-steve-cache` feature flag
  - There's a backend in progress item to resolve a `revision` issue, until then disable watching a resource given it
- Global Settings - Performance
  - Added new setting to enable server side pagination
  - this is incompatible with two other performance settings
… form

Also
- improved labeled select pagination
- gate label select pagination functinality on steve cache being enabled
- project monitoring (and bug fixes)
- temp step until we get new overview
- only used in monitoring.coreos.com.alertmanagerconfig context
- Allow `None` option in Paginationed LabelSelect
- Optionally classify pagination response
- general fixes
- correct issue were sorting prov clusters on mgmt cluster props (issue in master as well...)
- bit the bullet, we now don't fetch all mgmt clusters on dashboard visit.
  - there could be knock on affects, but we'd need to remove it sometime in 2.11....
- caused by shell/scripts/test-plugins-build.sh importing list/catalog.cattle.io.clusterrepo.vue
- the component had been updated to a TS component
- check-plugin build outputs TS errors for a component file imports
- vs code shows no errors for imported file
- Remove final todo's
  - includes fix for service type clusterip/headless overlap
- Removed ununused ENDPOINT column (note ENDPOINT formatter used in other columns)
- Testing freshly added index fields
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.

Improve load time by avoiding fetch of all helm apps on load
2 participants