Skip to content
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

when copying sets from a new course and adding an instructor, assign … #2513

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

Alex-Jordan
Copy link
Contributor

…all sets to that instructor

In 2.19, when you are creating a new course, you have the option to select an existing course and copy all of the sets into the new course. You also (as you've always been able to do) have the option of adding one "professor" level user to the new course. As things stand, the new professor will not have all of the copied sets assigned to them.

This commit changes it so that they will get all of those sets assigned to them.

I can't see a scenario where you want to copy sets from another course, but would not want them to be assigned to the new instructor. Maybe there is such a scenario. But I think it would be much more common to want that instructor to have everything assigned to them.

@Alex-Jordan
Copy link
Contributor Author

I have a few more changes coming that have been motivated by recent experiences using 2.19 with PCC and Runestone. They could all have hotfix counterparts, but as with something before, I'm unsure if we are still doing that. Are we just rolling with more hotfixes through August? (That's fine with me.)

@drgrice1
Copy link
Sponsor Member

If the changes are not too great and are something that we want to get in, then we can still hotfix.

@Alex-Jordan
Copy link
Contributor Author

I reviewed the list of other things I have, and they are all either too big to accomplish anytime soon, or I think will be controversial. So please forget when I said:

I have a few more changes coming

Copy link
Sponsor Member

@drgrice1 drgrice1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@Alex-Jordan
Copy link
Contributor Author

Thanks, both this and the hotfix branch have the changes you suggested now.

Copy link
Contributor

@somiaj somiaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works in my tests, and assigning sets to the initial professor will probably help out, especially newer professors.

@somiaj
Copy link
Contributor

somiaj commented Aug 17, 2024

Just some comments in my testing of this. First I figured out that the first name, last name, and email address of this new prof that is being added are required (as I didn't include them and got an error), though the email address isn't validated for form, it just needs to be non blank. Not a big deal, but in comparison to adding a user inside a course only the username is needed, and nothing else is required.

Second, What about assigning achievements to this new professor that are copied. I am unsure what would be preferable but am slightly on the side of not assigning them, I just thought I would mention this as well.

@Alex-Jordan
Copy link
Contributor Author

I made it so the achievements are also assigned to the new instructor.

@drgrice1 drgrice1 merged commit f448b97 into openwebwork:develop Aug 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants