Fix non-functioning of project watches after gerrit user import.
Project watches are created with a '*' filter by default in the web ui, but that wasn't being set by the import script and therefore, no changes were actually triggering the watch. This sets it. Change-Id: Ic92ff169ec8a479cefa7dbe4db72b7adc154a74b
This commit is contained in:
@@ -94,7 +94,7 @@ for (group_name, group_id) in cur.fetchall():
|
||||
groups_todo.append(row[0])
|
||||
for current_group in total_groups:
|
||||
cur.execute("""insert into account_project_watches
|
||||
select "Y", "N", "N", g.account_id, %s, ""
|
||||
select "Y", "N", "N", g.account_id, %s, "*"
|
||||
from account_group_members g
|
||||
where g.group_id = %s and g.account_id not in
|
||||
(select w.account_id from
|
||||
|
||||
@@ -298,7 +298,7 @@ for (username, user_details) in users.items():
|
||||
if os_project_name in projects:
|
||||
for current_group in group_implies_groups[group_ids[group]]:
|
||||
cur.execute("""insert into account_project_watches
|
||||
select "Y", "N", "N", g.account_id, %s, ""
|
||||
select "Y", "N", "N", g.account_id, %s, "*"
|
||||
from account_group_members g
|
||||
where g.group_id = %s and g.account_id not in
|
||||
(select w.account_id from
|
||||
|
||||
Reference in New Issue
Block a user