Ticket #2192 (closed enhancement: worksforme)

Opened 4 months ago

Last modified 3 months ago

GerritChangeSource: event filter

Reported by: sanxiyn Owned by:
Priority: major Milestone: undecided
Version: 0.8.5 Keywords: gerrit
Cc:

Description

You may be interested in only a small number of projects in a large Gerrit installation. This patch lets you to create Changes only for Gerrit events you care about.

Attachments

event_filter.txt Download (3.0 KB) - added by sanxiyn 4 months ago.

Change History

Changed 4 months ago by sanxiyn

comment:1 Changed 4 months ago by tom.prince

I can see how this could be useful for large Gerrit installations, even though we can already filter changes at the scheduler. If something like this was going to go in, reusing the changefilter from there would make sense.

In addition, even though it is perhaps mostly useful for gerrit, it seems like it would be straightforward to add this ability to all change sources at once.

comment:2 Changed 4 months ago by sanxiyn

I actually think a better way to do this is to create a new Gerrit user who can access only those projects and branches, so that gerrit stream-events will stream only those events. The trouble is that it can be difficult to convince Gerrit administrators that a new Gerrit user with a new set of permissions should be created.

So I don't think this is a best practice, but hopefully it can help others in a similar situation.

comment:3 Changed 3 months ago by dustin

  • Status changed from new to closed
  • Resolution set to worksforme

This bug remains here for reference for others, but it doesn't look like something we'd merge as-is, per tom's comments.

Note: See TracTickets for help on using tickets.