Skip to content

Commit aaa8180

Browse files
author
Sasha Romijn
committed
Add a flag for groups to indicate meetings should always be seen as area meetings.
This impacts scheduling, because area meetings should not conflict with any other session from their area. However, several area meetings have type WG, and therefore look like ordinary WGs apart from meeting scheduling conflicts. This new flag will allow distinguishing regular WGs from WGs whose meetings must not conflict with anything else from their area. The included migration sets this flag for the currently known area meetings: dispatch, gendispatch, intarea, opsarea/opsawg, rtgarea, rtgwg, saag, secdispatch, tsvarea, irtfopen - Legacy-Id: 17290
1 parent a227813 commit aaa8180

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright The IETF Trust 2020', 'All Rights Reserved
2+
# -*- coding: utf-8 -*-
3+
# Generated by Django 1.11.27 on 2020-02-12 07:11
4+
from __future__ import unicode_literals
5+
6+
from django.db import migrations, models
7+
8+
9+
def forward(apps, schema_editor):
10+
Group = apps.get_model('group', 'Group')
11+
initial_area_groups = ['dispatch', 'gendispatch', 'intarea', 'opsarea/opsawg', 'rtgarea', 'rtgwg', 'saag', 'secdispatch', 'tsvarea', 'irtfopen']
12+
Group.objects.filter(acronym__in=initial_area_groups).update(meeting_seen_as_area=True)
13+
14+
15+
def reverse(apps, schema_editor):
16+
pass
17+
18+
19+
class Migration(migrations.Migration):
20+
21+
dependencies = [
22+
('group', '0022_populate_uses_milestone_dates'),
23+
]
24+
25+
operations = [
26+
migrations.AddField(
27+
model_name='group',
28+
name='meeting_seen_as_area',
29+
field=models.BooleanField(default=False, help_text='For meeting scheduling, should be considered an area meeting, even if the type is WG'),
30+
),
31+
migrations.AddField(
32+
model_name='grouphistory',
33+
name='meeting_seen_as_area',
34+
field=models.BooleanField(default=False, help_text='For meeting scheduling, should be considered an area meeting, even if the type is WG'),
35+
),
36+
migrations.RunPython(forward, reverse),
37+
]

ietf/group/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class GroupInfo(models.Model):
3636
name = models.CharField(max_length=80)
3737
state = ForeignKey(GroupStateName, null=True)
3838
type = ForeignKey(GroupTypeName, null=True)
39+
meeting_seen_as_area = models.BooleanField(default=False, help_text='For meeting scheduling, should be considered an area meeting, even if the type is WG')
3940
parent = ForeignKey('Group', blank=True, null=True)
4041
description = models.TextField(blank=True)
4142
list_email = models.CharField(max_length=64, blank=True)

0 commit comments

Comments
 (0)