Skip to content
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

Add time component to slot's hideuntil setting #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tezvi
Copy link

@tezvi tezvi commented Jan 2, 2023

Changed hideuntil setting to include time component. This is a one liner.

Currently we are not able to be more precise when exactly a slot should be visible to students. Especially in situation with multiple slots within a same day. Students will see all slots at once at 00:00 and book them immediately. To prevent that and introduce "fair booking" a time component should be used.

@tezvi
Copy link
Author

tezvi commented Aug 20, 2023

@bostelm Any chance of merging this?

@bostelm
Copy link
Owner

bostelm commented Aug 25, 2023

Hello
thanks for that patch, and it's certainly easily to merge - that doesn't however mean it's necessarily desirable.
Normally teachers would fill the "hideuntil" field when creating a series of slots, not edit it in individual slots (at least I've never done so). But the "series of slots" form allows only midnight as the start time. Hence I feel I'd be creating an inconsistency here.
I think this feature needs a bit more thought.

@tezvi
Copy link
Author

tezvi commented Sep 9, 2023

Hi @bostelm!

Thanks for your feedback.

Normally teachers would fill the "hideuntil" field when creating a series of slots, not edit it in individual slots (at least I've never done so).

Well in our Moodle environment that is actually a very common case. One employee opens a series of slots with "general" parameters, another one might choose to limit a certain slot afterwards because of various reasons. Honestly I don't see a problem in having more detailed options in a single slot edit form but of course I could be wrong.

But the "series of slots" form allows only midnight as the start time.

Perhaps we should change it there as well? Are you refering to hideuntilrel form element?

After all, it seems very limited to discard a time component as midnight is not flexible enough and might not work for everyone's needs. Especially when fix is relatively easy and won't disrupt AS-IS usage.

Thanks for your time!

@tezvi tezvi closed this Sep 9, 2023
@tezvi tezvi reopened this Sep 9, 2023
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.

2 participants