Skip to content

Commit 1778652

Browse files
authored
fix: allow 90m session requests. Prompt for cannot meet at time reasoning. (ietf-tools#4345)
* fix: allow 90m session requests. Prompt for cannot meet at time reasoning. * test: adjust tests to match new acts_like_wg default.
1 parent 822a572 commit 1778652

4 files changed

Lines changed: 4 additions & 9 deletions

File tree

ietf/meeting/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def _day_choices(days):
666666
class DurationChoiceField(forms.ChoiceField):
667667
def __init__(self, durations=None, *args, **kwargs):
668668
if durations is None:
669-
durations = (3600, 7200)
669+
durations = (3600, 5400, 7200)
670670
super().__init__(
671671
choices=self._make_choices(durations),
672672
*args, **kwargs,

ietf/meeting/tests_schedule_forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def test_locations(self):
264264
class DurationChoiceFieldTests(TestCase):
265265
def test_choices_default(self):
266266
f = DurationChoiceField()
267-
self.assertEqual(f.choices, [('', '--Please select'), ('3600', '1 hour'), ('7200', '2 hours')])
267+
self.assertEqual(f.choices, [('', '--Please select'), ('3600', '1 hour'), ('5400', '1 hour 30 minutes'), ('7200', '2 hours')])
268268

269269
def test_choices(self):
270270
f = DurationChoiceField([60, 1800, 3600, 5400, 7260, 7261])
@@ -343,7 +343,7 @@ def test_duration_options(self):
343343
self.assertTrue(self.group.features.acts_like_wg)
344344
self.assertEqual(
345345
SessionDetailsForm(group=self.group).fields['requested_duration'].choices,
346-
[('', '--Please select'), ('3600', '1 hour'), ('7200', '2 hours')],
346+
[('', '--Please select'), ('3600', '1 hour'), ('5400', '1 hour 30 minutes'), ('7200', '2 hours')],
347347
)
348348
self.group.features.acts_like_wg = False
349349
self.group.features.save()

ietf/secr/sreq/forms.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
NUM_SESSION_CHOICES = (('','--Please select'),('1','1'),('2','2'))
2323
SESSION_TIME_RELATION_CHOICES = (('', 'No preference'),) + Constraint.TIME_RELATION_CHOICES
2424
JOINT_FOR_SESSION_CHOICES = (('1', 'First session'), ('2', 'Second session'), ('3', 'Third session'), )
25-
# Used for traditional face-to-face meetings:
26-
# LENGTH_SESSION_CHOICES = (('','--Please select'),('1800','30 minutes'),('3600','1 hour'),('5400','1.5 hours'), ('7200','2 hours'),('9000','2.5 hours'))
27-
# Used for totally virtual meetings during COVID-19:
28-
# LENGTH_SESSION_CHOICES = (('','--Please select'),('3000','50 minutes'),('6000','100 minutes'))
29-
LENGTH_SESSION_CHOICES = (('','--Please select'),('3600','60 minutes'),('7200','120 minutes'))
3025

3126
# -------------------------------------------------
3227
# Helper Functions

ietf/secr/templates/includes/sessions_request_form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
</td>
7979
</tr>
8080
<tr class="bg1">
81-
<td>Times during which this WG can <strong>not</strong> meet:</td>
81+
<td>Times during which this WG can <strong>not</strong> meet:<br>Please explain any selections in Special Requests below.</td>
8282
<!-- [html-validate-disable-block no-redundant-for -- FIXME: form renders with redundant for attributes] -->
8383
<td>{{ form.timeranges.errors }}{{ form.timeranges }}</td>
8484
</tr>

0 commit comments

Comments
 (0)