-
-
Notifications
You must be signed in to change notification settings - Fork 970
Pluggable sandbox handler architecture for content viewer plugins #15036
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
Open
rtibbles
wants to merge
8
commits into
learningequality:develop
Choose a base branch
from
rtibbles:playing_in_the_sandbox
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5895417
Rename content renderer hooks to content viewer
rtibbles 5cd449a
Move viewer chrome to the kolibri package
rtibbles fb47393
Add pluggable sandbox handler architecture
rtibbles 83b3651
Implement sandboxed content viewer plugins
rtibbles 52daa6b
Add cloud deployment support for sandbox static files
rtibbles c951152
Update content viewer documentation
rtibbles e6617d3
Lint the hand-written build scripts
rtibbles 564c562
Derive the sandbox shim's core-js target from its dependency
rtibbles 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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
✅ Resolved — addressed in the current code.
suggestion: stats are re-read and re-parsed from disk on every page render. The parent caches the equivalent read (
kolibri/core/webpack/hooks.py:87-90,_cached_stats_file_contentgated onDEVELOPER_MODE); this one has no cache.viewer_datareachessandbox_handler_urlon every call, and{% content_viewer_assets %}(kolibri/core/templates/kolibri/base.html:47) rendersviewer_datafor every registered viewer on every HTML page load — three extra reads plus JSON parses per render with html5, h5p and bloompub registered. Mirroring the parent's_cached_*/DEVELOPER_MODEpattern keeps dev-mode rebuild behaviour and removes the steady-state cost.(The unconditional
WebpackErrorhere is what I asked for last round and I still think it is right — this is a separate concern in the same method.)