-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
[bugfix] De-dup <script> tags. #5883 #5890
Conversation
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.
thanks for addressing this, looks like a nice solution for the issue 👍
I have tested and it does what I expected. However, I am less familiar with Flask App Builder, so would be great to have some Python eye on to verify if I didn't mess anything up. A few questions:
|
superset/__init__.py
Outdated
@@ -69,12 +69,21 @@ def get_css_manifest_files(filename): | |||
return entry_files.get('css', []) | |||
|
|||
|
|||
def filter_loaded_chunks(files, loaded_chunks): |
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.
I find the name a little confusing, i.e., you’re returning the unloaded chunks, maybe something like get_unloaded_chunks
makes more sense.
416d004
to
c27621f
Compare
Addressed @john-bodley 's comment. Now wait for dear CI. 😃 |
Codecov Report
@@ Coverage Diff @@
## master #5890 +/- ##
==========================================
+ Coverage 63.66% 63.71% +0.04%
==========================================
Files 386 386
Lines 23538 23543 +5
Branches 2628 2628
==========================================
+ Hits 14986 15000 +14
+ Misses 8539 8530 -9
Partials 13 13
Continue to review full report at Codecov.
|
Ready to merge 🚀 |
Jinja templates are executed top-to-bottom, yes, though python |
* Fix adding duplicate script tags. * add more empty lines * rename function (cherry picked from commit 325e7c0)
* Fix adding duplicate script tags. * add more empty lines * rename function
This fixes #5883
@john-bodley @mistercrunch @graceguo-supercat @michellethomas