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

feat(ui): Adding manifest prefix config #19141

Merged
merged 11 commits into from
Mar 17, 2022

Conversation

craig-rueda
Copy link
Member

SUMMARY

  • Adds a new config STATIC_ASSETS_PREFIX which allows for a custom URL prefix to be added to assets included in the app during manifest processing
  • Moves superset.typing -> superset.superset_typing in order to avoid circular import issues with some python variants/IDEs

Comment on lines +79 to +80
for f in filtered_files:
loaded_chunks.add(f)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to do this (specially if CI is green) but this can be simplified:

Suggested change
for f in filtered_files:
loaded_chunks.add(f)
loaded_chunks.update(filtered_files)

@codecov
Copy link

codecov bot commented Mar 14, 2022

Codecov Report

Merging #19141 (459c852) into master (8d53db1) will decrease coverage by 0.14%.
The diff coverage is 100.00%.

❗ Current head 459c852 differs from pull request most recent head a2e2c79. Consider uploading reports for the commit a2e2c79 to get more accurate results

@@            Coverage Diff             @@
##           master   #19141      +/-   ##
==========================================
- Coverage   66.54%   66.40%   -0.15%     
==========================================
  Files        1646     1646              
  Lines       63630    63633       +3     
  Branches     6475     6475              
==========================================
- Hits        42343    42254      -89     
- Misses      19607    19699      +92     
  Partials     1680     1680              
Flag Coverage Δ
hive ?
javascript 51.29% <ø> (ø)
mysql 81.89% <100.00%> (+0.01%) ⬆️
postgres 81.93% <100.00%> (+0.01%) ⬆️
presto ?
python 82.02% <100.00%> (-0.30%) ⬇️
sqlite 81.68% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/superset_typing.py 97.95% <ø> (ø)
superset/common/query_object.py 95.67% <100.00%> (ø)
superset/config.py 91.82% <100.00%> (+0.02%) ⬆️
superset/connectors/base/models.py 88.58% <100.00%> (ø)
superset/connectors/druid/models.py 82.99% <100.00%> (ø)
superset/connectors/druid/views.py 79.87% <100.00%> (ø)
superset/connectors/sqla/models.py 88.87% <100.00%> (-1.24%) ⬇️
superset/connectors/sqla/views.py 64.01% <100.00%> (ø)
superset/databases/api.py 93.99% <100.00%> (ø)
superset/extensions.py 98.80% <100.00%> (+4.90%) ⬆️
... and 37 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d53db1...a2e2c79. Read the comment docs.

@craig-rueda craig-rueda merged commit 4b34817 into apache:master Mar 17, 2022
@craig-rueda craig-rueda deleted the craig/add-manifest-prefix branch March 17, 2022 15:58
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Mar 17, 2022
* Adding manifest prefix config

* Fixing broken tests

* Fixing import

* Adding prefix for remaining assets

* Changing static prefix strategy

* Fixing DST test

* Fixing up formatting

* Fixing up async_query_manager.py types

(cherry picked from commit 4b34817)
@sadpandajoe
Copy link
Member

🏷️ preset:2022.11

villebro pushed a commit that referenced this pull request Apr 3, 2022
* Adding manifest prefix config

* Fixing broken tests

* Fixing import

* Adding prefix for remaining assets

* Changing static prefix strategy

* Fixing DST test

* Fixing up formatting

* Fixing up async_query_manager.py types
@mistercrunch mistercrunch added 🍒 1.5.0 🍒 1.5.1 🍒 1.5.2 🍒 1.5.3 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels lts-v1 preset:2022.11 preset-io size/L 🍒 1.5.0 🍒 1.5.1 🍒 1.5.2 🍒 1.5.3 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants