-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add AllUsers
and AllGroups
#11
Commits on Sep 23, 2023
-
Refactored
BiMap
intoIdNameMap
for future reuse- Renamed `BiMap` to `IdNameMap` to better reflect its purpose - Extracted type parameters out of `IdNameMap` for ease of reuse - Added `IdNameMap::insert` for convenience - `UsersCache` now uses a single `RefCell` for both forward and backward maps; does not seem to break anything - Refactored methods that use `UsersCache::{users,groups}` accordingly - `UsersCache::default` is now implemented with `derive`; `HashMap` nonsense moved into the new `IdNameMap::default`
Configuration menu - View commit details
-
Copy full SHA for 786f1c6 - Browse repository at this point
Copy the full SHA 786f1c6View commit details
Commits on Sep 24, 2023
-
Added
AllUsers
trait andUsersSnapshot
- Added `AllUsers` trait that provides `all_users()` - Added `UsersSnapshot` - user data is pre-loaded, not fetched lazily - implements `AllUsers` and `Users` - `MockUsers` now implements `AllUsers` exposing the list of added users - Equivalent group functionality NYI - Documentation not yet updated
Configuration menu - View commit details
-
Copy full SHA for 77836eb - Browse repository at this point
Copy the full SHA 77836ebView commit details
Commits on Oct 19, 2023
-
- Added `AllGroups` trait that provides `all_groups()` - `UsersSnapshot` now implements `Groups` and `AllGroups` - `MockUsers` now implements `AllGroups` - `UsersSnapshot::filtered` not yet updated: adds all groups - Documentation not yet updated
Configuration menu - View commit details
-
Copy full SHA for 039637c - Browse repository at this point
Copy the full SHA 039637cView commit details -
Refactored
UsersSnapshot::filtered
`UsersSnapshot::filtered` has been split into two new methods to accomodate the two probable use cases: - `::filtered` now accepts a separate filter for groups - `::only_users` only accepts groups that are some included user's primary group.
Configuration menu - View commit details
-
Copy full SHA for 155e4a1 - Browse repository at this point
Copy the full SHA 155e4a1View commit details -
Updated documentation to include
UsersSnapshot
- Documentation of `UsersCache` was moved from module to the struct itself to keep the module doc from bloating to a billion lines. - Description of `UsersCache` in crate doc shortened slightly as it is no longer the only solution.
Configuration menu - View commit details
-
Copy full SHA for 2e2cc5e - Browse repository at this point
Copy the full SHA 2e2cc5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 86712b6 - Browse repository at this point
Copy the full SHA 86712b6View commit details
Commits on Nov 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9ee06b6 - Browse repository at this point
Copy the full SHA 9ee06b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 139a411 - Browse repository at this point
Copy the full SHA 139a411View commit details -
build(src): add deprecated warning to UsersCache::with_all_users
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Configuration menu - View commit details
-
Copy full SHA for f373229 - Browse repository at this point
Copy the full SHA f373229View commit details