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

Add category configuring, and default accept unofficial to true for active elements #166

Merged
merged 3 commits into from
Jun 13, 2023

Conversation

lainets
Copy link
Contributor

@lainets lainets commented Jun 8, 2023

Description

What?

Add easier category configuring, and accept unofficial submissions by default to active elements exercises without max submissions.

Why?

To close #165.

How?

Active elements with max submissions are put in a separate category "active elements with max submissions" that doesn't accept unofficial submisions by default.

Closes #162
Closes #164
Closes #165

Testing

What type of test did you run?

  • Accessibility test using the WAVE extension.
  • Django unit tests.
  • Selenium tests.
  • Other test. (Add a description below)
  • Manual testing.

Tried changing the category options in conf.py, and checked that the changes happen in A+. Also checked that "active elements" category accepts unofficial submission by default and that it can be overridden in conf.py.

@lainets
Copy link
Contributor Author

lainets commented Jun 8, 2023

Of note is whether the solution to the max submissions/accept unofficial submissions problem is satisfactory. Does changing the category of active elements exercises with max submissions cause issues to some courses?

@markkuriekkinen markkuriekkinen self-assigned this Jun 12, 2023
@markkuriekkinen markkuriekkinen self-requested a review June 12, 2023 14:08
Copy link
Collaborator

@markkuriekkinen markkuriekkinen left a comment

Choose a reason for hiding this comment

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

Great, this looks good! I have a couple of comments below.

Of note is whether the solution to the max submissions/accept unofficial submissions problem is satisfactory. Does changing the category of active elements exercises with max submissions cause issues to some courses?

I think it is good. I don't think changing the category hurts any current user.

toc_config.py Show resolved Hide resolved
toc_config.py Show resolved Hide resolved
directives/ae_output.py Outdated Show resolved Hide resolved
Active elements with max submissions are put in a separate category
"active elements with max submissions" that doesn't accept unofficial
submisions by default. Closes apluslms#165
Closes apluslms#162. Category source priority:
1. RST options
2. yaml config
3. "active elements" or "active elements with max submissions"
depending on whether max_submissions = 0 or not
Copy link
Collaborator

@markkuriekkinen markkuriekkinen left a comment

Choose a reason for hiding this comment

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

Excellent!

@markkuriekkinen markkuriekkinen merged commit 4c624fe into apluslms:master Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
2 participants