Skip to content

Limit set of allowed event durations in CfP#651

Merged
manno merged 4 commits intofrab:masterfrom
elad-eyal:config_allowed_durations
Jul 12, 2020
Merged

Limit set of allowed event durations in CfP#651
manno merged 4 commits intofrab:masterfrom
elad-eyal:config_allowed_durations

Conversation

@elad-eyal
Copy link
Collaborator

@elad-eyal elad-eyal commented Nov 16, 2019

This PR address #608 and #304 :

  1. Add a configurable set of event duration acceptable in cfp. The list of options is computed based on the "timeslot duration" and the "max number of timeslots". The "default event duration" is always acceptable. For conferences created before applying this PR, the default is that all duration are acceptable (same as legacy behavior). For new conferences, the default is that only the "default event duration" is allowed, and other durations need to be opt-in.

  2. cfp event form is changed to only accept these values. Crew's event form is not affected.

  3. cfp event form will not ask users to select duration if there is only 1 option available.

  4. Rename "timeslots" to "duration" since we always present the value in minutes, never in timeslots.

  5. Similar to "timeslot_duration" and "default event duration" : "allowed event durations" are configurable via the parent conference in case of a sub-conference.

  6. Add validator, that a conference "default timeslot" (default duration) must be <= "max timeslots".

image

image

image

@elad-eyal elad-eyal force-pushed the config_allowed_durations branch 3 times, most recently from 72e2f8e to a7fd75a Compare November 16, 2019 18:13
@elad-eyal elad-eyal changed the title Config allowed duration Limit set of allowed event durations in CfP Nov 16, 2019
@elad-eyal elad-eyal force-pushed the config_allowed_durations branch from a7fd75a to 807a88f Compare November 16, 2019 20:01
@elad-eyal elad-eyal force-pushed the config_allowed_durations branch 3 times, most recently from 6f20831 to aaddab6 Compare December 14, 2019 21:17
@elad-eyal elad-eyal requested a review from erdgeist February 2, 2020 16:43
@elad-eyal elad-eyal force-pushed the config_allowed_durations branch from aaddab6 to 0d5da4b Compare February 15, 2020 16:43
@elad-eyal elad-eyal force-pushed the config_allowed_durations branch from addf6bc to 944b1d4 Compare February 16, 2020 14:19
@emirisman
Copy link
Contributor

This would make lots of stuff easier. Is there more work required or could this be merged?

@elad-eyal
Copy link
Collaborator Author

Ready!

@manno manno merged commit 53d4e7e into frab:master Jul 12, 2020
elad-eyal added a commit to elad-eyal/frab that referenced this pull request Sep 17, 2020
following frab#651 - migrating some conference might fail since mysql limits
allowed_durations_minutes_csv to 255 characters
@elad-eyal elad-eyal deleted the config_allowed_durations branch October 9, 2020 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants