-
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
Assessment direct handout download #2020
Conversation
WalkthroughWalkthroughThe changes implemented across multiple files in the application add a "handout only" option to assessments. This feature allows for a one-click download or redirection to a handout, streamlining the process of distributing resources through Autolab. The updates include database schema changes, updates to model serialization, view modifications to accommodate the new option, and conditional logic to handle the presentation and behavior of the new feature. Changes
Assessment against linked issues
The code changes align with the objectives outlined in the linked issue, providing a "handout only" option for assessments that enables easy access to handouts, thus enhancing the resource distribution capabilities of Autolab. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit's AI:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Closing this in favor of a longer-term solution via #2035. This is pretty ad-hoc and would be superseded in the future. |
Summary
Summary generated by Reviewpad on 02 Jan 24 19:03 UTC
This pull request adds a new feature to the code. It introduces a "handout_only" toggle to the assessment model and views. The toggle allows an assessment to be marked as consisting solely of a handout, which will be directly downloaded when a student clicks on the assessment. The patch also includes updates to the schema.rb file and wording changes in the basic assessment edit view. Additionally, there are some undoing of inadvertent regressions in the index view. Overall, this pull request enhances the functionality of the assessment module.
Description
Add a "handout only" option to assessments. When enabled, non-instructor users who click on the assessment will be directed to the handout.
Motivation and Context
Facilitates the use of Autolab as a resource sharing medium (requested by 122).
Closes #2021
How Has This Been Tested?
Enable handout only option (under basic) and set a handout.
handout_only
setting is dumped to assessment yml filehandout_only
setting is imported. e.g. delete the assessment and import from file system. Option should still be set.Types of changes
Checklist:
overcommit --install && overcommit --sign
to use pre-commit hook for linting