-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend repository service and authority parsing for GraphQL role support
- Repositories Service: * Updated `getReadableRepositories()` to accept an optional `graphql` parameter and delegate to `$jwtAuth.canReadRepo(repo, graphql)`. - JWT Auth Service: * Changed `canReadRepo()` and `canWriteRepo()` to accept `graphql = false` and adjust logic within `checkRights()` to skip or include entries ending with `:GRAPHQL`. * Ensured that Admin users or wildcard roles properly override new GraphQL checks. - Authorities Util: * Consolidated logic for `READ`, `WRITE`, and `GRAPHQL` prefixes in a single block. * Updated the `getRepoFromAuthority()` function to handle `GRAPHQL_PREFIX`. * Adjusted parse logic to set `.read`, `.write`, or `.graphql` on a per-repo basis. - User Mappers & Map-Object: * Enhanced `mapObject()` to allow optional `newKey` renaming and `removeOldKey`. * Renamed the user’s `grantedAuthorities` field to `grantedAuthoritiesUiModel` when mapping back from BE data. - Cypress: * Added methods for toggling read, write, and GraphQL checkboxes on a per-repo or wildcard basis. * Enhanced test coverage in `user-and-access.spec.js` to handle combinations of read/write/GraphQL. * Introduced `editUserAuths()` for editing existing permissions, and improved `assertUserAuths()` negative checks.
- Loading branch information
1 parent
59bc744
commit 87c30d1
Showing
18 changed files
with
803 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.wb-user .auth-column-label { | ||
margin-right: 4px; | ||
} | ||
|
||
.wb-user .repository-column { | ||
width: 50%; | ||
} | ||
|
||
.wb-user .read-column { | ||
width: 15%; | ||
} | ||
|
||
.wb-user .write-column { | ||
width: 15%; | ||
} | ||
|
||
.wb-user .write-column, | ||
.wb-user .write-rights, | ||
.wb-user .write-any { | ||
border-right: 1px solid #eceeef; | ||
} | ||
|
||
.wb-user .graphql-column { | ||
width: 15%; | ||
} | ||
.wb-user .table-fixed { | ||
table-layout: fixed; | ||
width: 100%; | ||
} | ||
|
||
.wb-user .bordered-table { | ||
border: 1px solid #eceeef; | ||
border-collapse: collapse; | ||
width: 100%; | ||
} | ||
|
||
.wb-user .graphql-icon { | ||
margin-left: 4px; | ||
} | ||
|
||
.wb-user .repository-name { | ||
word-wrap: break-word; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.