* imrpove labeledSelect getOptionLabel performance when options are strings
* refactor labeledselect getOptionLabel and write test
* remove redundant if block in ls getOPtionLabel
* refactor getUpdatedOption
- Bring computed properties inline with where they're used
- Fix issue where limit object is deleted and cannot be set following save
- on save the object used to store limit is removed if it's empty
- this meant user could not enter new values within that limit
- so split up input and output to `UnitInput` component
* 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>
* 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>
* 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>
* 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>
* Added test for preventDefault
* Added test for prevent default event on keypress Enter in CruResource component
* Removed test console log
* Fixed lint
* Added data-testid to form
* Fixed lint
* Add new line on pressing enter
* Test enter new line
* Test textarea Enter button in CruResource form
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
---------
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Co-authored-by: Francesco Torchia <francesco.torchia@suse.com>
* Add additional permission check for cluster and project member admin
* Fixes the projectMembership editor on the edit project page
* per-project filtering for managing project-members on cluster/project
* Fixed admin behavior, simplified PRTB mgmt check,
* Optimise code
- Exit from cluster part early if
- we're not ready to calc it
- we've already calc'd it
- Move back calc of per project current user permissions to original loop
- Exit from project part early if
- existing checks
- we've already approved the
---------
Co-authored-by: Richard Cox <richard.cox@suse.com>
- In epinio world defaultNamespace isn't valid
- This would be undefined, which was probably handled as a falsy which matched the 'create a ns' option
- So fall back on something sensisble