New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link objects to reservation occurrences #6114
Conversation
indico/migrations/versions/20231222_1408_b37cbc4bb129_link_events_to_reservation_occurrences.py
Outdated
Show resolved
Hide resolved
d171898
to
2a85d16
Compare
2a85d16
to
ae8a2d6
Compare
ae8a2d6
to
c38a2f4
Compare
851b553
to
bf29b49
Compare
indico/migrations/versions/20231222_1408_b37cbc4bb129_link_events_to_reservation_occurrences.py
Outdated
Show resolved
Hide resolved
bf29b49
to
3adaeae
Compare
5d046ab
to
765bc55
Compare
indico/migrations/versions/20231222_1408_b37cbc4bb129_link_events_to_reservation_occurrences.py
Outdated
Show resolved
Hide resolved
indico/migrations/versions/20231222_1408_b37cbc4bb129_link_events_to_reservation_occurrences.py
Outdated
Show resolved
Hide resolved
@@ -80,7 +80,7 @@ def _topmenu_items(sender, **kwargs): | |||
@signals.menu.items.connect_via('event-management-sidemenu') | |||
def _sidemenu_items(sender, event, **kwargs): | |||
if config.ENABLE_ROOMBOOKING and event.can_manage(session.user): | |||
yield SideMenuItem('room_booking', _('Room booking'), url_for('rb.event_booking_list', event), 50, | |||
yield SideMenuItem('room_booking', _('Room bookings'), url_for('rb.event_booking_list', event), 50, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure i like this change. IMHO this is simple about the process of booking rooms. so the title there does not imply single/multiple bookings..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My idea was that this view will evolve in a place for managing room bookings associated to the event. When implementing the feature request in #6046, I will most likely suggest adding a way to link existing bookings to the event/sessions from this view. I can further imagine this view to also allow unlinking bookings. Maybe is it premature to change menu entry name?
c499244
to
fc84e7b
Compare
indico/migrations/versions/20231222_1408_b37cbc4bb129_link_events_to_reservation_occurrences.py
Outdated
Show resolved
Hide resolved
I found there's something missing in this PR. Since reservations can now be linked to more than one object, we need to adjust the "This booking is linked to an event:" box. |
7b12d17
to
2271e2d
Compare
79af480
to
b69da3a
Compare
1203c8b
to
757fd62
Compare
- do not return all link details in reservation data (this would reveal event titles to people without access) - simplify code to serialize links
Even the old `event` one was apparently unused, the new one is even less likely to be needed. And if we do need it at some point, we can add it back.
Also limit data in schema to what's actually needed
757fd62
to
8ad8e09
Compare
Closes: #6113