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 course validation to back-end for efficiency #44

Open
wants to merge 4 commits into
base: issue/2487-pr
Choose a base branch
from

Conversation

canstudios-nicolaw
Copy link

At present, when a user clicks preview/export/publish, the front end attempts to validate the course by individually fetching every page/article/block/component and confirming they all have children.

For large courses this can easily send 500+ requests and take 8+ seconds.

Remove this, and instead validate the course as part of the publish (which is used in preview/export/publish tasks). The publish process already fetches course json, so check this for validity before proceeding with publish.

Return the same descriptive errors as before, these are displayed in an error modal.

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.

2 participants