Commit Graph

810 Commits

Author SHA1 Message Date
Westly Wright 5e69e5c40c
ensure create new role link doesn't reuse cached query params
rancher/rancher#25086
2020-01-31 15:39:47 -07:00
Westly Wright 5f6dfbaf47
Expose nonResourceURLs on global role editor
rancher/rancher#25085
2020-01-31 14:59:19 -07:00
loganhz 036691dad9 Support search node in cluster list
https://github.com/rancher/rancher/issues/23305
2020-01-06 17:30:38 +08:00
Cody Jackson 9e03d4a41b Improve Vsphere UX around cloudinit/cloudconfig
There was confusion and misuse around cloudinit and cloudconfig.
This change switches things up so cloudinit is only used for the
legacy creation type and cloudconfig is used for all other creation
types.

Changes the textarea that was used for cloudconfig to
input-yaml to make it clear to users that they can enter yaml.

Switches the vmware cloud credential vcenter input to an input-url
so that we automatically strip the scheme from the input.

rancher/rancher#24314
2019-12-20 10:48:49 -07:00
loganhz 78320f78de Fix psp labels issues
https://github.com/rancher/rancher/issues/24621
2019-12-17 11:07:16 +08:00
Westly Wright b112dcc914
remove null/undefined entries from baseRoles array
This occurs when a non-admin or user that doesn't have access to global roles
lands on the page.

rancher/rancher#24458
2019-12-09 13:50:14 -07:00
Westly Wright a2d5289e26
check for empty rules before pusing into rules array
rancher/rancher#24438
2019-12-05 14:43:44 -07:00
Westly Wright a256d4cddc
populate default roles for custom roles as well 2019-12-03 15:10:53 -07:00
Westly Wright 78d23ab4d9
pass user-roles to save and add all target to resource validation
rancher/rancher#24362
2019-12-03 12:54:46 -07:00
Westly Wright 0d8d6ab28e
Refactor role permissions validator
the old permissions validating was somewhat dumb in its checking, only looking
for local names of roles. This updates the check to loop through all the roles
and fetch there rules upon which we check for the existance of certain rules and
targets.

This also includes fixes for some broken links which happened as apart of the
previous change to this area.

This also fixes a broken translation

rancher/rancher#24341
2019-12-03 11:46:34 -07:00
Westly Wright cbdd32f493
Add warning to global roles view when no default user role exists
rancher/rancher#24301
2019-12-03 11:46:16 -07:00
Westly Wright fcf05c3681
remove group link that doesn't work 2019-12-02 14:25:51 -07:00
Westly Wright fdac35182b
fix broken link to accounts 2019-12-02 14:17:29 -07:00
Westly Wright a7a81456b4
Feature: associate global role w/external group
rancher/rancher#23452

expose link-to new-group route

Translations change and move static property (convention)

Refactor form-global-roles

Refactor such that user and group are optional parameters. Adds
groupPrincipalId. Destructure smarter so that users are not required for the
mapper function to work. Move bindings to own init. Refactor make to recognize
groups. Translations changes.

Add cru-group-account component

This component does not actually create a group but a global-role-binding with a
groupPrincipalId instead of a userId. Perhaps cru-global-role-binding would work
but in the future this component can and probably will be adapted to create
local groups as well, so the name would fit. At that point the component could
also be refactored to work for the add user page because at that point pretty
much doing the same thing but that is not with-in the scope of this change.

Currently the componet is expected to be used with an auth provider that
supports groups which is why it does not also create the group. This should be
taken into consideration if we ever update this to work with local groups.

Translations changes.

formatting

wip

Add tab nav template only component

rename users index route -> users & add groups route

get groups from grb list and build groupPrincipal list

Add role binding to the fetched group principal

Add account-group-row component and define table row views

global role binding with group edit page

Fix transitionTo in cancel and doneSaving -> cru-group-account

translations

Add initialPrincipal param to input-identity to allow use on edit

reduce duplicate principal calls and display on groups list page

fix role links types from account-group-row

add group delete functionality

translations and bulk action fix

sort global role names in modal and row

delete GRB modal translations

move users route to security-> users, break out groups route security

remove unneeded component

Live update fixes

translation fix

fix broken link to old accounts route

remove unneeded props, angle bracket components, general cleanup

lint fixes

Change add group button

Add warning on add group for non-local auth only and translations

Remove warning from delete group modal and change translations

re-org form-global-roles display

breaks the display out into base|user-custom|additional roles
adds back in details & descriptions
fixes role ids in translations file
2019-12-02 09:40:26 -07:00
Westly Wright d0a9c4179f
Fix recompute bug 2019-11-18 12:35:23 -07:00
Westly Wright 7f5debb985
Allow clone of global roles 2019-11-18 12:11:01 -07:00
Westly Wright 1ac41a98ce
Allow users to create global roles
rancher/rancher#23453
2019-11-18 10:45:14 -07:00
Westly Wright 1feaf4c1b5
Merge pull request #3584 from westlywright/mc.app.display.issues
Mc.app.display.issues
2019-11-15 09:44:13 -07:00
Westly Wright 6656c6601d
Setup observed property on init rather than default to object @ boot
`templateChanged` which loads the content of what we need for a MC app was
updated to watch a new property, `editable: { selectedTemplateUrl } `. The new
property was declared on the component as a object. Observers watching a static
object and that have never been fetched do not recompute. If we set the property
on init to the object it would have been declared with then additional sets on
the watched property cause the observer to recompute.

