-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User permissions #2147
User permissions #2147
Conversation
* v2-master: (77 commits) Fixed small typos Removed console.log, unsub before reassigning sub Fix merge issues Weekly status update Do not show menu items when non admin with no endpoints Validate service and app binding params are JSON Fix chip list indentation Lint fox Tidy up deletion screen Fix instance delete Rename selectors CC fixes Fixed tests Delete unused method Fix lint Stop event bubbling Get most recent apps Fixed some tests Addressed review comments Recursive delete application ...
Hey KlapTrap! Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA. |
* v2-master: (161 commits) Small improvements for back end dev Ignores PRs for e2e tests FIx formatting Use no-sandbox as generally recommended Don't run e2e tests on PRs Address PR feedback Markup codeclimate fixes.. Tweak secrets.yaml + missing message Four fixes/tweaks - Tweak select folder/file button padding to ensure we don't wrap - Tweak host flex to ensure git input fields don't wibble when switching type - Fixed bug where deploy step close button would not become enabled on errors - Fixed issue where new github 'source config' step was never shown Add first to one time obs sub Fix line length lint error Move dev notes from wiki to docs/ Update current password required based to reflect if it is required This week's status updates First set of fixes to address PR feedback Fix stepper issue with redirect not working Fix code climate issue Fix some code climate issues Fix merge issue Update snackbar.po.ts ...
@@ -1,12 +1,15 @@ | |||
<app-page-header [endpointIds$]="cfIds$"> | |||
{{canCreateApplication$ | async}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug code
) { | ||
const dataSource: ListDataSource<APIResource> = appListConfig.getDataSource(); | ||
this.cfIds$ = cloudFoundryService.cFEndpoints$.pipe( | ||
map(endpoints => endpoints.map(endpoint => endpoint.guid)) | ||
tap(endpoints => endpoints.forEach(endpoint => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check, possibly nuke
})); | ||
|
||
getRequests(endpoints: EndpointModel[]) { | ||
return [].concat(...endpoints.map(endpoint => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check this doesn't run for admins
return menuItem; | ||
}); | ||
this.showMenu$ = combineLatest(actionMenu.map(menuItem => menuItem.can)).pipe( | ||
tap(console.log), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log
return actions; | ||
}) | ||
); | ||
})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing error handler
} | ||
|
||
if (type === PermissionTypes.ENDPOINT) { | ||
return this.store.select(getCurrentUserCFGlobalState(permission)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check this is correct
@@ -0,0 +1,101 @@ | |||
import { ActionState } from '../reducers/api-request-reducer/types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to nuke
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once tests pass this LGTM. Do you want this in before or after user management (there's some minor conflicts)?
I've created #2181 for syncing role changes to permission state (thought this was best as a separate PR to #2118).
We've also got existing #2175 to cover applying these permissions everywhere and #1741 to walk through console as non-cf admin + associated issues.
* v2-master: (22 commits) Remove passthrough from delete service instance Fix service instance bound app links - Previously cfGuid was `undefined` - Breadcrumbs fixed, previously only one of three was correct - Remove errant <p> from meta card titles, this matches org and space tiles Fix unit tests Fix update of table Removed fdescribe + comment Final tweaks Fix merge conflict Changes in response to feedback Merge fix Fix lint Action menu Fix unit tests CC refactor tweaks Flesh out card view Add text search Services Wall with filters Services wall skeleton Bug fix for unit test,. Tidy up. Fix lint issues ...
The base framework to get user roles and work out their permissions.
Note: This hasn't been applied to all areas of the app, we will do this in another PR.