-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Migrate timezone value from feedback sessions to courses #5928 #8759
Migrate timezone value from feedback sessions to courses #5928 #8759
Conversation
04ea575
to
cf9d8ee
Compare
1a9dda3
to
dd4ce87
Compare
d02415a
to
f610bf5
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.
Just some minor changes.
* - Conversion of all time fields to UTC | ||
* - Conversion of the timeZone field to a ZoneId string following the course time zone; removal of the timeZoneDouble field | ||
* - Population of any missing is*EmailEnabled booleans to default value true | ||
* - Adjustment of the results visible from time TIME_REPRESENTS_NEVER -> TIME_REPRESENTS_LATER |
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.
Let's make this <ul>
and <li>
s
double offset; | ||
if (timeZone.equals(String.valueOf(Const.INT_UNINITIALIZED))) { | ||
offset = timeZoneDouble; | ||
Course course = Ref.create(Key.create(Course.class, courseId)).get(); |
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.
This will be removed after data migration, right?
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.
Yup!
@wkurniawan07 I realised that editing the course time zone after a session is set up can lead to arbitrary start/end/visible/publish times that may not end with :00 or :59. Just pushed a commit to ensure that such times are properly handled by the sessions form. |
6095c1d
to
9aad595
Compare
9aad595
to
52827dd
Compare
No longer an input but a static field Similar to course name, update time zone display dynamically upon course selection change
Add new course and session for DST test case
…opy action tests Edited time zone for two courses to facilitate testing Updated dependent test HTML file
…with the "23:59 or minute is 0 and hour is not 0" contract These times might now validly be set if the course time zone is edited after sessions have already been set up E.g. a session with end time of 23:59 in an Asia/Kathmandu course would have an end time of 18:14 if the course time zone is edited to UTC Such an end time would be selected as 18:00 in the sessions form dropdown (though it would still properly display as 18:14 everywhere else)
52827dd
to
e6cb323
Compare
Previously, it would always return false
dd83c51
to
b8c3097
Compare
Fixes #5928, part of #8448
Outline of Solution
Other Changes