-
Notifications
You must be signed in to change notification settings - Fork 343
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
User Feature: Session Reminder and Configuration as a User Default Settings #7841
User Feature: Session Reminder and Configuration as a User Default Settings #7841
Conversation
3c94d59
to
85997c0
Compare
44b26e4
to
20438d5
Compare
components/ILIAS/Authentication/classes/class.ilSessionReminder.php
Outdated
Show resolved
Hide resolved
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.
Thx @fhelfer for your contribution.
I added some minor remarks for the changes in the the Authentication
component.
We should have a chat about the naming of the *LeadTime
-methods, which I am not so happy with.
getGlobalSessionReminderLeadTime
getAcceptableLeadTime
getLocalSessionLeadTime
getMaxLeadTime
The first and last names are more or less self-explanatory, but: What is the concept of "acceptable"? "acceptable" for whom? Do you mean something like "effective", and what do you mean by "local"? Do you mean something like individual
?
Best regards,
Michael
components/ILIAS/Authentication/classes/class.ilSessionReminder.php
Outdated
Show resolved
Hide resolved
components/ILIAS/Authentication/classes/class.ilSessionReminder.php
Outdated
Show resolved
Hide resolved
components/ILIAS/Authentication/classes/class.ilSessionReminder.php
Outdated
Show resolved
Hide resolved
components/ILIAS/Authentication/classes/class.ilSessionReminder.php
Outdated
Show resolved
Hide resolved
components/ILIAS/User/classes/Setup/Migration/class.ilUserDB10UpdateSteps.php
Outdated
Show resolved
Hide resolved
components/ILIAS/User/classes/Setup/Migration/class.ilUserDB10UpdateSteps.php
Outdated
Show resolved
Hide resolved
components/ILIAS/User/classes/Setup/Migration/class.ilUserDB10UpdateSteps.php
Outdated
Show resolved
Hide resolved
components/ILIAS/User/templates/default/tpl.std_fields_settings_row.html
Outdated
Show resolved
Hide resolved
components/ILIAS/User/classes/Setup/Migration/class.ilUserDB10UpdateSteps.php
Outdated
Show resolved
Hide resolved
components/ILIAS/User/classes/Setup/Migration/class.ilUserDB10UpdateSteps.php
Outdated
Show resolved
Hide resolved
components/ILIAS/User/classes/Setup/Migration/class.ilUserDB10UpdateSteps.php
Outdated
Show resolved
Hide resolved
components/ILIAS/User/classes/Setup/Migration/class.ilUserDB10UpdateSteps.php
Outdated
Show resolved
Hide resolved
e1af724
to
e5e247a
Compare
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.
Hi @fhelfer
Thank you very much for this PR! I will wait with merging until this feature pr is merged #8116, this will also mean, that you will need to rebase to consolidate the user update steps. So you might want to wait until the merge, before working on this again. When you consolidate this, please make sure to not add use
statements for classes in the global namespace.
I would like the following changes, but let me know, if you see something wrong with them:
- I don't like this getter here. "getSelect" has an abysmal semantic value already, but "getInput" is even worse. I would kindly ask you to change this to something more specific and to only retrieve the 'default_session_reminder', this way at least I get, what we are doing here.
- On the other hand this here seems oddly over specific: We have "selection", and then "session_reminder_lead_time". Shouldn't this rather be "numeric"?
One very small additional change:
- Could you please remove the camelCase here as you are touching this variable anyway.
Other then this I think things are fine. I will make a little smoke test after the changes and the rebase.
Thanks again and best,
@kergomard
e5e247a
to
aa6924d
Compare
Thank you very much for the fixes @fhelfer ! I now did some smoke tests and sadly there is still something wrong (sorry for missing it, when reading through the code): I assume the changes in |
This is right |
00fddd1
to
e7bdc08
Compare
Hey @kergomard, would you have another look at it. I also added dbupdatestep to remove session_reminder_enabled from usr_pref. Thx and Best @fhelfer |
Thank you very much @fhelfer ! |
Thank you very much, @kergomard, @fhelfer and @mjansenDatabay 😊 |
This PR adds a new User Default Setting to enable/disable the option to configure a Session Reminder time in User Settings.
Feature Wiki: https://docu.ilias.de/goto_docu_wiki_wpage_8270_1357.html