Skip to content

Commit 6bbad15

Browse files
authored
fix: restore generation of rswg/rsab chair aliases (ietf-tools#5121)
1 parent dd7bed4 commit 6bbad15

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

ietf/doc/factories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ class Meta:
534534
class EditorialDraftFactory(BaseDocumentFactory):
535535

536536
type_id = 'draft'
537-
group = factory.SubFactory('ietf.group.factories.GroupFactory',acronym='rswg', type_id='rfcedtyp')
537+
group = factory.SubFactory('ietf.group.factories.GroupFactory',acronym='rswg', type_id='edwg')
538538
stream_id = 'editorial'
539539

540540
@factory.post_generation

ietf/group/management/commands/generate_group_aliases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
DEFAULT_YEARS = 5
2828
ACTIVE_STATES=['active', 'bof', 'proposed']
29-
GROUP_TYPES=['wg', 'rg', 'rag', 'dir', 'team', 'review', 'program', 'rfcedtyp']
30-
NO_AD_GROUP_TYPES=['rg', 'rag', 'team', 'program', 'rfcedtyp']
29+
GROUP_TYPES=['wg', 'rg', 'rag', 'dir', 'team', 'review', 'program', 'rfcedtyp', 'edappr', 'edwg'] # This should become groupfeature driven...
30+
NO_AD_GROUP_TYPES=['rg', 'rag', 'team', 'program', 'rfcedtyp', 'edappr', 'edwg']
3131
IETF_DOMAIN=['ietf.org', ]
3232
IRTF_DOMAIN=['irtf.org', ]
3333
IAB_DOMAIN=['iab.org', ]

ietf/group/tests_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_active_groups(self):
7171
self.assertContains(r, group.name)
7272
self.assertContains(r, escape(group.ad_role().person.name))
7373

74-
for t in ('rg','area','ag', 'rag', 'dir','review','team','program','iabasg','adm','rfcedtyp'):
74+
for t in ('rg','area','ag', 'rag', 'dir','review','team','program','iabasg','adm','rfcedtyp'): # See issue 5120
7575
g = GroupFactory.create(type_id=t,state_id='active')
7676
if t in ['dir','review']:
7777
g.parent = GroupFactory.create(type_id='area',state_id='active')

ietf/ietfauth/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ def is_authorized_in_doc_stream(user, doc):
167167
group_req = Q(group__acronym=doc.stream.slug)
168168
elif doc.stream.slug == "editorial":
169169
group_req = Q(group=doc.group) | Q(group__acronym='rsab')
170-
if doc.group.type.slug in ("individ", "rfcedtype"):
171-
docman_roles = GroupFeatures.objects.get(type_id="rfcedtyp").docman_roles
170+
if doc.group.type.slug in ("individ", "edappr"):
171+
docman_roles = GroupFeatures.objects.get(type_id="edappr").docman_roles
172172
else:
173173
group_req = Q() # no group constraint for other cases
174174

ietf/name/fixtures/names.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16326,7 +16326,7 @@
1632616326
"fields": {
1632716327
"command": "xym",
1632816328
"switch": "--version",
16329-
"time": "2023-01-24T08:09:45.071Z",
16329+
"time": "2023-01-31T08:09:46.678Z",
1633016330
"used": true,
1633116331
"version": "xym 0.6.2"
1633216332
},
@@ -16337,7 +16337,7 @@
1633716337
"fields": {
1633816338
"command": "pyang",
1633916339
"switch": "--version",
16340-
"time": "2023-01-24T08:09:45.405Z",
16340+
"time": "2023-01-31T08:09:47.011Z",
1634116341
"used": true,
1634216342
"version": "pyang 2.5.3"
1634316343
},
@@ -16348,7 +16348,7 @@
1634816348
"fields": {
1634916349
"command": "yanglint",
1635016350
"switch": "--version",
16351-
"time": "2023-01-24T08:09:45.421Z",
16351+
"time": "2023-01-31T08:09:47.028Z",
1635216352
"used": true,
1635316353
"version": "yanglint SO 1.9.2"
1635416354
},
@@ -16359,7 +16359,7 @@
1635916359
"fields": {
1636016360
"command": "xml2rfc",
1636116361
"switch": "--version",
16362-
"time": "2023-01-24T08:09:46.384Z",
16362+
"time": "2023-01-31T08:09:48.031Z",
1636316363
"used": true,
1636416364
"version": "xml2rfc 3.16.0"
1636516365
},

ietf/utils/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def make_immutable_base_data():
7272
irtf = create_group(name="IRTF", acronym="irtf", type_id="irtf")
7373
create_person(irtf, "chair")
7474

75-
rsab = create_group(name="RSAB", acronym="rsab", type_id="rfcedtyp")
75+
rsab = create_group(name="RSAB", acronym="rsab", type_id="edappr")
7676
p = create_person(rsab, "chair")
7777
p.role_set.create(group=rsab, name_id="member", email=p.email())
7878

0 commit comments

Comments
 (0)