i added a group via the ssh gerrit create-group.
now I'd like to use this group to assign a permission to it via editing
project.config. However when I try to push I run into:
remote: error: project.config: group "TYPO3v4/Extensions/recycler" not
in groups
I have noticed other projects got a file group in meta/config that was
created by the update/init process.
Do I have to create this file? If so how can I figure out the proper UUID?
Thx and Greets,
Peter
P.S: we want to automate permission setup
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
SELECT name, group_uuid FROM account_groups WHERE name in ('FOO', 'Some Group A', 'Some Group B')
big thanx for all of your valuable feedback.
but what do I have to do if I need to rename my groups?
would I have to update all project.conf and groups files by hand, or is
there some easy scriptable "rename group" solution around the corner?
We would like to bulk rename our current groups into xyz/Member and add
a separate xyz/Owner.
Thx and Greets,
Peter
The group names in project.config and groups file are only used to
connect the two files together. Internally Gerrit uses the UUID to
connect the group you meant in the configuration to the group in the
server. This allows the names of the groups in groups/project.config
to lag behind the server and be stale when the server renames a group.
Access still works as expected for the group.
When you view a stale project.config in the Project > Admin > Access
tab the server will update the groups automatically in the
groups/project.config file and commit that back to the repository.
> would I have to update all project.conf and groups files by hand, or is
> there some easy scriptable "rename group" solution around the corner?
As Edwin said, if you rename these groups using the server's tools
(e.g. rename in the web UI or the rename SSH command) the server will
do the batch work in the background to rename the groups in the
refs/meta/config branches. This may take seconds to several minutes
depending on how many groups there are to rename and how many projects
are impacted. IIRC it shows as a task in `gerrit show-queue` so you
can monitor this and keep the server running until the rename tasks
are no longer running.