rancher/rancher#24057
2019-11-14 10:55:44 -07:00
Westly Wright 3d4b81e2d6
Merge pull request #3577 from hubert-he/master
fix ui error message never pop up
2019-11-14 09:51:38 -07:00
Westly Wright 87cd611652
Merge pull request #3513 from westlywright/fp.cr8.template.from.cluster
[Forwardport] Convert Existing Cluster to RKE Cluster Template
2019-11-13 15:25:36 -07:00
Westly Wright 62ef5bc39d
when upgrading mc app ensure we are using a fresh copy of mc app
rancher/rancher#24057
2019-11-13 13:08:03 -07:00
zhenhua he 106de7be6b Merge branch 'master' of github.com:hubert-he/ui 2019-11-13 14:47:17 +08:00
zhenhua he 3961b39020 error message never pop up when add user in global member page 2019-11-13 14:29:54 +08:00
Westly Wright 8c9789f82f
check answers required fields for mc app
rancher/rancher#24057
2019-11-12 16:25:14 -07:00
Westly Wright 07c77cc41d
rework query params for edit cluster and template revisions 2019-11-05 16:26:02 -07:00
Westly Wright da782cacc0
Expose wait and timeout on mc and regular apps
rancher/rancher#22373
2019-11-04 09:52:55 -07:00
Westly Wright 5bc4737743
Fix sorting on cloud credentials page
While I was cleaning this up I found that groupByRef in cc this case did nothing
so I removed it. This exposed a bug in the sortable-table code where groupByRef
was coming back null but when we tried to get it, using embers getter, it would
fail because we passed a null value instead of an empty string.

Additionally I found that when using presorts we were continuously pushing into
the sort array on the component, which never gets reset, so I decided to clone
the array. We rarely use preSorts so it was never caught.

Additionally we never add/remove the descending key to our presorts so I've
added that. Without these when we pass the sort to embers sort we'd never
correctly sort any presorts based the descending flag.

rancher/rancher#23828
2019-11-01 09:14:20 -07:00
Cody Jackson 53681e397e Prevent App editing from modifying state on cancel
When editing both single and multi-cluster apps if you modified the
Template Version or the Target Projects and then cancelled it the
underlying store was still modified which then reflected those changes
on other pages like the single and multi-Cluster Apps pages.

To change this I cloned and nested the fields into a nested object named
'editable' and updated the primarySource on willSave for the relevant
targets subfield.

rancher/rancher#21228
2019-10-31 10:03:36 -07:00
Westly Wright 281a922cb4
Add save as rke template action to clusters
rancher/rancher#23752
2019-10-29 13:51:31 -07:00
Westly Wright a03fc685b6
Merge pull request #3499 from lvuch/lh-1015
22180
2019-10-25 08:47:22 -07:00
Westly Wright afe32d4be3
Merge pull request #3496 from westlywright/fp.global.roles
[Forwardport] Global Permission Bug
2019-10-25 08:45:47 -07:00
lvuch 9a7f337889 22180 2019-10-23 15:28:09 -07:00
Westly Wright 2c7e45c80d
Fix incorrect import of observer
update lock file
2019-10-23 13:20:05 -07:00
Westly Wright 6d0a5cfe07
grabbed the wrong param during refactor
rancher/rancher#21749
2019-10-23 12:10:11 -07:00
Westly Wright 94a4c1a7e2
cleanup from review 2019-10-23 12:10:11 -07:00
Westly Wright 943d8b6662
refactor global permissions to simplify and not overwrite roles
When global roles were added the front end had to make some assumptions for
non-admin users to ensure the user had login access. This role used to be hidden
but was made visible by default. With this exposed we now check before save if
the user has some kind of login access and throw an error if not. We also no
longer need to hide the custom roles which allows new user default roles to be
displayed without all the crazy logic to decide which mode to show. The old
login-access read only param was removed; This used to map to user-base and we
only displayed it because the role was hidden.

rancher/rancher#23644
2019-10-23 12:08:42 -07:00
Westly Wright ef002be770
Merge pull request #3432 from westlywright/feature.feature.flags
Feature Flags UI
2019-10-23 11:49:03 -07:00
Westly Wright fc52c38537
Merge pull request #3469 from codyrancher/period-variable
Enable '.' in answer variables
2019-10-21 09:22:54 -07:00
Cody Jackson 1fb9b5274a Enable '.' in answer variables
This enables '.' to be a valid character in answer varaibles.
So we can support sub.key as a key now.

This also resolves a double render issue that was ran into while
reproducing this issue.

rancher/rancher#23379
2019-10-17 13:04:14 -07:00
Westly Wright d211f69c15
lookup correct catalog route to refresh
catalog-tab is the project level route, this never targeted the correct route.
2019-10-17 10:43:39 -07:00
Westly Wright 5242a1fb7f
First run on Feature Flags ui
rancher/rancher#23184

Translation changes

Failing tests

cleanup
2019-10-17 10:15:04 -07:00
Westly Wright 1d389ed5b8
route name is getting modified twice
there is a weird issue in ember engines that resets the route path which can
cause a double render error to be thrown by ember. Easiest fix is to unbind the
param and since this is only dynamic because we're building the list of links
from an array there is no reason for it to be bound.
2019-10-09 12:06:05 -07:00
Westly Wright 1616b54aa4
remove other missing apis 2019-10-07 12:05:22 -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
Westly Wright f738509a50
Merge pull request #3406 from westlywright/edit-cc-name
[2.3.2] Allow edits to cloud credential name
2019-10-02 14:00:30 -07:00
Cody Jackson 16fc847790 Fix linter warnings 2019-10-02 13:49:17 -07:00
Cody Jackson 6e1c472af6 Add # Node Templates column to cloud credentials
We want to provide a quick way to delete unused cloud credentials.
To do this we're going to show the user the number of node templates
that each cloud credential is associated with.

rancher/rancher#23064
2019-10-02 13:48:51 -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