Commit Graph

10526 Commits

Author SHA1 Message Date
Nancy c393cba656
fix driver unit tests (#10714) 2024-03-27 11:34:18 -07:00
codyrancher ba94731a93
Merge pull request #10702 from codyrancher/workload-title-fix
Making sure tabTitle updates if the content of a slot updates
2024-03-27 09:07:06 -07:00
Phillip Rak 6e9f80c8c2
Merge pull request #10689 from rak-phillip/chore/simple-store
Replace `createNamespace` pattern with a simple store for sharing data
2024-03-27 07:59:46 -07:00
Richard Cox d6122779a2
Merge pull request #10669 from richard-cox/fix-node-spam
Handle resources that cannot be watched
2024-03-27 11:03:52 +00:00
Richard Cox 89d4eab4ca
Merge pull request #10455 from richard-cox/fix-dup-mgmt-setting-requests
Remove duplicate calls to mgmt settings on fresh load
2024-03-27 11:03:21 +00:00
Francesco Torchia 294e7bc741
Merge pull request #10596 from torchiaf/10561-navlinks
Remove Vue `getMatchedComponents`
2024-03-27 11:13:23 +01:00
Neil MacDougall 44757ef8c2
Move cluster management to top of global apps (#10688)
* Move cluster management to top of global apps

* Add e2e test tags

* Fix lint issue
2024-03-27 09:01:48 +00:00
Evgeniya Vashkevich 47ff3ddac6
[FEAT] Moved driver pages from Ember (#10557)
* [FEAT] Moved driver pages from Ember
2024-03-26 16:33:15 -07:00
Cody Jackson 7f252a77eb Making sure tabTitle updates if the content of a slot updates
Watches and computed props didn't update based on the content of slots.

The render method would still be called when the slot was updated so I moved the update to there. I also just use a method to compute the title because the value would get cached and not updated even if you accessed it more than once.

https://github.com/rancher/dashboard/issues/9822#issuecomment-1976814164
2024-03-26 14:22:24 -07:00
Phillip Rak 8fd88c52f6 Explicitly mock individual actions
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-26 13:07:47 -07:00
Richard Cox b2d1013894
Merge pull request #10701 from richard-cox/extension-load-failure
Better logging for failed plugin loads
2024-03-26 19:29:30 +00:00
codyrancher 161f0a00ac
Merge pull request #10696 from codyrancher/remove-legacy-apps
Removing legacy apps from cluster tools because they are no longer supported
2024-03-26 11:02:05 -07:00
Nancy 86001e4532
Fix KeyValue behaviour when parent component updates value prop (#10643)
* remove legacy items except for project config-maps and secrets

* add kv test

* add a watcher to keyvalue to ensure that it updates when the parent component changes the value being displayed

* add keyvalue unit tests to cover add and remove buttons

* remove testing code

* remove more test code

* use isequal instead of json stringify

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-03-26 10:52:41 -07:00
Richard Cox 7f97317630 Better logging for failed plugin loads 2024-03-26 17:45:19 +00:00
Phillip Rak e5bbf42c52 Mock `dispatch` for unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-26 10:38:29 -07:00
Richard Cox a91f0303db Revert fixes for list vs individual watch handling
- 9318936c72
- BUG 1
  - Navigating from nodes list to a node detail page unwatches nodes list but doesn't watch new resources
  - Node's list destroy has a forgetType node
    - this removes entries from store and unwatches nodes list watch
    - we clear the fact we're watching the node list once we receieve a resource.stop from socket
  - There's a race condition, the node we're going to is still in the store... but the find action for this doesn't kick off a watch for the rsource
  - This was resolved by the change in the find action
- BUG 2
  - Refreshing on the detail page results in a watch for that specific node
  - Navigating to the list starts a watch for all nodes, but doesn't stop the individual watch
  - This was resolved by the change in subscribe
- HOWEVER
  - These fixes could impact how what we watch in other cases where we might call find all and find specific in the same context
  - Safer to address later
2024-03-26 16:59:14 +00:00
Cody Jackson 11d7178f74 Removing legacy apps from cluster tools because they are no longer supported
https://github.com/rancher/dashboard/issues/10488#issuecomment-2014672674
2024-03-26 09:50:54 -07:00
Richard 7ee02dd10c Add unit tests 2024-03-26 16:00:08 +00:00
Richard f4416cc647 Fix two more watch related node watch related bugs
1. Switching from a detail page with a watch on a specific resource to the list page where we watch all resources did not unwatch on the specific one
2. Switching to a detail page of a resource that's already in the store should ensure we're watching it
2024-03-26 16:00:08 +00:00
Richard Cox 230ad4d8f0 Handle resources that cannot be watched
- examples metrics.k8s.io.podmetrics, metrics.k8s.io.nodemetrics, componentstatus
- change 1
  - when these are watched the BE now sends an error... which we ignore and try to watch again
  - so handle the error
- change 2
  - avoid this scenario though by stopping watches that don't have the watch verb
  - because of this change 1 can only be tested by changing code
2024-03-26 16:00:08 +00:00
Richard Cox 5765b90720 PUBLIC_SETTING_COUNT --> PARTIAL_SETTING_THRESHOLD 2024-03-26 15:51:24 +00:00
Richard Cox 513ba0c219
Merge pull request #10601 from richard-cox/fix-legacy-project-menu-item
Fix Legacy / Project group
2024-03-26 15:33:00 +00:00
Richard Cox 64e3e923f6
Merge pull request #10480 from richard-cox/fix-pod-cache
Ensure pods loaded by incremental loadDataPage make it to the pod by namespace cache
2024-03-26 15:32:45 +00:00
Evgeniya Vashkevich 06b659cc11
[FIX] Fixed broken test in product-side-nav.spec (#10695)
* [FIX] Fixed broken test in product-side-nav.spec
2024-03-26 08:05:06 -07:00
Francesco Torchia 0bbee23ac9
Merge pull request #10665 from torchiaf/harvester-retro-compatibility
Fix `updateNamespaces` to preserve compatibility with old Harvester versions
2024-03-26 11:08:23 +01:00
Francesco Torchia e1ae579d19
Merge pull request #10676 from torchiaf/revert-vue-js-modal-remove
Revert vue-js-modal removal as required in Harvester
2024-03-26 10:57:13 +01:00
Richard Cox 443b25b470
Merge pull request #10691 from richard-cox/e2e-common-build
Reduce the amount of time we spend running gh workflows
2024-03-26 09:40:30 +00:00
Richard Cox 5129a7e2a3 All test fail monitoring-istio as the latest chart does not have matching crd chart
- pin it for the moment to 03.0.2%2Bup45.31.1
2024-03-25 17:23:43 +00:00
Richard Cox 3f9b289707 Return ns picker back to default state
- Originally had wanted to store existing, but it gets complicated if multiple projects are selected
2024-03-25 17:23:00 +00:00
Richard Cox 340b7170c5 Fix FixedBanner unit tests 2024-03-25 17:01:01 +00:00
Richard Cox da6273ee08 All test fail monitoring-istio as the latest chart does not have matching crd chart
- pin it for the moment to 03.0.2%2Bup45.31.1
2024-03-25 17:00:09 +00:00
Richard Cox e539865702 All test fail monitoring-istio as the latest chart does not have matching crd chart
- pin it for the moment to 03.0.2%2Bup45.31.1
2024-03-25 14:34:18 +00:00
Francesco Torchia 7653fbfa73
Fix vue-js-modal shell plugin
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-03-25 15:07:48 +01:00
Richard Cox 132dc31b02 Revert "Validate using code in branch"
This reverts commit fcb409e863.
2024-03-25 11:35:49 +00:00
Richard Cox fcb409e863 Validate using code in branch 2024-03-25 11:07:13 +00:00
Richard Cox f2e229eca0 Move e2e build out from each e2e step to a single pre e2e job
- also use yarn cache
2024-03-25 10:32:02 +00:00
Francesco Torchia 15b45eb6d1
Add destructured getters param; add reference to original issue
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-03-25 11:06:41 +01:00
Francesco Torchia e4a437f227
Revert vue-js-modal removal as required in Harvester
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-03-25 10:34:21 +01:00
Francesco Torchia e422c21114
Merge pull request #10682 from torchiaf/harvester-fix-warning-messages
Fix warning messages in Harvester embedded view
2024-03-25 09:58:09 +01:00
Phillip Rak de3e9517ce Replace `createNamespace` with store in `CruResource`
This replaces the current method of managing the `createNamespace` state with something that will be Vue3 compatible.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-22 15:45:52 -07:00
Evgeniya Vashkevich 4503cda47d
[FIX] Fixed clicking on a group header outside of text not working (#10670)
* [FIX] Fixed clicking on a group header outside of text
2024-03-22 14:46:28 -07:00
Phillip Rak f24272e969 Create `cru-resource` store
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-22 12:37:20 -07:00
Richard Cox 3f491d7637 Make FixedBanner reactive
- before the banner setting was expected upfront
- for the logout case the aunauthenticated middleware that fetches the setting now no longer blocks
- so creating the banner components before the setting was fetched would result in missing banners
- this weirldly was not an issue when using nuxt-link to go to /auth-logout route... but was a problem going via url to it
2024-03-22 19:19:43 +00:00
Alexandre Alves 5409f2b23a
remove v1 monitoring code (#10539)
* remove v1 monitoring code

* fix lint issue

* remove monitoring v1 uninstall code + remove v1 uninstall translation strings + simple checks for detail pages in e2e tests to verify integrition of work done

* address pr comments

* fix unit tests

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-03-22 17:39:32 +00:00
Richard Cox f7482bda8d ensure `after` still has session to disable flag 2024-03-22 17:36:38 +00:00
Richard Cox f12a13afcb changes following review 2024-03-22 16:15:23 +00:00
Guilherme Macedo 6766adbc46
Bump BCI image version to 15.5 (#10687)
Signed-off-by: Guilherme Macedo <guilherme@gmacedo.com>
2024-03-22 16:09:55 +00:00
Richard Cox 1e7a6d102b fix lint 2024-03-22 15:57:54 +00:00
Richard Cox f5ab831f37 Changes after review 2024-03-22 15:36:55 +00:00
momesgin f0107dbae5
Fix flaky registries test (#10611)
* fix flaky registries test

* refactor waiting for loading state to finish in e2e

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-03-22 08:34:29 -07:00