-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1730918 - use default security groups as defined by product in Bu…
…gzilla (#7281) Support for filing issues as security bugs got added in bug 1369067. Having the security group hardcoded and not matching the default one for the component causes bugs to get missed during triage.
- Loading branch information
1 parent
94b78c0
commit 8a9f7e1
Showing
10 changed files
with
158 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
treeherder/etl/management/commands/update_bugzilla_security_groups.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from django.core.management.base import BaseCommand | ||
|
||
from treeherder.etl.files_bugzilla_map import ProductSecurityGroupProcess | ||
|
||
|
||
class Command(BaseCommand): | ||
"""Management command to manually update security groups for bugzilla products""" | ||
|
||
def handle(self, *args, **options): | ||
process = ProductSecurityGroupProcess() | ||
process.run() |
30 changes: 30 additions & 0 deletions
30
treeherder/model/migrations/0024_add_bugzillasecuritygroup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 3.1.12 on 2021-09-29 12:11 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('model', '0023_add_filebugzillacomponent'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='BugzillaSecurityGroup', | ||
fields=[ | ||
( | ||
'id', | ||
models.AutoField( | ||
auto_created=True, primary_key=True, serialize=False, verbose_name='ID' | ||
), | ||
), | ||
('product', models.CharField(db_index=True, max_length=60, unique=True)), | ||
('security_group', models.CharField(max_length=60)), | ||
], | ||
options={ | ||
'verbose_name_plural': 'bugzilla_security_groups', | ||
'db_table': 'bugzilla_security_group', | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters