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:
James E. Blair
2011-08-09 15:02:50 -07:00
parent ecc97f6df2
commit 90861b0a2d
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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