Repository navigation
Add roles management screens (list and edit roles) - #675
Merged
Merged
Conversation
- Add Roles list page (GET /role_definitions) backed by Kill Bill's GET /1.0/kb/security/roles (Kill Bill 0.25+); show a message on older servers - Add edit/update of a role's permissions, reusing the role form - Add Roles links in the settings sidebar, navbar menu and home dashboard - Add controller tests Fixes #161
The roles table is now filled through a role_definitions/pagination JSON endpoint, like the Tags tab: the server filters by role name or permission and returns only the requested page. The search box sits next to the Create Role button and reuses the Tags search and pagination styling.
…ribute Avoids printing the user-provided query as raw JSON inside the page script (CodeQL rb/reflected-xss).
…killbill-client CI and installs use the released killbill-client gem (4.0.9), which has no find_all, so the roles list and its tests failed with NameError. Fall back to the client's own implementation when a newer client provides it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /1.0/kb/security/roles(Kill Bill 0.25+). On older servers the page shows "Listing roles requires Kill Bill 0.25 or later."Fixes #161
Depends on
RoleDefinition.find_all. The list page needs a client release that contains it.Testing
rails t test/functional/kaui/role_definitions_controller_test.rb: 9 runs, 44 assertions, 0 failures, against Kill Bill 0.25.4 on Tomcat 11 (client from the local checkout of the PR above)-Dorg.killbill.persistent.bus.main.sleep=100 -Dorg.killbill.persistent.bus.external.sleep=100 -Dorg.killbill.notificationq.main.sleep=100), otherwisecallCompletionrequests return 408Notes