Commit Graph

674 Commits

Author SHA1 Message Date
Alexandre Alves c136e0f81f
locationConfig hash param (#9514)
* add hash param to locationConfig object in extensions to allow fine-tune of application of an extension + change logic around extension table cols to better reflect col location based on page user is browsing

* remove commented line

* update docs

* improve docs with breaking changes warning

* address pr comments

* bump shell version

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-08-25 14:41:38 +01:00
Shavindra 078317f022
Fleet gitrepo E2E (#9534)
* Fleet gitrepo E2E
* Update workspace switcher spec for fleet dashboard.
2023-08-23 11:18:48 +01:00
Richard Cox 4a0e43b8f5
Merge pull request #9446 from ly5156/node-link
fix(LinkName): add node schema checking
2023-08-23 09:37:28 +01:00
Alexandre Alves 5c17900425
Resource Quota up-and-down input doesn't update the value on the request quota object to be sent (#9577)
* add @change event to capture arrow presses on firefox

* address pr comments

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-08-23 09:25:08 +01:00
LiuYan 56cb64da58 fix(LinkName): add node schema checking 2023-08-22 16:54:13 +01:00
Alexandre Alves 61b4939890
Decouple SideNav from default layout (#9480)
* decouple SideNav from default layout

* address pr comments

* Move over root NAV styles

* Fix group scoped

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-08-22 16:32:46 +01:00
Francesco Torchia b42de6c9c2
shell, Add closeOnClickOutside option to PromptModal 2023-08-11 16:15:42 +02:00
Richard Cox e304434e34 Fix issue causing node detail page to be unreachable
- caused by localisation missing required strings
- also fixed width of image list
2023-08-10 18:37:08 +01:00
momesgin 17f5bb58aa
filter RKE1 s3 snapshots (#9460)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-08-02 09:03:24 -07:00
Sean-McQ 5c2f28b4dc
this was a older line that got relocated up into the getSocketUrl method (#9462)
* this was a older line that got relocated up into the getSocketUrl method

* Fixes compiler warnings
2023-08-02 11:04:18 -04:00
yonasberhe23 5be8469e6f
ui automation: users and roles tests (#9355)
* Add users and roles tests

* Refactor: split user-and-auth.po into user.po and roles.po and added roles tests

* Refactor users to reflect underlying list, create/edit and detail components
- Make Users PO root page for users list.
  - contains list po which extends BaseResourceList
  - contains user specific list stuff
- Move create edit stuff to own PO
- Move detail stuff to own PO, extend ResourceDetailPo

* Update roles as per previous changes to users
- different to users given different resource types

* split users and roles tests

* Remove unrequried command.ts, make http 200 check more lenient

---------

Co-authored-by: Yonas Berhe <yberhe@Yonass-MacBook-Pro.local>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-08-01 09:32:06 -07:00
Alexandre Alves 9462c5a817
fix issue with height on containerShell (#9448)
* fix issue with height on containerShell

* fix issue properly

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-07-31 11:46:19 +01:00
Alexandre Alves e70abeb82c
UI says "Matches no existing clusters" when there is a null value for cluster selector in cluster groups (#9441)
* fix bug with matchexpression

* clear console logs

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-07-31 11:46:08 +01:00
Neil MacDougall 02e6e84f41
When execing into a container, try linux and windows commands when we can't determine if the node is windows (#9241)
* When execing into a container, try linux and windows commands when we can't determine if the node is windows

* Fix lint

* Lint: Remove trailing white space

* Use error message rather than last error

* extra failover, caching last working os against pod, errors, tests

* add __mocks__ folders to eslint ignore patterns

* standard user test fix

* removed unnecessary try/catch logic

* Revert "removed unnecessary try/catch logic"

This reverts commit c263131927.

---------

Co-authored-by: Sean <sean.mchugh@suse.com>
2023-07-28 21:28:03 -04:00
momesgin 94323cfb4e
Fixed 'Imported' label not showing up for imported Google GKE clusters (#9443)
* prefixed the term 'Imported' to the provider name of the imported cluster.

* removed console.log

* handle imported GKE case in ClusterProvider

* added optional chaining

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-07-28 10:17:50 -07:00
Evgeniya Vashkevich ebfd4ccd51
Changed navlink page and improved error handling for FileImageUpload (#9411) 2023-07-27 14:03:43 -07:00
momesgin bac35d3a58
Merge pull request #9436 from momesgin/8839-disable-s3-snapshot
Disable failed S3 snapshots
2023-07-27 08:18:35 -07:00
Richard Cox 6f32ed0df2
Merge pull request #9412 from WuJun2016/circular-dependency
fix circular dependency
2023-07-27 11:39:53 +01:00
Mo Mesgin 8f19b3d53a check successful status instead of not failed 2023-07-26 16:18:35 -07:00
momesgin 7896059c49
filter failed snapshots (#9390)
* filter failed snapshots

* fixed import

* added one more test case

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-07-26 10:28:53 -07:00
wujun f4856ffccc fix circular dependency 2023-07-26 17:45:27 +08:00
Richard Cox 77d65c9c9b Add additional types for extensions, fix other typing errors 2023-07-25 15:51:31 +01:00
Sorin f5c611700a
Removes multiples instances of checkInactivityTimer() (#9345)
* removes multiples instances of checkInactivityTimer()
2023-07-21 11:12:17 +02:00
Nancy 456f7133c1
check mgmt store and norman store before throwing resource not found (#9380)
* check mgmt store and norman store before throwing resource not found

* Final attempt at fixing resource check in authentication middleware
- Some resource pages don't use the product's store. This happens when..
  - the product changes the store type of a resource via product config `typeStoreMap`
    - explorer project, cluster binding and project binding pages
  - the resource detail / list overrides the store directly with store-override
    - create api key (this isn't in the product / type / id world though)
    - cloud credential create / edit / view
- To fix this
  - ensure we use the correct getter to fetch the store a resource might be in
    - covers typeStoreMap case
  - avoid using `store-override` param for resouces in product/ type / id world
    - covers cloud cred world (use correct typeStoreMap) instead
    - also maake sure we use resourceoverride to get the correct store for a resource
- I'm trying to make sure we support the generic case to avoid breaking extensions which would use the generic inStore toolset
- If this fix doesn't work, we should remove all checks for resources from authentication and instead return to checking for the resource type in resource list & detail components


Tested user with project role in downstream cluster
- cluster instance create / view
- cluster project list & view (saves will fail due to permissions, but screens are ok)
- cluster membership tab (and add page), project membership tab
- cloud creds list, create (and cancel), edit
- places that use resource-override
  - create api key, auth config, monitoring resources
- refresh on all of above

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-07-20 13:29:55 -07:00
Shavindra f9a954a263
#4683 - Add fleet gitrepo resource age per cluster. (#9299)
* Add fleet gitrepo resource age per cluster.
2023-07-20 14:24:20 +02:00
Shavindra e18f265499
Workloads deployments CRUD operations e2e (#9284)
* Workloads deployments CRUD operations e2e
2023-07-18 16:26:08 +02:00
Richard Cox 436cb1d9b1
Merge pull request #9338 from mantis-toboggan-md/bugfix-std-user-authenticated
Fix authenticated middleware schema check for users who cant access the local cluster
2023-07-18 10:51:15 +01:00
Nancy Butler ada8f89926 update not-found tests to check product and resources std user has access to 2023-07-17 14:23:15 -07:00
Alexandre Alves d3b802ab15
fix issue with Resources Select in globalRoles edit/create interface (#9210)
* fix issue with Resources Select in globalRoles edit/create interface

* address PR comments

* add missing check

* Minor improvement, add comments
- Did a deep dive on what this should actually be doing, added comments to explain
- We should prioritise methods to find a key via config before falling back on label and random string
- The opt.optionKey has been (previously) applied incorrectly. It should be the actual option key, rather than a key to find the option key
  - This is the root of the issue.
  - I don't think we should fix this here in case of breaking somewhere else
  - The changes in the PR are one's we should be doing anyway

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-07-17 13:23:02 +01:00
Richard Cox cb31625817
Merge pull request #9323 from richard-cox/fix-file-diff
Fix broken YAML File Diff
2023-07-17 10:02:37 +01:00
momesgin 7e77ec7d5e
remove error icon when the condition is Ready and Waiting (#9309)
* remove error icon when the condition is Ready and Waiting

* fixed importing clean tooltip directive

* change testing component name

* use replace instead of replaceAll to fix node version support issue on GH's unit test action

* added more unit tests

* import replaceAll polyfill and clean tooltip directive to jest setup

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-07-14 13:09:04 -07:00
Phillip Rak 309e97a92f
Merge pull request #9106 from huacheng-git/master
Update CN community links
2023-07-13 12:40:20 -07:00
Richard Cox 44fa85bc98 Fix unit tests 2023-07-13 16:21:45 +01:00
Richard Cox 0deddb52aa Fix File Diff
- FileDiff component used in the YAML editor
  - Seen when Editing by YAML, or Editing by Config and switching to YAML. Then press show diff button at bottom
- Rendering was completely off in the old version of diff2html, so use latest
- Latest version of diff2html requires use of new component to render component same as before
  - This has a slightly different implementation
- Bonus point - Fixed a rendering issue when editing yaml --> switch to diff --> resize. the bottom bar action buttons disappeared off screen. Now fixed
2023-07-13 15:55:53 +01:00
Alexandre Alves 01ae80cd88
working on making sure we show a 404 page with a proper error (#8927)
* working on making sure we show a 404 page with a proper error

* code cleanup + add logic to capture 404s for resource instance details

* add e2e tests

* address PR comments + adjust e2e tests

* cover 404 on cluster for dynamic plugins

* address PR comments

* catching bogus resources on authenticated middleware with redirect to 404 page

* fix lint issue

* address PR comments + fix issue with e2e tests

* Fix l10n
- Ensure error messages doesn't reference 'list' when not on a list page
- The new way the feature works means going to a list with an unknown resource results in the generic message, but this is preferably over the above

* fix e2e tests

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-07-13 15:01:14 +01:00
Mo Mesgin 1ff850f33d changed formatter name 2023-07-12 07:52:09 -07:00
Alexandre Alves 90cb245c08
Wire in extension table column feature to cluster `node` list and other hardcoded places (#9186)
* add logic to support new table cols via extensions hook on resource table instead of type-map so that we can capture table with locally defined headers like the nodes list

* cleanup

* address PR comments

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-07-12 14:35:34 +01:00
Neil MacDougall c9e1a19396
Extension support for custom provisioning (#9246)
* Extension support for custom provisioning

* FIx lint issues

* Discovery / Tweaks
- fix issue where namespacesOverride was lost
- tidy up PROVIDER
- try to handle missing provider=type url param (could be missing extension-params)
- added a few comments to comments to come back to

* Names and typings
- change param --> customParam to make it clearer it's not url params
- add labels-annotations to shell types

* Wire in provider detailTabs
- as per original readme this should be made generic (extension point working directly with ResourceTabs)

* Update IClusterProvisioner & docs

* Improvements / Changes to support proving out DO extension
- cluster hooks optional
- buff up save hook (and pass in cluster when calling apply fn)
- move normalizeName into generic place
- bring back async create machine config
- hack for do extension (map example provider to do provider)

* updates, add optional saveCluster, add missing kube file
- saveCluster complements hooks, doesn't skip handling of addons, etc
- ensure register hooks take the `this` context in all worlds

* Adding docs

* Updates
- location config based changes
  - change customParams to context
  - add query param
- add new extention point to add tabs to cluster create cluster config section
- fixed some typing
- fixed issue where cluster was not passed to before / after hooks (only important if 'this' changes

* Changes following review, fix `t` in plugins

* Fix linting

* Docs updates, pass through more edit/view things

* Conditionally show the namespace grouping in the cluster list
- means users can differentiate between clusters with same name in different namespaces
- useful when clusters created via extension provisioner where ns can be selected

* docs tweaks, actually include the provisioning page in docs

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-07-11 22:17:57 +01:00
momesgin afa9c06d5c
Add wrap styling to image column (#9257)
* add wrap styling to image column

* add Image formatter and  apply styling

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-07-10 21:48:41 -07:00
huacheng 9637887e83 Update CN community links 2023-07-10 23:29:50 +08:00
wujun 6be0862e82
HARVESTER: fix Visual Bug during the Harvester upgrade (#9050) 2023-07-07 10:52:36 -07:00
Dai Yuzeng 71e73cb605
HARVESTER: only change priority by select component (#9266)
* HARVESTER: only change priority by select component

* apply weight input fix to node affinity and add unit tests

* fix node affinity unit test name

---------

Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
2023-07-06 15:29:08 -07:00
Dai Yuzeng 98eed65344
HARVESTER: fix podAffinity can not update match expressions (#9238) 2023-06-30 10:43:49 -07:00
Richard Cox ed6926f136
Merge pull request #8963 from yonasberhe23/homepage_automation
ui automation: home page automation
2023-06-29 15:02:50 +01:00
momesgin 033993b0c5
fixed duplicate warnings on PrometheusRules create page (#9140)
* fixed duplicate warnings on PrometheusRules create page

* fix eslint warning

* added tests for prometheuserule monitoring

* eslint fix

* reset closedErrorMessages after create/save

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-06-28 15:45:08 -07:00
Richard Cox 47115448db
Merge pull request #9208 from richard-cox/remove-epinio
Remove epinio from `master`
2023-06-28 13:26:28 +01:00
Dai Yuzeng 51664c1a19
HARVESTER: keep the param referer on the newly opened grafana page. (#9133) 2023-06-27 11:42:31 -07:00
Francesco Torchia acb4e9e42e
Rename GitPicker data-testid
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-27 17:42:31 +02:00
Richard Cox 86a9285f6c Add e2e tests for rke1 custom cluster create
- also updated lots of ~/ @/
2023-06-27 13:58:09 +01:00
Yonas Berhe f0ba82c83f made updates per change request and fix merge conflict 2023-06-26 10:44:05 -07:00