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

Performance improvements #2371

Merged

Conversation

canstudios-nicolaw
Copy link
Contributor

@canstudios-nicolaw canstudios-nicolaw commented Jul 1, 2019

Fixes #2370

  • On every AT editor page load the config is retrieved

  • In plugins/content/config/index.js there was some code which did the following on every config load:

    • Get every component in the course
    • Iterate through every component and check if the user has permission
    • Strip down the list of components to a unique list (ie one of each type)
    • Use this list to make the "_enabledComponents" list
  • The enabledComponents list is not required when navigating around the editor, so this code has been moved into a place in the outputmanger where it is used by preview/export/publish only

  • Changes have been made to the moved code to make it more efficient, instead of retrieving every component in the course it just retrieves a list of types (eg. text, mcq)

QA have tested this internally

@canstudios-nicolaw canstudios-nicolaw added the S: awaiting-review Completed issues waiting on reviews label Jul 1, 2019
@canstudios-nicolaw canstudios-nicolaw added this to the 0.9.0 Less is more milestone Jul 1, 2019
@canstudios-nicolaw canstudios-nicolaw self-assigned this Jul 1, 2019
@canstudios-nicolaw canstudios-nicolaw removed the S: awaiting-review Completed issues waiting on reviews label Jul 2, 2019
@canstudios-nicolaw canstudios-nicolaw merged commit 89862d3 into adaptlearning:release/lessismore Jul 2, 2019
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.

3 participants