-
Notifications
You must be signed in to change notification settings - Fork 217
feat: deserialize tag info from xml [FC-0049] #2181
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
Merged
pomegranited
merged 4 commits into
openedx:master
from
open-craft:rpenido/fal-3621-paste-tags-when-pasting-xblocks-with-tag-data
Feb 29, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ | |
| Initialization Information for Open Assessment Module | ||
| """ | ||
|
|
||
| __version__ = '6.1.0' | ||
| __version__ = '6.2.0' | ||
This file contains hidden or 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 file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| <openassessment text_response="required" file_upload_response="" group_access="{"381451918": [1179773159]}" prompts_type="text" tags-v1="test content tags"> | ||
| <title>Open Assessment Test</title> | ||
| <prompts> | ||
| <prompt> | ||
| <description>Given the state of the world today, what do you think should be done to combat poverty? Please answer in a short essay of 200-300 words.</description> | ||
| </prompt> | ||
| <prompt> | ||
| <description>Given the state of the world today, what do you think should be done to combat pollution?</description> | ||
| </prompt> | ||
| </prompts> | ||
| <rubric> | ||
| <criterion> | ||
| <name>Concise</name> | ||
| <prompt>How concise is it?</prompt> | ||
| <option points="0"> | ||
| <name>Neal Stephenson (late)</name> | ||
| <explanation>Neal Stephenson explanation</explanation> | ||
| </option> | ||
| <option points="1"> | ||
| <name>HP Lovecraft</name> | ||
| <explanation>HP Lovecraft explanation</explanation> | ||
| </option> | ||
| <option points="3"> | ||
| <name>Robert Heinlein</name> | ||
| <explanation>Robert Heinlein explanation</explanation> | ||
| </option> | ||
| <option points="4"> | ||
| <name>Neal Stephenson (early)</name> | ||
| <explanation>Neal Stephenson (early) explanation</explanation> | ||
| </option> | ||
| <option points="5"> | ||
| <name>Earnest Hemingway</name> | ||
| <explanation>Earnest Hemingway</explanation> | ||
| </option> | ||
| </criterion> | ||
| <criterion> | ||
| <name>Clear-headed</name> | ||
| <prompt>How clear is the thinking?</prompt> | ||
| <option points="0"> | ||
| <name>Yogi Berra</name> | ||
| <explanation>Yogi Berra explanation</explanation> | ||
| </option> | ||
| <option points="1"> | ||
| <name>Hunter S. Thompson</name> | ||
| <explanation>Hunter S. Thompson explanation</explanation> | ||
| </option> | ||
| <option points="2"> | ||
| <name>Robert Heinlein</name> | ||
| <explanation>Robert Heinlein explanation</explanation> | ||
| </option> | ||
| <option points="3"> | ||
| <name>Isaac Asimov</name> | ||
| <explanation>Isaac Asimov explanation</explanation> | ||
| </option> | ||
| <option points="10"> | ||
| <name>Spock</name> | ||
| <explanation>Spock explanation</explanation> | ||
| </option> | ||
| </criterion> | ||
| <criterion> | ||
| <name>Form</name> | ||
| <prompt>Lastly, how is its form? Punctuation, grammar, and spelling all count.</prompt> | ||
| <option points="0"> | ||
| <name>lolcats</name> | ||
| <explanation>lolcats explanation</explanation> | ||
| </option> | ||
| <option points="1"> | ||
| <name>Facebook</name> | ||
| <explanation>Facebook explanation</explanation> | ||
| </option> | ||
| <option points="2"> | ||
| <name>Reddit</name> | ||
| <explanation>Reddit explanation</explanation> | ||
| </option> | ||
| <option points="3"> | ||
| <name>metafilter</name> | ||
| <explanation>metafilter explanation</explanation> | ||
| </option> | ||
| <option points="4"> | ||
| <name>Usenet, 1996</name> | ||
| <explanation>Usenet, 1996 explanation</explanation> | ||
| </option> | ||
| <option points="5"> | ||
| <name>The Elements of Style</name> | ||
| <explanation>The Elements of Style explanation</explanation> | ||
| </option> | ||
| </criterion> | ||
| </rubric> | ||
| <assessments> | ||
| <assessment name="peer-assessment" must_grade="5" must_be_graded_by="3" /> | ||
| <assessment name="self-assessment" /> | ||
| </assessments> | ||
| </openassessment> |
This file contains hidden or 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working as expected manual testing in the
edx-platform, but in the tests here, it fails. I think it is because this block doesn't have the XmlMixin. As it is a new dependency, I'm unsure if I should add it here or find another way to test it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I faced similar issues when implementing the copy functionality. Since we don't have access to the
XBLOCK_MIXINSin edx-platform in this repo (because edx-ora2 is imported into edx-platform), you need to manually add the methods/fields for the tests to work.Here is an example of how I did it in my tests:
edx-ora2/openassessment/xblock/test/test_xml.py
Lines 219 to 251 in c76a89c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @yusuf-musleh! It took me some time but I figure it out with your help!
Could you take another look at it please?