Skip to content

Proxy to XModule on demand - #1088

Merged
cpennington merged 3 commits into
openedx:masterfrom
cpennington:pseudo-merge-descriptors-and-modules
Oct 8, 2013
Merged

Proxy to XModule on demand#1088
cpennington merged 3 commits into
openedx:masterfrom
cpennington:pseudo-merge-descriptors-and-modules

Conversation

@cpennington

Copy link
Copy Markdown
Contributor

@nedbat, @sarina: Ready for review.

This enables XModuleDescriptors to act like they're they're XBlocks that
have both studio_view and student_view.

@wedaly

wedaly commented Sep 23, 2013

Copy link
Copy Markdown
Contributor

Seeing some legit failures/errors in the acceptance tests for this in both LMS and CMS. I didn't dig too deep, but it looks like most of the LMS errors are ValueError exceptions: "Got unexpected field names: ['user_id']"

@cpennington

Copy link
Copy Markdown
Contributor Author

Ready for review!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

COMMENTARY:

These tests updated due_date, which is no longer allowed in the LMS

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where did the try/except go?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Into the _xmodule property of XModuleDescriptor. We're lazily creating the XModule when it's needed, rather than on load.

@nedbat

nedbat commented Oct 4, 2013

Copy link
Copy Markdown
Contributor

Once you've responsibly handled the comments, 👍

@sarina

sarina commented Oct 5, 2013

Copy link
Copy Markdown
Contributor

@cpennington I agree with Ned - 👍 assuming you address all our comments. I don't currently have anything further to add.

@singingwolfboy

Copy link
Copy Markdown
Contributor

Looks like this needs a rebase.

By transparently proxying between the XModuleDescriptor and the XModule,
and between their runtimes, we can make them act as a single class, so
that we can swap in an actual XBlock instead.
Previously, these tests modified due_date, which failed due to the new
restrictions on writing to Scope.settings from the LMS.
cpennington added a commit that referenced this pull request Oct 8, 2013
@cpennington
cpennington merged commit 92cc103 into openedx:master Oct 8, 2013
@cpennington
cpennington deleted the pseudo-merge-descriptors-and-modules branch October 8, 2013 20:30
jenkins-ks pushed a commit to nttks/edx-platform that referenced this pull request Aug 9, 2016
Merge pull request openedx#1054 from yokose-ks/develop/cypress/add-min-prope…
rocioar pushed a commit to open-craft/openedx-platform that referenced this pull request Jun 25, 2018
…ment-version

[MCKIN-7315] SSO provider endpoint reworked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants