Support multiple Unix groups via --groups#18
Merged
Conversation
Agent-Logs-Url: https://github.com/FertigLab/ontrack/sessions/38e437ad-18a1-43e2-9791-8a8fc63cb9e8 Co-authored-by: dimalvovs <1246862+dimalvovs@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update functionality to support multiple groups
Support multiple Unix groups via --groups
Mar 30, 2026
dimalvovs
approved these changes
Mar 31, 2026
Copilot AI
added a commit
that referenced
this pull request
Mar 31, 2026
…#19 Agent-Logs-Url: https://github.com/FertigLab/ontrack/sessions/190d3356-4e2a-4991-89f2-d08e20ba9b76 Co-authored-by: dimalvovs <1246862+dimalvovs@users.noreply.github.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.
Replace the single-group
--groupparameter with--groups, accepting one or more group names. Member sets are unioned across all specified groups.Changes
--group→--groupswithnargs='+'main(): readsgroups:list from config; builds union of members across all groupsget_directory_stats():group: str | None→groups: list[str] | None; collects members from all groups before filtering_build_directory_entry(): stores"groups"(list) in output dict instead of scalar"group"report_directory(): printsGroups : group1, group2config.yaml:group: name→groups:\n - name(list format)Usage