-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#17621 from Aflynn50/add-include-disabled-flag
juju#17621 The `includeDisabled` flag was present in the Mongo function `GetAllUsers` so needed to be added back here to the DQLite equivalent. <!-- Why this change is needed and what it does. --> ## Checklist <!-- If an item is not applicable, use `~strikethrough~`. --> - [x] Code style: imports ordered, good names, simple structure, etc - [x] Comments saying why design decisions were made - [x] Go unit tests, with comments saying what you're testing ~- [ ] [Integration tests](https://github.com/juju/juju/tree/main/tests), with comments saying what you're testing~ - [x] [doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages ## QA steps ### Unit tests ``` TEST_PACKAGES="./domain/access/state/... -count=1 " TEST_FILTER="Suite" make run-go-tests TEST_PACKAGES="./apiserver/facades/client/usermanager/... -count=1 " TEST_FILTER="Suite" make run-go-tests ``` ### Integration tests ``` $ juju bootstrap lxd test-all-users $ juju add-model default $ juju change-user-password admin $ juju add-user joe $ juju change-user-password joe $ juju users Controller: test-all-users Name Display name Access Date created Last connection admin* admin superuser 3 minutes ago just now juju-metrics Juju Metrics login 3 minutes ago 0001-01-01 $ juju users --all Controller: test-all-users Name Display name Access Date created Last connection admin* admin superuser 3 minutes ago just now juju-metrics Juju Metrics login 3 minutes ago 0001-01-01 joe 40 seconds ago 0001-01-01 (disabled) ``` ## Documentation changes Added doc.go to access domain <!-- How it affects user workflow (CLI or API). --> ## Links <!-- Link to all relevant specification, documentation, bug, issue or JIRA card. --> **Jira card:** [JUJU-6282](https://warthogs.atlassian.net/browse/JUJU-6282) [JUJU-6282]: https://warthogs.atlassian.net/browse/JUJU-6282?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
Showing
10 changed files
with
98 additions
and
64 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright 2024 Canonical Ltd. | ||
// Licensed under the AGPLv3, see LICENCE file for details. | ||
|
||
// Package access provides the services for managing users and permissions in | ||
// Juju. The users side is mainly concerned with authentication and the | ||
// permissions side with authorization. | ||
package access |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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