-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix #7004: Move jinja dependencies_html to webpack #7350
Conversation
…ncies-html-removal
Note: I am still testing topic editor and skill editor pages. However, I think this should start getting reviewed. |
Please note that most of the automated CI checks are failing. |
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.
Overall looks good. If I understand this correctly we load most of the dependencies by AJAX except for the ones that are needed on angular module initialization.
core/templates/dev/head/pages/exploration-editor-page/exploration-editor-page.controller.ts
Outdated
Show resolved
Hide resolved
core/templates/dev/head/pages/creator-dashboard-page/creator-dashboard-page.scripts.ts
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## develop #7350 +/- ##
============================================
- Coverage 83% 71.17% -11.83%
============================================
Files 1064 836 -228
Lines 57131 33630 -23501
Branches 2660 2655 -5
============================================
- Hits 47420 23936 -23484
+ Misses 9067 9050 -17
Partials 644 644
|
Codecov Report
@@ Coverage Diff @@
## develop #7350 +/- ##
===========================================
- Coverage 83.34% 83.32% -0.02%
===========================================
Files 1089 1089
Lines 62879 62818 -61
Branches 3620 3619 -1
===========================================
- Hits 52401 52340 -61
- Misses 9323 9324 +1
+ Partials 1155 1154 -1
|
Hi @Jamesjay4199. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
Yes. |
Comments have been addressed. PTAL @seanlip. |
Hi @Jamesjay4199. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
…ncies-html-removal
Hi @Jamesjay4199. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
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.
LGTM. Please fix merge conflicts.
…ncies-html-removal
Done |
Hi @Jamesjay4199. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
…ncies-html-removal
@Jamesjay4199 Lint tests fail, and I think this is introduced by your PR. Please check. |
…ncies-html-removal
@seanlip, I've fixed the lint issue. |
Sounds good, I'll merge, thanks. Also, @lilithxxx -- FYI, I'm really starting to doubt codecov's reliability as a check. See this screenshot: |
Explanation
Fixes #7004: This PR removed dependencies html by sending them to the pages that need it via ajax (Exploration editor and exploration player).
Pages that load the question interactions (Review_tests, practice session) do not actually have any dependencies so they were just removed.
Skill editor and topic editor require just one dependency: codemirror and it is required via webpack to the pages.
UI-CodeMirror package has some known issues when it comes to minification and the package is no longer maintained, so I forked the repo, fixed the issue there and used it here instead.
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.