Skip to content

SIP-32: Moving frontend code to the base of the repo#9098

Merged
mistercrunch merged 8 commits into
apache:masterfrom
suddjian:toplevel-frontend
Feb 10, 2020
Merged

SIP-32: Moving frontend code to the base of the repo#9098
mistercrunch merged 8 commits into
apache:masterfrom
suddjian:toplevel-frontend

Conversation

@suddjian
Copy link
Copy Markdown
Member

@suddjian suddjian commented Feb 7, 2020

CATEGORY

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

Implements changes outlined in SIP-32.

Removes the need for a symlink from superset/static to superset/assets by moving "assets" to a new top-level /superset-frontend directory.

Webpack now outputs into the superset/static/assets folder, copying any necessary assets.

Simplifies MANIFEST.in. Excluding frontend source is no longer necessary since the source doesn't live in the backend directory.

Removing two more symlinks between frontend assets and docs, instead copying built files to the static folder. This was necessary because copying the built files breaks these symlinks, but it also cleans up the directory structure.

TEST PLAN

Running npm run build, npm run dev, and npm run dev-server all seem to work correctly.
Building the tarball seems to work fine, but could use additional verification as I'm not sure what all the failure states there might be.
Docker build seems to work fine, but could use more verification here as well.
Whether CI still works remains to be seen, this PR will test that.

ADDITIONAL INFORMATION

REVIEWERS

@nytai @willbarrett @mistercrunch @craig-rueda @rusackas @dpgaspar @DiggidyDave @villebro

@suddjian suddjian changed the title Moving frontend code to its own top-level directory SIP-32: Moving frontend code to the base of the repo Feb 7, 2020
Comment thread superset-frontend/package.json Outdated
Comment thread superset/static/assets Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Finally!!!!!!!!!!! 😄 😄 😄

@suddjian suddjian requested a review from dpgaspar February 7, 2020 23:20
@mistercrunch mistercrunch merged commit 2913063 into apache:master Feb 10, 2020
@mistercrunch
Copy link
Copy Markdown
Member

giphy

@suddjian suddjian deleted the toplevel-frontend branch February 10, 2020 16:43
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 First shipped in 0.36.0 labels Feb 28, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
* move assets out, get webpack dev working

* update docs to reference superset-frontend

* draw the rest of the owl

* fix docs

* fix webpack script

* rats

* correct docs

* fix tox dox
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 🚢 0.36.0 First shipped in 0.36.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SIP-32] Proposal for moving frontend assets to the base of the repo

3 participants