-
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
[#12494] Allow instructors to use start/end dates up to 12 months in future #12498
[#12494] Allow instructors to use start/end dates up to 12 months in future #12498
Conversation
Hi @Zxun2, I'm unable to save a session if I set the start date to be 12 months later... can you take a look? This occurs both when creating a new session and editing a session:
Not sure if you want to include time in it as well, or if you think it's not needed: |
…m/Zxun2/teammates into zongxun/use-start-dates-in-future
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.
a few comments, and also I would like to suggest that it might be better from a UX perspective to prevent selection of dates/times on the frontend, rather than surfacing invalid datetimes through the BE as error toasts, but this could be in a seperate PR.
src/web/app/components/session-edit-form/session-edit-form.component.ts
Outdated
Show resolved
Hide resolved
src/web/app/pages-instructor/instructor-sessions-page/instructor-sessions-page.component.ts
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.
2 small nits! Other than that it looks great (: Pinging @domlimm and @cedricongjh for review
src/web/app/pages-instructor/instructor-sessions-page/instructor-sessions-page.component.ts
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.
lgtm, once the nits by @weiquu are fixed!
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.
LGTM!
Edit: sorry just spotted a small bug....... will re-review in a bit
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.
One small edge case to fix!
…m/Zxun2/teammates into zongxun/use-start-dates-in-future
src/web/app/pages-instructor/instructor-session-base-page.component.ts
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.
LGTM!
@samuelfangjw @zhaojj2209 can we do a release with this feature? I'm receiving more user inquiries about this restriction. |
Fixes #12494
Outline of solution
Demo
Safety.net.and.date.range.for.Instructor.Sessions.mp4