classroom icon indicating copy to clipboard operation
classroom copied to clipboard

New Assignment Creation Page Does not Work

Open waqarsaleem opened this issue 5 years ago • 6 comments

Describe the bug The new assignment creation page, see below, has lost the following functionality

  • detect repository names from GitHub
  • allow custom prefix image

To Reproduce Steps to reproduce the behavior:

  1. Go to Create Individual Assignment
  2. Click on pen icon next to repository prefix
  3. Also enter repository name for starter code

Expected behavior

  • The custom prefix seems to get lost each time I come back to the page, e.g. to change some setting. This should not happen.
  • The starter code field does not automatically detect repository names. It should.
  • Sometimes, entering all the fields and clicking on 'Create Assignment' just reloads the page with some of the settings lost and no assignment created.
  • Other times, it gives a 404 error. image

Additional context It seems the new page has been deployed without proper testing. Today is the assignment release data and I am panicking.

waqarsaleem avatar Feb 03 '20 18:02 waqarsaleem

Hi @waqarsaleem , I'm taking a look at these issues now. Have you been able to create any assignments despite the issues with the starter code and the custom prefix?

spinecone avatar Feb 03 '20 18:02 spinecone

This is the first time I am seeing and using this page. I think an assignment did get created but that was with minimal settings for testing when regular creation failed. Its settings need to be changed, but I keep encountering the same issues when I try to edit it.

waqarsaleem avatar Feb 03 '20 18:02 waqarsaleem

In case you need to check it, this is the assignment page, https://classroom.github.com/classrooms/49143948-cs-113-discrete-mathematics-spring-2020/assignments/cs113-sp20-hw2

waqarsaleem avatar Feb 03 '20 18:02 waqarsaleem

Actually, I had not paid attention to the URL until I copied it here just now. The URL contains the custom prefix I want. The deadline was not set when creating the assignment but I think the source repository was. I will go ahead and share the invite link for now and will enter the deadline when the issues are resolved.

waqarsaleem avatar Feb 03 '20 19:02 waqarsaleem

You will notice in the first screenshot above that the space for the prefix is shaded. That is the default behavior when I edit the created assignment. It gets populated with the default name when I click in the Assignment Title box. I would expect it to be populated with the stored custom prefix. The repository I entered for the started code is remembered but creating after setting the deadline either leads to a reload of the page or a 404.

waqarsaleem avatar Feb 03 '20 19:02 waqarsaleem

We've just deployed a revert to the changes on the assignment form and it should be working now. Let us know if you experience any other issues.

spinecone avatar Feb 03 '20 19:02 spinecone