The Git integration maps Gerrit access rights to TeamForge Role Based Access Control (RBAC) permissions.
In earlier versions (pre-8.1.x) of the CVS integration, mappings were established using the gerritforge.mappings properties file. For more information, see Mappings between TeamForge and Gerrit (archives).
The current mappings file TeamForgeGerritMappings.xml is located in the refs/meta/config branch of TF-Projects project . The following table shows how TeamForge RBAC permissions are now mapped to Git access rights by default.
Code review policy | TeamForge permission cluster | Gerrit access right |
---|---|---|
Default | SCM None | - |
SCM View Only | Read | |
SCM Commit/View |
Read |
|
SCM Delete/View |
Read |
|
SCM Admin |
Read |
|
Optional Review | SCM None | - |
SCM View Only |
Read |
|
SCM Commit/View |
Read |
|
SCM Delete/View |
Read |
|
SCM Admin |
Read |
|
Mandatory Review | SCM None | - |
SCM View Only |
Read |
|
SCM Commit/View |
Read |
|
SCM Delete/View |
Read |
|
SCM Admin |
Read |
To make changes to the mappings, modify the TeamForgeGerritMappings.xml file in the refs/meta/config branch of TF-Projects project on the server where your CVS integration is hosted. For instance, if you want to add a user-defined category to your repository, first you need to add the user-defined category to the TeamForgeGerritMappings.xml file. For instructions, see Create a User-defined Repository Category .