List projects where user is added as reviewer (#22347)
* Support for adding reviewer role * added collaboratorsGetter tests * emit toggle-track-changes when reviewer is added * List projects where user is added as reviewer GitOrigin-RevId: 8ec9e59e4c0b65167705b0a56be3e309ef6af3e7
This commit is contained in:
committed by
Copybot
parent
53dc5fbafe
commit
db9dba4b7a
@@ -540,8 +540,14 @@ async function _getProjects(
|
||||
* @private
|
||||
*/
|
||||
function _formatProjects(projects, userId) {
|
||||
const { owned, readAndWrite, readOnly, tokenReadAndWrite, tokenReadOnly } =
|
||||
projects
|
||||
const {
|
||||
owned,
|
||||
review,
|
||||
readAndWrite,
|
||||
readOnly,
|
||||
tokenReadAndWrite,
|
||||
tokenReadOnly,
|
||||
} = projects
|
||||
|
||||
const formattedProjects = /** @type {Project[]} **/ []
|
||||
for (const project of owned) {
|
||||
@@ -555,6 +561,11 @@ function _formatProjects(projects, userId) {
|
||||
_formatProjectInfo(project, 'readWrite', Sources.INVITE, userId)
|
||||
)
|
||||
}
|
||||
for (const project of review) {
|
||||
formattedProjects.push(
|
||||
_formatProjectInfo(project, 'review', Sources.INVITE, userId)
|
||||
)
|
||||
}
|
||||
for (const project of readOnly) {
|
||||
formattedProjects.push(
|
||||
_formatProjectInfo(project, 'readOnly', Sources.INVITE, userId)
|
||||
|
||||
Reference in New Issue
Block a user