linuxsoftware / ls.joyous

A calendar application for Wagtail
BSD 3-Clause "New" or "Revised" License
74 stars 35 forks source link

Feature for setting multi time-ranges in same day #37

Open irugoy opened 4 years ago

irugoy commented 4 years ago

Hi there, thanks for this great app, it looks quite promising.

We have been working in several projects with Agendas and there is a real need to have same event running in several times of same day, kind of Guided Tours or Talks in a Museum or so.

Do you have in mind this improvement, I think an approach could be to switching to use an InlinePanel for the time range, allowing user to add more than once.

Thanks in advance,

linuxsoftware commented 4 years ago

Having one event with multiple from and to times is an interesting idea. Not something that I have seen the need for up until now.

With Joyous (currently) you could have each time slot as a separate event page, but then link them together with a group page. e.g. http://demo.linuxsoftware.nz/museum-tour/ (And if desired the model used for the group page can be changed using JOYOUS_GROUP_MODEL.) Would that suit your need?

This'd be better if clicking on the event link on a calendar took the user straight to the group page. That could be done by using Wagtail's before_serve_page or overriding the event page templates. But maybe Joyous should give the group model some say in how its event pages are served. I can look at adding that.

irugoy commented 4 years ago

The issue is that when we talk about exactly same event running in different times in same day (same title, image, description and so) is not very convenient from the admin-user perspective to think on the need of create Event duplicates an then group them together some how.

It'll be very nice to have a way to define multiple times as per Event level (ie. InlinePanel or Streamfield of time ranges)

linuxsoftware commented 4 years ago

Thank you, I understand.

In your ideal solution:

  1. Would every event type (SimpleEvent, MultidayEvent, RecurringEvent, MultidayRecurringEvent, Postponement) have multiple timeslots?
  2. Would it be possible to leave the time_from or time_to fields blank on a time slot? Would blank fields still mean beginning-of-day to end-of-day?
  3. For a multi-day event does every timeslot start on the date_from and end on the date_to?
  4. Is it valid to have over-lapping timeslots?
  5. Is it valid to have duplicated timeslots?
  6. Would each timeslot appear separately on the calendar?
  7. When exported to iCal / RSS would each timeslot be exported as a separate vevent / entry?
  8. When imported from iCal should vevents on the same day and with the same title and description (but different times) be combined into one event with multiple timeslots?
  9. Does a Cancellation apply to all the timeslots on a day?
  10. Can a Postponement/RescheduleEvent change the number of timeslots?
  11. Should it be possible to Cancel or Postpone just one timeslot out of many?

No promises that I will add this, but it is good to understand what is wanted.

irugoy commented 4 years ago

Thank you, I understand. Thank you for your quick response, here my answers in bold In your ideal solution:

  1. Would every event type (SimpleEvent, MultidayEvent, RecurringEvent, MultidayRecurringEvent, Postponement) have multiple timeslots? I imagine that applies only to SimpleEvent, RecurringEvent (I don't get the idea of Postponement here)
  2. Would it be possible to leave the time_from or time_to fields blank on a time slot? Would blank fields still mean beginning-of-day to end-of-day? No
  3. For a multi-day event does every timeslot start on the date_from and end on the date_to? It should not apply to multi-day events
  4. Is it valid to have over-lapping timeslots? No
  5. Is it valid to have duplicated timeslots? No
  6. Would each timeslot appear separately on the calendar? Yes
  7. When exported to iCal / RSS would each timeslot be exported as a separate vevent / entry? Yes
  8. When imported from iCal should vevents on the same day and with the same title and description (but different times) be combined into one event with multiple timeslots? No, it should look as different events (with same details)
  9. Does a Cancellation apply to all the timeslots on a day? Time-slots cancelled separately from the others in same event
  10. Can a Postponement/RescheduleEvent change the number of timeslots? Yes
  11. Should it be possible to Cancel or Postpone just one timeslot out of many? Yes No promises that I will add this, but it is good to understand what is wanted.