Commit Graph

110 Commits

Author SHA1 Message Date
Richard Cox 29eb284f54 ember-cli-update --run-codemods 2024-07-30 15:27:49 +01:00
Richard Cox 3349beba87 Ensure embedded ember pages in dashboard work with cypress / e2e
- Create helper functions to determine if running in embedded mode, and the target window for dashboard messages
  - Wasn't sure where to put this, hopefully choice the right location
- isEmbedded `window.top !== window` weirdly didn't work in cypress runner, so now we check if window.top has ember available (only scenario where isEmbedded is false)
- window used for messaging dashboard is now window.parent, window.top can be cypress runner
2023-06-06 17:11:57 +01:00
Cody Jackson 6564d1349c Inform the user that Logging, CIS Scans, Istio and Pipelines aren't supported in k8s 1.21+
https://github.com/rancher/dashboard/issues/3589
2021-08-04 11:28:18 -07:00
Lauren Harden fce4e2de9f
iframe issues in vue from ember (#4690)
* 3370

* fix

* 33449

* 33450

* 33469

* lint

* spacing in hbs

* manual tidy part 1

* fixes part 2

* Fix reformatting issues

* Fix more formatting changes

* More formatting fixes

* Fix more formatting

* Fix test due to style changes

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
2021-07-15 09:36:49 +01:00
Lauren Harden 85ad5adb0b
theme changes for vue (#4655)
* theme changes for vue WIP

* banners

* header fixes

* rm blarp

* avatar fix

* table and header fixes

* table fix

* modal

* fix annotation

* right button headers

* accordion

* header color fixes

* banner fix
2021-06-30 09:45:00 -07:00
Neil MacDougall 256198f83f Fix rediretc issue when embedding istio configuration 2021-06-24 12:08:50 +01:00
Westly Wright 5970bb0ec0
Merge pull request #4498 from westlywright/enhancement.istio.hidden.keys
Show istio hidden answers
2021-03-16 10:02:53 -07:00
Westly Wright 87c7cf1323
Hide monitoring link on isActive condition
Hides istio for some condition and removes redirect to cluster index when cluster is not ready and user clicks istio (just don't show it)

rancher/rancher#29234
2021-03-15 16:34:08 -07:00
Westly Wright a56edc963b
Show istio hidden answers
rancher/rancher#29247
2021-03-15 10:22:13 -07:00
Andru Cherny ccff2fac27
Bugfix link in local cluster
related https://github.com/rancher/rancher/issues/30990
2021-02-11 18:20:31 +02:00
Westly Wright d3d78e87c8
Upgrade Ember & Dependencies for LTS support >3.12
There are changes required for the ember upgrade but additional changes
for individual libs are also present. Commit has been squashed, see
individual commits if needed.

There are a bunch of HBS changes as well. These are to deal with a
couple new rules and there impact is low. The button one has bitten us a
few time so this seemed great to add IMO.

update ember 3.12.4

ember 3.13

fixes for new eslint rules

ember 3.13->3.14

ember3.14->3.16

ember3.16->3.20

3.20 lint rules

yarn upgrade

update ember-optional-feature

update deps that can go to patch versions

upgrade major versions that are possible

update ansi_up

only reset term var if we're not destroying

prevents new ember 'same computation' error

update async

upgrade dot-object

new-catalog - add set to deal with new warning
marked-down - drop call into next to ensure its called at the correct time

upgrade ember-assign

update ember-cli-clipboard

remove unused & deprecated ember-cli-release

remove unused drag-drop lib

use set on tracked prop

update ember-flatpickr && cli-test-loader

upgrade ember-href-to

update filesaver

update liquid-fire and ipaddr

upgrade jsondiffpatch

upgrade marked

upgrade semver

update xterm

Update ember-basic-dropdown

the library has changed quite a bit and no longer provides an addon for the content-item where we handling the click event to close the dropdown,
thus click events must be added manually to the items being clicked to close the dropdown.

udpate dompurify

fix page header project styles

Bump ember api store, remove npm-run-all

Autofix button types from hbs linting

this change looks large but only adds `type` button to any buttons that dont have a type, which should help to reduce weird side effects

more hbs lint changes for no-negate-condition

turned off a couple rules that could be too much to test right now
2020-10-07 16:52:22 -07:00
Westly Wright b95399afeb
Only show cluster explorer links if the cluster is ready
this prevents the user being sent to a non-existant page

rancher/rancher#29199
2020-09-28 10:18:36 -07:00
Denise Schannon c4ea789f79 Change from info to warning for deprecation banners. Updated istio isnt enabled banner to info to match monitoring. 2020-09-26 11:14:34 -07:00
Westly Wright 1b70fee511
new banners for alerting, notifiers, and istio
rancher/rancher#29088
2020-09-25 16:21:11 -07:00
Westly Wright 8c5a4d304e
remove istio dest rule empty subset key before save
rancher/rancher#25513
2020-03-05 11:19:36 -07:00
Westly Wright 56b4407b8e
delete the istio-system namespace when disabling istio
rancher/rancher#24850
2020-01-03 16:51:51 -07:00
Westly Wright 567d82572d
incorrectly removed wrapping object 2020-01-03 15:33:10 -07:00
Westly Wright 54940982e9
add logic to determine kiali port for kiali links in istio
rancher/rancher#24701
2020-01-02 16:52:09 -07:00
Westly Wright f4c378a475
use upgradeAvailable rather than compare versions for forceUpgrade 2019-12-30 09:13:00 -07:00
Westly Wright 79fdaa1970
update kiali links for new kiali version
rancher/rancher#24701
2019-12-30 09:13:00 -07:00
Westly Wright d555aedc77
expose forceUpgrade option for istio upgrade 2019-12-30 09:13:00 -07:00
loganhz 3c5d9029c3 Fix route error
https://github.com/rancher/rancher/issues/23370
2019-11-28 12:12:35 +08:00
loganhz 5562d5f65d Add istio feature flag back
https://github.com/rancher/rancher/issues/23582
2019-10-25 10:12:05 +08:00
loganhz 1d8d9aee3b Fix comments 2019-10-25 10:10:27 +08:00
loganhz 2e50a798a0 Support Istio Gateway 2019-10-25 10:10:05 +08:00
Westly Wright 2c67c35c28
Exclude local user from principal search
rancher/rancher#23247
2019-10-07 09:18:21 -07:00
Westly Wright 94301e5fd4
Merge pull request #3411 from codyrancher/deprecation
Addressing a number of ember deprecations
2019-10-04 13:55:01 -07:00
Westly Wright 9feea7bbcc
Restrict Istio member access to groups only
Due to some oddities in the way that Istio currently allows access to members to
the kiali and jaeger ui's we've decided to restrict the member search to groups
only. I've changed the verbiage on the lables to reflect this. Additionally I've
also exposed the searchOnlyGroups param on the principal search component. I did
not expose the user only param because this is not something we're normally
going to be doing.

rancher/rancher#23215
2019-10-04 12:01:27 -07:00
Westly Wright 15dc7ce56f
Fix routing issues post ember upgrade
It seems the previous way that the cluster id and project id was fetched from
various addons (alerts and istio) does not work in ember 3.12. After some
investigation it wasn't the corret way to grab those parameters anyway. I've
changed the routes to use the scope service which has the current cluster and
project (if in one) rather than fetch the query params off a parent route
outside the engine.
2019-10-03 15:36:38 -07:00
Cody Jackson 6718c4886e Addressing a number of ember deprecations
- Moved from Ember.$() to importing jquery.
- Moved from fn().on() to on(fn())
- Moved from fn().observes() to observer(fn())

This got /g/clusters from 27 warnings to 5 warnings for me.
2019-10-03 10:53:36 -07:00
Westly Wright 7004f1e500
Merge pull request #3407 from codyrancher/cloud-credential
[2.3.2] Add # Node Templates column to cloud credentials
2019-10-02 14:01:04 -07:00
Cody Jackson 16fc847790 Fix linter warnings 2019-10-02 13:49:17 -07:00
Westly Wright d145445d25
Upgrade ember-intl to latest version
remove prototype extension

Remove translations from engines

The motivation behind this change stems from this issue ember-intl issues/797
and the current implmentation of engine support in ember-intl. The translations
essentially get bundled twice. Until ember-intl removes the second bundle it
makes sense to keep the translations in the main ui file.
2019-10-02 13:46:37 -07:00
Westly Wright 5f572f3674
Upgrade Ember to 3.12
Remove ember object and use regular object instead

Found durning upgrade to 3.12, I'm not sure why we'd even need to declare an
ember object for this return anyway.

Get the current cluster's id from scope servervice

Found durning upgrade to 3.12, not sure how this ever worked as I looked on live
and it was failing but the system didn't explode on 3.8. In 3.12
transistion.params is undefined and the whole system explodes. We were never
passing the queryparams so they wouldn't have come through. I changed this so we
fetched the current cluster id from the scope service and everything seems to
work correctly.

Ensure that accordion items only try to expand once during the init

Found durning upgrade to 3.12, expanded was being double rendered.

lint fix

test fixes

lint
2019-10-02 13:33:15 -07:00
Westly Wright 0848e5a519
dedup import yaml button when istio feature flag is enabled
When adding the vitual services and destination rules are enabeld we were
showing the import yaml button twice. It needs to be visible on both tabs and we
should be able to pass the or to the rbac check so I removed the duplicates and
moved the button to before the potential other buttons in the istio nav.

rancher/rancher#23155
2019-09-30 14:55:28 -07:00
loganhz 02deb50669 Istio Virtual Service feature flag 2019-09-28 12:14:55 +08:00
Westly Wright 0bade641ea
Remove nav tabs and simplify Istio ux
I commented out the destinationRules and virtualServices tabs from the
istio-project template, changed some verbiage in the remaining nav tabs, and
added to import yaml link to both tabs to make the ux a little less confusing.
In the next release this page will undergo a redesign so I did not remove the
code.

rancher/rancher#23108
2019-09-26 16:41:49 -07:00
xiaolu hong 3ac576affd update zh-hans 2019-08-31 11:53:06 +08:00
Vincent Fiduccia 7babc04478
Merge pull request #3298 from n313893254/toleration
[2.3.0]Support tracing toleration
2019-08-29 09:14:08 -07:00
n313893254 0d2f071d98 Route to /c/CLUSTERID/monitoring when cluster is not ready
https://github.com/rancher/rancher/issues/22213
2019-08-27 12:17:45 +08:00
n313893254 940e0e6771 Display warning in cluster/project Istio in windows clusters
https://github.com/rancher/rancher/issues/20951
2019-08-27 12:15:33 +08:00
n313893254 4580248608 Support tracing toleration
https://github.com/rancher/rancher/issues/22413
2019-08-26 17:20:16 +08:00
xiaolu hong b5cadafcb7 update zh-hans 2019-08-22 01:24:17 +08:00
Vincent Fiduccia 5c52fb0d20
Merge pull request #3279 from tfiduccia/master
Fix warning text for Istio
2019-08-20 14:47:38 -07:00
Tani Fiduccia d3abe148ce fixed text in istio 2019-08-20 13:55:34 -07:00
Vincent Fiduccia 5c694cffe4
Merge pull request #3269 from xiaoluhong/master
update zh-hans
2019-08-19 15:41:14 -07:00
XiaoluHong f426e93ea7 update zh-hans 2019-08-17 22:28:37 +08:00
loganhz a17487a5d9 fix 2019-08-17 08:46:27 +08:00
loganhz d1ac88320d Warning message when able Istio
https://github.com/rancher/rancher/issues/22040
2019-08-17 08:39:26 +08:00
Tani Fiduccia d3acfc8b3e change empty table text to be more consistent 2019-08-15 17:10:57 -07:00