fix: restore generation of rswg/rsab chair aliases ()

This commit is contained in:
Robert Sparks 2023-02-09 16:57:42 -06:00 committed by GitHub
parent dd7bed47b0
commit 6bbad15b3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 11 deletions
ietf

View file

@ -534,7 +534,7 @@ class DocExtResourceFactory(factory.django.DjangoModelFactory):
class EditorialDraftFactory(BaseDocumentFactory):
type_id = 'draft'
group = factory.SubFactory('ietf.group.factories.GroupFactory',acronym='rswg', type_id='rfcedtyp')
group = factory.SubFactory('ietf.group.factories.GroupFactory',acronym='rswg', type_id='edwg')
stream_id = 'editorial'
@factory.post_generation

View file

@ -26,8 +26,8 @@ from ietf.utils.aliases import dump_sublist
DEFAULT_YEARS = 5
ACTIVE_STATES=['active', 'bof', 'proposed']
GROUP_TYPES=['wg', 'rg', 'rag', 'dir', 'team', 'review', 'program', 'rfcedtyp']
NO_AD_GROUP_TYPES=['rg', 'rag', 'team', 'program', 'rfcedtyp']
GROUP_TYPES=['wg', 'rg', 'rag', 'dir', 'team', 'review', 'program', 'rfcedtyp', 'edappr', 'edwg'] # This should become groupfeature driven...
NO_AD_GROUP_TYPES=['rg', 'rag', 'team', 'program', 'rfcedtyp', 'edappr', 'edwg']
IETF_DOMAIN=['ietf.org', ]
IRTF_DOMAIN=['irtf.org', ]
IAB_DOMAIN=['iab.org', ]

View file

@ -71,7 +71,7 @@ class GroupPagesTests(TestCase):
self.assertContains(r, group.name)
self.assertContains(r, escape(group.ad_role().person.name))
for t in ('rg','area','ag', 'rag', 'dir','review','team','program','iabasg','adm','rfcedtyp'):
for t in ('rg','area','ag', 'rag', 'dir','review','team','program','iabasg','adm','rfcedtyp'): # See issue 5120
g = GroupFactory.create(type_id=t,state_id='active')
if t in ['dir','review']:
g.parent = GroupFactory.create(type_id='area',state_id='active')

View file

@ -167,8 +167,8 @@ def is_authorized_in_doc_stream(user, doc):
group_req = Q(group__acronym=doc.stream.slug)
elif doc.stream.slug == "editorial":
group_req = Q(group=doc.group) | Q(group__acronym='rsab')
if doc.group.type.slug in ("individ", "rfcedtype"):
docman_roles = GroupFeatures.objects.get(type_id="rfcedtyp").docman_roles
if doc.group.type.slug in ("individ", "edappr"):
docman_roles = GroupFeatures.objects.get(type_id="edappr").docman_roles
else:
group_req = Q() # no group constraint for other cases

View file

@ -16326,7 +16326,7 @@
"fields": {
"command": "xym",
"switch": "--version",
"time": "2023-01-24T08:09:45.071Z",
"time": "2023-01-31T08:09:46.678Z",
"used": true,
"version": "xym 0.6.2"
},
@ -16337,7 +16337,7 @@
"fields": {
"command": "pyang",
"switch": "--version",
"time": "2023-01-24T08:09:45.405Z",
"time": "2023-01-31T08:09:47.011Z",
"used": true,
"version": "pyang 2.5.3"
},
@ -16348,7 +16348,7 @@
"fields": {
"command": "yanglint",
"switch": "--version",
"time": "2023-01-24T08:09:45.421Z",
"time": "2023-01-31T08:09:47.028Z",
"used": true,
"version": "yanglint SO 1.9.2"
},
@ -16359,7 +16359,7 @@
"fields": {
"command": "xml2rfc",
"switch": "--version",
"time": "2023-01-24T08:09:46.384Z",
"time": "2023-01-31T08:09:48.031Z",
"used": true,
"version": "xml2rfc 3.16.0"
},

View file

@ -72,7 +72,7 @@ def make_immutable_base_data():
irtf = create_group(name="IRTF", acronym="irtf", type_id="irtf")
create_person(irtf, "chair")
rsab = create_group(name="RSAB", acronym="rsab", type_id="rfcedtyp")
rsab = create_group(name="RSAB", acronym="rsab", type_id="edappr")
p = create_person(rsab, "chair")
p.role_set.create(group=rsab, name_id="member", email=p.email())