-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Fix/cdodge/exporting video modules #425
Conversation
@wedaly this fixes broken test. The problem was that clone_item() was deprecated on master in between the time the hotfix was made and when it was merged in. @cpennington this also does the improvement that you asked for by not parsing an XML formatted string Can you get to this ASAP since master is broken now? |
👍 Thanks for fixing this! |
parent = verticals[0] | ||
module_store.update_children(parent.location, parent.children + [new_component_location.url()]) | ||
|
||
resp = self.client.post( |
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.
You could use:
ItemFactory.create(
parent_location=parent.location,
category="video",
display_name="untitled")
Same effect but doesn't go thru url handler (views)
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.
I think you should use module_store.create_and_save_xmodule
here, rather than using the django test client. Actually, an even better fix would be to use a CourseFactory
and a ItemFactory
, so that this test doesn't have to know about future changes to how to construct xmodules.
…ich has been deprecated, and thus breaking the test
@dmitchell @cpennington can you sign off? I took Don's solution as I have to head into a 1.5 hour meeting. Unfortunately, when I rebase -i, I took the wrong commit message. But can we move forward? |
There's a bug partly due to the test:
Equivalence is tripping on the import systems != which should be irrelevant AND on display_names not being == which may be more important. |
ok, looking into it. This is more complicated than I hoped.... |
…ort isn't totally equivalence.
@cpennington @wedaly @dmitchell I think the stop gap here is to remove that new (which I added) OK with you all? Waiting to see test results - this passes on my localdev. |
You mean |
@chrisndodge That makes sense |
Yeah, 👍 to removing the |
Fix/cdodge/exporting video modules
Feature/bridger/new wiki
Merge Release back into master Conflicts: cms/envs/aws.py requirements/edx/custom.txt
Merge Release back into master Conflicts: cms/envs/aws.py requirements/edx/custom.txt
Merge Release back into master Conflicts: cms/envs/aws.py requirements/edx/custom.txt
Merge Release back into master Conflicts: cms/envs/aws.py requirements/edx/custom.txt
Merge Release back into master Conflicts: cms/envs/aws.py requirements/edx/custom.txt
Merge Release back into master Conflicts: cms/envs/aws.py requirements/edx/custom.txt
Merge Release back into master Conflicts: cms/envs/aws.py requirements/edx/custom.txt
Merge Release back into master Conflicts: cms/envs/aws.py requirements/edx/custom.txt
ju/ednx/FD-4 Change logo and favicon in LMS and Studio
This reverts commit 07b82b1.
No description provided.