Alexandre Alves
84c234383a
Fix textual descriptions for cluster appearance in multiple places ( #13416 )
...
* Fix textual descriptions for cluster appearance in multiple places
* address pr comments
* address pr comments
2025-02-24 09:00:54 +00:00
Francesco Torchia
b884de441f
Add second/seconds l10n
...
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-20 12:14:28 +01:00
ly5156
3ef4c729be
chore(workload): disable access to unreturned data attributes in data method
2025-01-07 20:11:28 +08:00
Phillip Rak
0fbbab2f95
Add e2e test for selecting Longhorn CSI Pod storage
...
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-12-03 12:08:34 -07:00
Phillip Rak
badaff88fb
Update name for pod storage tab
...
The `name` prop for tabs assigns an id to a `section` element in the underlying tab. Since ids must be unique in the document, there conflicts can arise when programmatically selecting tabs.
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-12-03 12:08:34 -07:00
Phillip Rak
2d531ad4d9
Create methods for getting CSI option labels
...
Options for CSI can be either a string or an object; objects contain a label property.
Replace periods with `-` in keys like `driver.longhorn.io` so that the i18n implementation will properly match a translation.
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-12-03 12:08:34 -07:00
Phillip Rak
5223af8d0d
Clone `defaultContainer` when applying defaults
...
`defaultContainer` retains its values even after navigating away from the workload create form. This behavior was not observed in Vue2, and it requires further investigation to fully understand.
To address this issue in the short term, using `structuredClone` to create a deep copy of defaultContainer ensures that modifications to the container do not persist after navigating away from the form.
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-22 14:26:30 -07:00
Nancy
f28214f9c6
Vue3 fix workload storage ( #12070 )
...
* fix workload storage codemirror not rendering
* workload storage default component yamleditor instead of codemirror
* test editing projected vols
* add container mount test
* fix lint
* refactor deployment tests to improve retry-ability
* add to workoad storage tests and improve retry
2024-10-03 15:00:34 -07:00
Nancy
5607114e5d
update all instances of LabeledInput using v-model.number to use v-model:value.number ( #11902 )
...
* update all instances of LabeledInput using v-model.number
* add probe http headers unit test
* add hookoption test
* remove codemirror focus change
2024-09-19 14:46:37 -07:00
codyrancher
3fde3d5144
Merge pull request #11964 from codyrancher/emits
...
Enabling `vue/require-explicit-emits` linting rule
2024-09-19 12:31:25 -07:00
Cody Jackson
5052c2a8e8
Enabling `vue/require-explicit-emits` linting rule
...
https://github.com/rancher/dashboard/issues/11961
2024-09-19 09:58:53 -07:00
Evgeniya Vashkevich
6f0b5935ff
Vue3: Fixed validation errors shown prematurely for Workload and Service forms ( #11945 )
2024-09-18 14:43:13 -07:00
Richard Cox
6a7253c1ea
Merge pull request #11851 from richard-cox/fix-resource-tab
...
Remove breaking `template` from Workload Pod Resource tab
2024-09-11 09:22:20 +01:00
Nancy
85c5c28c22
Vue3 fix unit tests ( #11776 )
...
* remove $set from AKS validators
* fix cruGKE not rendering
* fix most aks unit tests
* fix crueks and eks config unit tests
* fix eks networking and nodegroup unit tests
* fix gke unit tests
* fix consumption gauge test
* fix namespacefilter tests
* fix command and taints unit tests
* fix questions unit tests
* fix hpa and service unit tests
* fix registryconfigs unit tests
* fix job unit tests
* fix longhorn unit tests
* fix addextensionsrepos unit tests
* fix rke2 basics unit tests
* fix container shell unit tests
* fix last aks pool test
* fix mount tests
* fix namespace and pv unit tests
* fix codemirror unit tests
* clean up aks, boolean, namespacefilter unit tests
* fix namespacefilter test
* remove redundant test case
2024-09-10 08:07:21 -07:00
Richard Cox
db8f873d94
Remove breaking `template` from Workload Pod Resource tab
2024-09-06 17:41:58 +01:00
Phillip Rak
78e819da5a
Normalize `customVolumeTypes` paths for storage `ButtonDropdown`
...
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-04 08:54:33 -07:00
Phillip Rak
0bf8e53f2d
Update volumes in reactive way in Storage
...
This approach uses the spread operator to create a new array instead of using push. It appears that using push on a nested property of a reactive object was not triggering Vue's reactivity in this instance, while creating a new array does the job.
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-04 08:54:33 -07:00
Cody Jackson
8d59cd5914
Skipping all failing unit tests for the Vue3 merge.
2024-08-22 21:12:40 -07:00
Cody Jackson
d81bd7d387
Updating all references to has-tooltip to v-popper--has-tooltip to be consistent with our upgraded library
2024-08-22 16:09:55 -07:00
Cody Jackson
381e20ab15
Fixing data binding for image containers in workloads
2024-08-22 16:09:55 -07:00
Phillip Rak
e39ce7899f
Resolve a batch of unit test failures
...
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
cnotv
78d70353c5
Unit test: Migrate unit tests with the script
2024-08-22 16:07:03 -07:00
Cody Jackson
909affa02f
Replacing $emit('input' with $emit('update:value'
...
This should've been done in the migration script and will be fixed for the next run.
2024-08-22 16:07:03 -07:00
Cody Jackson
d744a0d8b3
Switch out/remove the deprecated createLocalValue for the plugins: [Vuex]
...
This only addresses the complaints made by the cli when running. There are still more instances of createLocalVue
https://stackoverflow.com/questions/66932839/typeerror-0-testutils-createlocalvue-is-not-a-function
2024-08-22 16:05:36 -07:00
Cody Jackson
9b829c55ea
Ran `yarn lint --fix`
2024-08-22 16:05:36 -07:00
Cody Jackson
d5ce4fff2e
Run the vue3 migration script
...
Commands run:
➤ yarn migrate
➤ git clean -fdx
➤ nvm use 20
➤ yarn
2024-08-22 16:05:36 -07:00
Cody Jackson
f2f014597c
Removing prop mutation in v-model usage
2024-08-12 14:47:52 -07:00
Evgeniya Vashkevich
6bd67ba3ff
[INT] Refactored some of the plugins - 3 ( #10946 )
...
[INT] Refactored some of the plugins - 3
2024-05-08 15:10:27 -07:00
Neil MacDougall
f5431cbbaf
Add i18n string usage checker script ( #10805 )
...
* Add i18n string usage checker script
* Fix lint issues
* Add i18n check to GH Action workflow
* Update to node 16
* Update workflow to run script properly
* Allow script to return okay if when there are errors
* Add documentation
* Remove commented code
2024-05-02 20:52:15 +01:00
LiuYan
ff1c90df4c
fix(workload): clean up some labels,matchLabels and annotations when cloning a job ( #10201 )
2024-04-30 09:57:25 +01:00
Giuseppe Leo
793f7c6023
Initial migration of Vue3 for compatible fixes ( #10858 )
...
* Correct file naming and small TS issues
Correct TS related issues
* Manual replacement of :is on standard HTML tags
* Add missing required in the code dependencies
* Correct SCSS import
* Correct test file naming
* Correct typo in markup
* Use alias for types import
2024-04-23 20:16:46 +02:00
刘畅
a9b62f75c4
Fix service annotations null
2023-12-04 20:20:14 +08:00
Francesco Torchia
a45ac56eca
Merge pull request #9875 from ly5156/upgrading
...
fix(workload/Upgrading): fix DaemonSet/StatefulSet update strategy failed issue
2023-11-24 10:16:54 +01:00
Richard Cox
f34bfba061
Fix selection of default storage class
...
- default storage class is set via annotation
- annotations can be `"true"` or `"false"`
- previously we only checked for truthy when finding default
- this mean `"false"` counted as true
2023-11-17 13:41:22 +00:00
Richard Cox
9a72508748
Add a tooltip to Workload image pull secret select
...
- This makes it clearer we only show certain types of secrets
2023-11-09 15:32:29 +00:00
LiuYan
4fce2eda48
fix(workload/Upgrading): fix DaemonSet/StatefulSet update strategy failed issue
2023-11-06 07:46:56 +08:00
Neil MacDougall
34858ab8cf
Fix RBAC issue with workload create/edit screen ( #9913 )
2023-10-14 13:19:32 +01:00
momesgin
96b71fc322
Merge pull request #9741 from momesgin/8907-fix-unit-tests-warnings
...
Fixed unit tests warnings
2023-09-26 13:53:48 -07:00
Giuseppe Leo
081683028e
Add automatically default value for deployment PVC ( #9717 )
...
* Add automatically default value for deployment PVC
* Remove unnecessary argument
* Set default value as fallback for all the modes
2023-09-26 19:14:31 +02:00
Mo Mesgin
c453356ea1
fixed unit tests warnings
2023-09-20 15:49:53 -07:00
Jordon Leach
58e7341a82
Fix volumeMounts from being overwritten ( #9617 )
2023-09-05 07:27:37 -04:00
Giuseppe Leo
01eeb0548f
Add recommended lint rules globally ( #8997 )
...
* Update configuration
* Create default config for eslint
* Restore plugin:vue/recommended
* Add exceptions and overrides
* Correct manually remaining issues
* Adding further picked exceptions groupped up
* Fix or disable specific cases manually and singularly
* Add naming linting exception
* Remove unused variable in component
* Move rules to default
* Autocorrect rancher/components linting issues
* Configure VSCode to use multiple files, to display linting for rancher components
* Disable jest lint hook restriction for string list component
* Autofix
2023-06-23 17:02:55 +02:00
Qingyang Nong
c0cdc2dbf3
HARVESTER: Cloud provider enhancement ( #8935 )
...
* HARVESTER: Cloud provider enhancement
* fix labels-annotations.js linting
* fix missing comma in labels.vue
* fix labels.vue missing bracket
---------
Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
2023-05-22 16:49:19 -07:00
Phillip Rak
ade3c9f4e7
Replace all instances of `v-tooltip` with `v-clean-tooltip`
...
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-05-18 15:39:14 -07:00
Giuseppe Leo
99d617e6bc
Automation: Allow user to change the volume name when creating a workload ( #8867 )
...
* Add storage tests
* Correct comment
2023-05-16 16:15:25 +02:00
Shavindra
ff6307ba34
Fix pod clone. ( #8733 )
...
* Fix pod clone.
* Fix saving workload name on clone.
2023-05-05 10:22:46 +01:00
Richard Cox
0bba39e62c
Merge pull request #8158 from richard-cox/pods-in-workload-list
...
Include oprhaned `POD`s in Workload list
2023-04-21 13:59:38 +01:00
richa
7c3b34d863
Fixed remove button style and alignments ( #8122 )
...
* Fixed remove button style and alignments
* Added column-gutter variable
* Removed imp from css
2023-04-14 13:14:36 +02:00
Phillip Rak
4e21f2338c
Mount `clean-html` directive in tests
...
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-03-22 08:30:17 -07:00
Shavindra
ca67df2d7f
Namespace changes on workload creation are not kept ( #8279 )
...
* Ensure namespace is set when creating a workload.
2023-02-28 09:49:30 +00:00