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

Fixing the python and js packaging #172

Merged
merged 2 commits into from
Mar 11, 2016
Merged

Fixing the python and js packaging #172

merged 2 commits into from
Mar 11, 2016

Conversation

mistercrunch
Copy link
Member

@williaster
This makes it such that we don't have to ship the whole node_modules with the python package, to do that I had to move a bunch of css html references to the js require notation. I managed to do it for everything but the font-awesome one.

This also cranks up the version to 0.8.0, I think it's ready to ship to Pypi.

@@ -1,4 +1,8 @@
recursive-include panoramix/templates *
recursive-include panoramix/static *
recursive-exclude panoramix/static/assets/node_modules *
Copy link
Member Author

Choose a reason for hiding this comment

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

This excludes the thousands of files in that folder to ship with the python package

Copy link
Contributor

Choose a reason for hiding this comment

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

gotcha, and they're already included in the bundled js files so are totally unnecessary

@@ -66,7 +65,7 @@ <h4 class="modal-title" id="myModalLabel">Dashboard CSS</h4>
</div>
</div>
</div>
<div class="gridster content_fluid">
<div class="gridster content_fluid" style="visibility: hidden;">
Copy link
Contributor

Choose a reason for hiding this comment

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

css rule instead of inline style! why is this necessary? and is visibility: hidden; what you want or display: none;?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well I had the visibility:hidden in panoramix.css but it would flicker, while the javascript .gridster call alters the css or classes the pre and post css changes would show for a fraction of a second.

When the visibility:hidden is in panoramix.css it flickers, but not when it's inline... Let's land this so I can get this release out and we can revisit later. Also the display:none option might be better but the jquery $.show() would animate while there's already a lot going on so I went for this approach instead.

I think the location of the js (head vs tail) might have something to do with it as well, maybe all of our entry scripts should be head since they contain css now. Anyhow, I'm merging and pushing a release as this works well and we can work out the details later.

mistercrunch added a commit that referenced this pull request Mar 11, 2016
Fixing the python and js packaging
@mistercrunch mistercrunch merged commit fb6a997 into master Mar 11, 2016
@mistercrunch mistercrunch deleted the packaging branch March 11, 2016 03:33
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Oct 4, 2021
* test: extract mock plugins into separate file

* fix: use constants

* fix: test coverage
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
* test: extract mock plugins into separate file

* fix: use constants

* fix: test coverage
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
* test: extract mock plugins into separate file

* fix: use constants

* fix: test coverage
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
* test: extract mock plugins into separate file

* fix: use constants

* fix: test coverage
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
* test: extract mock plugins into separate file

* fix: use constants

* fix: test coverage
Copy link

@Laxonj Laxonj left a comment

Choose a reason for hiding this comment

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

Ok

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.8.0 labels Feb 19, 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 🚢 0.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants