Skip to content
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

Move cached data from body to seq_content #20

Merged
merged 3 commits into from
Aug 4, 2017
Merged

Move cached data from body to seq_content #20

merged 3 commits into from
Aug 4, 2017

Conversation

potsui
Copy link

@potsui potsui commented Aug 4, 2017

@stvstnfrd @caesar2164 PR for moving cached data out of <body>

Previously, some future update or rogue script could easily tamper with
our cached data attributes on the body element. We moved these data
attributes to be slightly less widely accessible.

Arose from our convo w/ free text response: Stanford-Online/xblock-free-text-response#21
Trello: https://trello.com/c/QB46SgTN/954-move-cached-data-from-body-element-to-seqcontent-for-submit-and-compare-xblcok

CC @jspayd @jlikhuva

Previously, some future update or rogue script could easily tamper with
our cached data attributes on the body element. We moved these data
attributes to be slightly less widely accessible.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling f8dcce1 on potsui:change-cache-selector into ** on Stanford-Online:master**.

@@ -6,6 +6,7 @@ function SubmitAndCompareXBlockInitView(runtime, element) {
var publishUrl = runtime.handlerUrl(element, 'publish_event');

var $element = $(element);

Choose a reason for hiding this comment

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

can you add a separate commit that outdents these two variable definitions?

Copy link
Member

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

cause those two are weirdly indented?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, weird. It looks fine here, but is off on other views.
It looks like the original author (someone at OLI)
used hard-tabs there.

If @potsui wants to include it as a separate commit, that's fine.
If not, we can merge without though.

Copy link

@caesar2164 caesar2164 left a comment

Choose a reason for hiding this comment

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

Please bump patch version of xblock (in this xblock I think it's only in setup.py, @caseylitton ?).

@caesar2164
Copy link

Killer!

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1a1f1bc on potsui:change-cache-selector into ** on Stanford-Online:master**.

Copy link
Member

@stvstnfrd stvstnfrd left a comment

Choose a reason for hiding this comment

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

+1

@caesar2164 caesar2164 merged commit 9e1b3c0 into Stanford-Online:master Aug 4, 2017
@potsui potsui deleted the change-cache-selector branch August 4, 2017 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants