-
Notifications
You must be signed in to change notification settings - Fork 0
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
LMS Export Bookmarks #355
Merged
Merged
LMS Export Bookmarks #355
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit adds ability to download bookmarked questions as a formatted plain text file. Each question has a specific format based on type: - Essay/Upload questions include HTML content converted to plain text - Multiple Choice and Select All show correct/incorrect answers - Matching questions show terms and their correct matches - Categorization questions group items by category - Bow Tie questions display center/left/right sections - Stimulus Case Study questions include all sub-questions The text download provides a simple way for users to export their bookmarked questions in a readable format, with proper spacing and structure maintained for each question type. Ref: - #344
This commit: - refactors routes and controllers to allow multiple download formats Ref: - #348
This commit: - Adds `BaseFormatterService` to handle common formatting logic for all download formats - Adds `PlainTextFormatterService` to handle formatting specific for plain text - Adds a model_exporter class method to each question type model with the name of each question type - Updates specs to reflect changes to PlainTextFormatterService Ref: - #348
0f35dba
to
afb9fed
Compare
ShanaLMoore
reviewed
Feb 25, 2025
ShanaLMoore
reviewed
Feb 25, 2025
I really like the way these features were designed! I left a comment with an idea for the specs to help optimize test performance. Great job! |
Remove creating objecs in specs, and replace with builds and stubs.
5c8906d
to
21c2107
Compare
ShanaLMoore
approved these changes
Feb 26, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Story
Ref:
Expected Behavior Before Changes
The only option to download was in an XML format.
Expected Behavior After Changes
The user can bookmark questions and download the questions into a plain text file or a markdown file
Screenshots / Video
Photo: Download button
Photo: Plain text download output
questions-2025-02-25_22_01_01_794.txt
Photo:Markdown download output
questions-2025-02-25_22_01_04_057.md