-
Notifications
You must be signed in to change notification settings - Fork 226
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
Unable to change start/end dates of course in web frontend #1376
Comments
Hi thank you for reporting this issue. |
Here are the start/end date fields. No matter what I do, those default values don't change. Here's what happens when I click on the field. And here's the full stack dump whenever I attempt to save:
|
Hi! It looks like some javascript issue in our codebase with initializing date pickers. I will soon patch a PR for this. Thanks for the detailed feedback! |
The interesting bit is that the date picker for the assignments worked just
fine. While I can’t adjust the settings for an entire course, I was able to
add assignments and set start and end dates without a problem.
On Sat, Sep 11, 2021 at 22:48 xinyis991105 ***@***.***> wrote:
Hi! It looks like some javascript issue in our codebase with initializing
date pickers. I will soon patch a PR for this. Thanks for the detailed
feedback!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1376 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABBB6LP3L6FBDS4ZY5YL63UBQIHVANCNFSM5D3JKPQQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
iPhone’d
|
This is due to the fact that we use datetime picker for assignments whereas date picker is used for the course setting. There is some issue regarding parsing different formats. Thanks for the observation! |
I'm trying to install the latest version of Autolab (via docker-compose) for University of Georgia. I'm using an Ubuntu 18.04 VM.
Installation is fine and the website is functional--it is SSL protected and I can log in as the administrator. The problem is after creating the new course, I go into Manage Course -> Admin Course -> Course settings to update the course details.
First, the "start date" and "end date" fields appear only with the default text:
F j, 2021
The Javascript date selector will pop up when I click the field, but the actual field content won't change even after selecting a date from the pop-up. After selecting a date, if I click the field again and the selector pops up again, it will highlight the date I chose, so the Javascript selector is clearly working even if the field itself isn't updating.However, this creates a problem when I attempt to submit the form: I get a 500 error. Here is the error information:
(similar to this ticket)
and the first line of the stacktrace is
/home/app/webapp/app/models/course.rb:113:in 'order_of_dates'
, clearly indicating that the form values that are submitted to the server are still the "default" values (i.e.Time.now
for both), which is why the error is tripping in the first place. Meaning even though the Javascript values are updated from using the pop-up selector, those values don't seem to propagate to the HTML form.This seems like something that should have a straightforward fix but I can't find it. Assistance would be greatly appreciated.
I considered editing the course config directly in the autolab docker container at
/home/app/webapp/courseConfig
but either that .rb file isn't where the start/end dates are supposed to go, or by virtue of the failed form submission those fields haven't been initialized in the .rb file, and I'm not sure what the format is supposed to be.The text was updated successfully, but these errors were encountered: