My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 44: Allow deleting groups through the web UI
64 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by code-rev...@gtempaccount.com, Sep 24, 2009
Reported by Shawn Pearce <sop@google.com> on Tue Jan 27 15:15:13 PST 2009
Source: JIRA GERRIT-44
Affected Version: 2.0

Users (or at least Administrators) should be able to delete groups through the
web UI, especially if the group is never used in a ProjectRight entity and
also is not the owner of another group or a project.
Sep 24, 2009
#1 sop+code@google.com
(No comment was entered for this change.)
Status: Accepted
Owner: ---
Labels: -Priority-Trivial Priority-Minor
Mar 1, 2010
#2 mike.lifeguard@gmail.com
Is there a way to do this until implemented in the web UI?
Mar 2, 2010
#3 sop@google.com
Not really.

DELETE FROM account_groups WHERE name='...';
DELETE FROM account_group_names
  WHERE group_id NOT IN (SELECT group_id FROM account_groups);

And then you might want to clean up the database a bit
to remove the now orphaned records:

DELETE FROM account_group_members
  WHERE group_id NOT IN (SELECT group_id FROM account_groups);
DELETE FROM account_group_members_audit
  WHERE group_id NOT IN (SELECT group_id FROM account_groups);

% or project_rights
DELETE FROM ref_rights WHERE
  WHERE group_id NOT IN (SELECT group_id FROM account_groups);

Apr 6, 2010
#4 OdinG...@gmail.com
Perhaps priority of this should be bumped up a bit considering  Issue 48  means that
any registered user can create "SPAM" groups and there is no way to delete them.
Aug 25, 2010
#5 jtur...@gmail.com
Any interest in this still?
Aug 26, 2010
#6 sop@google.com
Yes, we just need to write it.  :-(
May 9, 2011
#7 bboss...@gmail.com
For my own purpose I created the server side part, it's now easy to link it to a button. I'm not familiar in pushing gerrit code, but I accepted the NDA and stuff. Should I proceed?
May 10, 2011
#10 bboss...@gmail.com
Thanks for help, done:
https://review.source.android.com/#change,22779

Please note that the instruction are missing the important bit about the change-id:
http://gerrit.googlecode.com/svn/documentation/2.1.2/user-upload.html#push_create
A special hook must be loaded on your local repo if you want to create a new patch so that it will generate inside the commit message the necessary change-id

The instructions are also missing the username in the "review" alias. Instead of this:
  git config remote.review.url ssh://review.source.android.com:29418/tools/gerrit.git
It shoud be this:
  git config remote.review.url ssh://yourusername@review.source.android.com:29418/tools/gerrit.git


Aug 10, 2012
#11 sword.l....@gmail.com
Does this feature have plan? not only I want to delete group from web page, but I want to delete user.
Aug 4, 2015
#12 sschuberth
Is anyone still actively working on this feature? The change from #10 does not seem to exists anymore at least.
Aug 4, 2015
Project Member #13 edwin.ke...@gmail.com
No, AFAIK nobody is working on this.
Status: New
Oct 28, 2015
#14 burmawal...@gmail.com
It would be great if REST APIs could also support the group deletion in addition to UI.
Sign in to add a comment

Powered by Google Project Hosting