OEP-6: Context-scoped XBlock Fields

51 views
Skip to first unread message

Braden MacDonald

unread,
Aug 4, 2016, 2:30:36 PM8/4/16
to edx-...@googlegroups.com
Hi everyone,

I have opened a pull request with an Open edX Enhancement Proposal for adding "context-scoped XBlock fields" to the Open edX platform. This is the same thing previously referred to as "course-scoped fields."


Summarizing from the abstract:

There is currently no standard way for XBlocks to define data fields such that content, settings, or user input can be shared among multiple XBlocks within a particular "context" such as a course. Such "course-scoped" or "context-scoped" fields are a common requirement; for example, an author may wish to specify the default “number of attempts allowed” once for all problems in a course, or a video player XBlock may want to “remember” the user’s preferred video playback speed for videos within a particular course.

This OEP proposes a new mechanism for defining XBlock fields that are explicitly scoped to a particular context.

Please take a look at the OEP - your feedback would be very appreciated.

Cheers!

--
Braden

Braden MacDonald

unread,
Sep 14, 2016, 5:31:42 PM9/14/16
to edx-...@googlegroups.com
Bumping this thread since it's been a while and I want to see if anyone else has feedback.

--
Braden

Braden MacDonald

unread,
Dec 15, 2016, 8:14:23 PM12/15/16
to edx-...@googlegroups.com
Hi everyone,


In the version that has been accepted, we introduce two new XBlock field scopes, Scope.context_settings and Scope.context_preferences, which can hold course-specific data set by course authors and users respectively. The OEP also defines a new XBlock view, "context_settings_view" that can be used by course authors in Studio to edit the context_settings fields.

There was a lot of discussion on the way, which you can read on the PR if you are interested.

Next I will be working on a prototype implementation to validate this approach.

Cheers,
--
Braden
Reply all
Reply to author
Forward
0 new messages