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

build: use manifest hooks for dev server proxy and fix hot reload for charts #9333

Merged
merged 6 commits into from
Mar 26, 2020

Conversation

ktmud
Copy link
Member

@ktmud ktmud commented Mar 20, 2020

CATEGORY

  • Build / Development Environment

SUMMARY

This updates how wepback-dev-server proxy reads asset manifest. Instead of reading from the generated manifest.json file, we use webpack hooks.

This is needed because sometimes proxy server will read manifest.json before it is fully updated, resulting the proxy to return the old code for an updated module on a hard page refresh.

Also added some docs for how to edit plugins as a followup to #9326 .

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TEST PLAN

Before the change:

  • Start the dev server, go to any page
  • Edit a React component in that page, hot load should work, you component is updated
  • Refresh the page, you component is served with the old code

After the change:

  • You component should reflect the updated code.

ADDITIONAL INFORMATION

N/A

REVIEWERS

@rusackas @kristw

Copy link
Member Author

@ktmud ktmud left a comment

Choose a reason for hiding this comment

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

This one does not solve the hot reload issue with Charts I mentioned in #9326 , but does help by making sure the dev server always serve the latest code for updated modules.

superset-frontend/webpack.config.js Show resolved Hide resolved
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

Code looks good to me... I'll pull it and manually test it when time allows in the morning, before officially approving. I made a few minor edit suggestions to the documentation, which I hope help. Thanks for these improvements!

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

Welll... I spent some time today trying to replicate the issue according to the test plan. When I edit code of components (I was picking on dashboard tabs, mainly) I see the changes via hot reload. When I refresh, the changes are still there.

That said, with the changes, everything still seems to work great, so I'm not seeing any regression either.

I think the documentation in this PR is also important, and again the code looks good to me, so I'll approve this, but see if anyone else wants to weigh in on the bug reproduction issue before merging.

@ktmud
Copy link
Member Author

ktmud commented Mar 20, 2020

but see if anyone else wants to weigh in on the bug reproduction issue before merging.

To be specific, I saw the issue (updated code getting reverted to initial build) on Chart Explore page both when I edited the source file of the symlinked Big Number plugin and that of src/chart/Chart.jsx.

Also still seeing hot reload not working for symlinked components and was not able to fix it. Would be great if someone can help confirm whether this is reproducible, too.

@ktmud
Copy link
Member Author

ktmud commented Mar 22, 2020

FINALLY managed to fix hot-reload issue on the Explore page. The problem is multifold.

  1. shouldComponentUpdate is probably too strict. I changed it to only return false when chartStatus is updated from success to rendered.
  2. Because SuperChart uses memoized async loaders to load chart component, sometimes it confuses react-hot-loader when the module should be reloaded. The hack is to add a unique key to SuperChart component in ChartRenderer so it will always be rerendered.

Unfortunately, sometimes hot reload still doesn't work for charts in the dashboards. Considering the Explore page is normally where developers test + develop the charts, and they can always do a "cold" refresh, I'll stop digging and leave it as is. I did, however, rewrite dashboard/App.jsx and dashboard/index.jsx to avoid the same " does not support change store on the fly" error as seen in the Explore page.

@rusackas
Copy link
Member

Not sure why the PR page here shows Travis build is pending (seemingly forever) but if I click the "Details" link, it looks like it all worked great. Tested this locally, and happy to merge when the light turns green.

@codecov-io
Copy link

codecov-io commented Mar 23, 2020

Codecov Report

Merging #9333 into master will decrease coverage by 0.04%.
The diff coverage is 6.97%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9333      +/-   ##
==========================================
- Coverage   58.99%   58.95%   -0.05%     
==========================================
  Files         375      375              
  Lines       12136    12155      +19     
  Branches     2990     3002      +12     
==========================================
+ Hits         7160     7166       +6     
- Misses       4797     4810      +13     
  Partials      179      179              
Impacted Files Coverage Δ
superset-frontend/src/chart/Chart.jsx 10.41% <ø> (ø)
superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (ø)
.../src/dashboard/components/gridComponents/Chart.jsx 67.41% <0.00%> (ø)
superset-frontend/src/dashboard/index.jsx 0.00% <0.00%> (ø)
...nd/src/explore/components/ExploreViewContainer.jsx 46.47% <ø> (ø)
...-frontend/src/visualizations/presets/MainPreset.js 0.00% <ø> (ø)
superset-frontend/src/chart/ChartRenderer.jsx 34.88% <8.57%> (-5.42%) ⬇️
superset-frontend/src/explore/exploreUtils.js 76.78% <0.00%> (-0.07%) ⬇️
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (ø)
...et-frontend/src/SqlLab/reducers/getInitialState.js 0.00% <0.00%> (ø)
... and 2 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 634b440...2f19a50. Read the comment docs.

@ktmud ktmud force-pushed the webpack-config branch 2 times, most recently from 014ff1b to c48f966 Compare March 23, 2020 20:14
@ktmud
Copy link
Member Author

ktmud commented Mar 23, 2020

@rusackas this CI is now green. Can you take another look?

@ktmud
Copy link
Member Author

ktmud commented Mar 23, 2020

Hold on.. the updated shouldComponentUpdate logic is cause some performance issues in dashboards.

Copy link
Member Author

@ktmud ktmud left a comment

Choose a reason for hiding this comment

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

Finally managed to fix hot reload on dashboards as well.

@kristw , can you also take a look at the latest commit, especially the changes to ChartRenderer.jsx?

}
return true;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

I wrote my own depth-limited deepEqual function. Would be happy to use any existing library or util function if it exists.

// `rendered` status is set right after `success` or `loading`,
// don't trigger rerender here (see `actions.chartRenderingSucceeded`).
// note that even though render is not triggered, the props will still be
// updated.
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure what we are using the rendered status for, but I'm keeping it here just in case.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

The logic seems to be changed here, since the original code did not check this.props.chartStatus.

@ktmud ktmud force-pushed the webpack-config branch 2 times, most recently from 5c7b044 to 2f19a50 Compare March 25, 2020 19:41
@ktmud ktmud changed the title build: use manifest hooks for dev server proxy build: use manifest hooks for dev server proxy and fix hot reload for charts Mar 25, 2020
Copy link
Contributor

@kristw kristw left a comment

Choose a reason for hiding this comment

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

Thank you for keep improving the dev environment. I think most changes look good to me.

I am a bit worry about the shouldComponentUpdate logic change in ChartRenderer.jsx as that will affect one of the largest surface in Superset.

Wonder if that alone can be separated to another PR, so if something happens and we need to revert. The remaining good work in this PR which are pretty safe IMO should not be affected and can easily get merged as well.

// `rendered` status is set right after `success` or `loading`,
// don't trigger rerender here (see `actions.chartRenderingSucceeded`).
// note that even though render is not triggered, the props will still be
// updated.
Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -133,7 +133,8 @@ class Chart extends React.Component {
}
}

return false;
// `cacheBusterProp` is jnjected by react-hot-loader
Copy link
Contributor

Choose a reason for hiding this comment

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

typo injected

compose(applyMiddleware(thunk, logger), initEnhancer(false)),
);

ReactDOM.render(<App store={store} />, document.getElementById('app'));
Copy link
Contributor

Choose a reason for hiding this comment

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

oh nice. so this will get rid of the hot loader warning about store, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes.

superset-frontend/webpack.config.js Show resolved Hide resolved
}
return {
...seed,
// files: filePaths,
Copy link
Contributor

Choose a reason for hiding this comment

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

keep or remove?

this.props.queryResponse !== nextProps.queryResponse;

// current chart status
const chartStatus = this.props.chartStatus;
Copy link
Contributor

Choose a reason for hiding this comment

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

const { chartStatus } = this.props;

nextProps.queryResponse.error ||
nextProps.refreshOverlayVisible
)
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

add {}. Not sure why eslint is not warning.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think both are acceptable. Would actually prefer no {} if the conditions are simpler.

@@ -74,6 +74,7 @@ const defaultProps = {
setControlValue() {},
triggerRender: false,
dashboardId: null,
chartStackTrace: null,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change intended? I didn't see any reference within this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. I was seeing chartStackTrace being undefined on the initial rendering, then immediately updated to null. Thought it makes sense to have a consistent value.

// `rendered` status is set right after `success` or `loading`,
// don't trigger rerender here (see `actions.chartRenderingSucceeded`).
// note that even though render is not triggered, the props will still be
// updated.
Copy link
Contributor

Choose a reason for hiding this comment

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

The logic seems to be changed here, since the original code did not check this.props.chartStatus.

@@ -58,6 +59,46 @@ const defaultProps = {
triggerRender: false,
};

const isDevMode = process.env.WEBPACK_MODE === 'development';
if (isDevMode) {
setConfig({ logLevel: 'debug', trackTailUpdates: false });
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we make this call in one of the setup file instead? It seems a bit odd to call this here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I noticed this config is only needed for charts and isDevMode is used somewhere down below as well, so it was just convenient to put it here. Will move it to preamble.js.

@kristw kristw merged commit 77fcc4b into apache:master Mar 26, 2020
@ktmud ktmud mentioned this pull request Mar 27, 2020
1 task
@ktmud ktmud deleted the webpack-config branch April 12, 2020 06:50
craig-rueda added a commit that referenced this pull request Apr 22, 2020
* improve helm chart

* add Apache license headers

* fix: suburst chart when secondary metric is defined (#9343)

* refactor: remove settooltip (#9332)

* [config] Fixing GET_FEATURE_FLAGS_FUNC example (#9339)

* [config] Fixing GET_FEATURE_FLAGS_FUNC example

* Adding typing for GET_FEATURE_FLAGS_FUNC

* Update config.py

* feat: [SQLLAB] add checkbox to control autocomplete (#9338)

* [SQLLAB] add checkbox to control autocomplete

* autocomplete -> autocompleteEnabled

* fix defaultProps

* fix spec

* Cal heatmap controls migration (#9355)

* controls migrated

* linting

* migrating unique EventFlow controls (#9358)

* migrating unique controls

* Lint ✨

* Treemap controls migration (#9352)

* Treemap

* linting

* feat: [explore] don't save filters inherited from a dashboard (#9340)

* feat: [explore] don't save filters inherited from a dashboard

When navigating to explore from a dashboard context, the current
dashboard filter(s) are passed along to explore so that the context is
kept. So say you're filtering on "country=Romania", in your dashboard
and pivot to explore, that filter is still there and keep on exploring.

Now a common issue is that you'll want to make some tweak to your chart
that are unrelated to the filter, say toggling the legend off for
instance, and then save it. Now you back to your dashboard and even
though you started with an "all countries" dashboard, with a global
filter on country, now that one chart is stuck on "Romania". Typically
you notice this when filtering on something else, say "Italy" and then
that one chart now has two mutually exclusive filters, and show "No data".

Now, the fix is to flag the filter as "extra" (that's the not-so-good internal
name we use for these inherited filters) and make it clear that that
specific filter is special and won't be saved when saving the chart.

* fix build

* [charts] Refactor API using SIP-35 (#9329)

* [charts] Refactor charts API using SIP-35

* [charts] Fix, copy pasta

* [charts] simplify

* Add global install of webpack and webpack-cli to docker-compose (#9310)

* [dataset] columns and metrics API (nested) (#9268)

* [dataset] columns and metrics API (nested)

* [dataset] tests and validation

* [datasets] Fix, revert list field name to database_name

* Adding requirements-local.txt support (#9357)

* Adding requirements-local.txt support

* Reverting package-lock.json

* Migrate unique Heatmap controls (#9360)

* Migrate Heatmap controls

* Lint

* fix: don't parseFloat when the *already numeric* value ends in a decimal point (#9351)

* [sip-15] Fixing typo in docstring (#9377)

* [explore view] fix long query issue from Run in SQL LAB Button (#9345)

* [explore view] fix long query issue from Run in SQL LAB Button

* SQL Lab page needs to take the post form data, too

* fix variable names

* updated payload dict, rename hidden form

Co-authored-by: Jesse Yang <[email protected]>

* fix a typo in set prop value (#9383)

* Migrating unique DirectedForce controls (#9359)

* migrating controls

* Linting ✨

* oops... meant to pull this out in a conflict resolution.

* Update MANIFEST.in (#9261)

Include superset-frontent/package.json in package because setup.py requires it

* fix: [dashboard] add row padding (#9381)

* Removing WordCloud controls from CONTRIBUTING.md (#9391)

* [dashboard] handle markdown error (#9350)

* [dashboard] handle markdown error

* localize error message, fix review comments.

* [cache] Cleaning up viz/cache logic (#9375)

Co-authored-by: John Bodley <[email protected]>

* migrating controls 🎛 (#9386)

* Migrating unique Table controls (#9388)

* Migrating unique BoxPlot controls (#9392)

* upgrade to react-bootstrap v0.33.1 (#9372)

* upgrade to react-bootstrap v0.33.1

* fix test

* simplify proptypes

Co-Authored-By: Evan Rusackas <[email protected]>

* simplify more proptypes

Co-Authored-By: Evan Rusackas <[email protected]>

Co-authored-by: Evan Rusackas <[email protected]>

* migrating unique controls (#9374)

* Migrating horizon controls (#9368)

* migrating unique controls

* linting ✨

* build: use manifest hooks for dev server proxy and fix hot reload for charts (#9333)

* Use manifest hooks for dev server proxy

* Rewrite dashboard/App.jsx to supress Redux error in hot reload

* Update ChartRenderer to allow hot realod in Explore

* Fix hot reload in dashboars as well

* Revert changes to ChartRenderer.jsx

Will submit in another PR.

* Clean up

* migrating controls (#9373)

* [dataset] New, export API endpoint (#9367)

* [dataset] New, export API endpoint

* Fix, lint

* [charts] New, bulk delete API endpoint (#9387)

* [charts] New, bulk delete API endpoint

* [charts] Fix, typos

* [charts] Fix wrong model name

* [sip-15] fix messaging (#9397)

* Mirgrating unique Partition chart controls (#9385)

* mirgrating controls

* specific import

* feat: add SSL certificate validation for Druid (#9396)

* feat: add SSL certificate feature

* Address comments

* don't mutate extras

* Address comments and add polish

* Add further polish

* [fix] Fixing cache key inconsistencies (#9382)

Co-authored-by: John Bodley <[email protected]>

* add initjob conf + secret

* [dependency] Fix, Bump FAB to 2.3.1 (#9413)

* [mypy] Enforcing typing for charts (#9411)

Co-authored-by: John Bodley <[email protected]>

* add missing headers

* [dashboards] Fix, API update slug uniqueness refusing empty string (#9417)

* [dashboards] Fix, API update slug uniqueness refusing empty string

* [dashboards] tests

* Build: fix hot reload for charts (#9400)

* Fix hot reload for charts

* Override tsc options for plugins

Plugins will sometimes have their own `tsconfig.json`, which will
interfere with the dev server config if configured inappropriately.

This change makes sure `tsc` (and `ts-loader`) always compiles to
`esnext` modules, so we don't get "Uncaught ReferenceError: exports
is not defined" error.

* [fix] allow force refresh for No Results chart (#9408)

* [fix] dashboard filter indicator no showing single number value (#9401)

* fix pagination for list views (#9425)

* feat(visualization): add timeRangeFixed to Big Number w/ Trendlines (#9341)

* feat: add timeRangeFixed and increase font size for Big Number chart

* Update package-lock.json

* [fix]some translation not work better (#9428)

* Add check for SSL certificate and add form validators (#9436)

* Add check for server_cert falsy and add form validators

* Address comments

* migrating unique controls (#9446)

* Enforcing linting of LESS (#9356)

* linting some LESS

* enforce linting

* moving font binaries out of stylesheets to fonts folder.

* renaming font specimen sheet directory.

* Migrating unique bigNumber(total) controls (#9440)

* migrating options controls

* lint ✨

* baby steps...

* shared BigNumber controls file

* capitalization matters

* Migrating unique NVD3 viz controls (#9445)

* donut control

* labels outside

* linting

* x_log_scale, pie_label_type

* linting

* line_charts, line_charts_2

* marker_labels

* marker_line_labels, marker_lines, markers

* prefix_metric_with_slice_name, range_labels, ranges

* stacked_style

* Revert "stacked_style"

This reverts commit aae2d418b8f1950fbe32248b62e50a12fbf186bd.

* stacked_style take 2...

* Revert "stacked_style take 2..."

This reverts commit 38b7155f50143684c92a67b2a9fa16f65c269d35.

* Migrating NVD3 Area's stacked_style config (#9454)

* Migrating NVD3 Area's stacked_style config

* test mods

* lint

* nonsense change

* undoing nonsense. Come on GitHub, WORK.

* Eslint prefer-object-spread (#9466)

* The rule.

* The result

* [mypy] Enforcing typing for some modules (#9416)

Co-authored-by: John Bodley <[email protected]>

* chore: bump black to 19.10b0 and mypy to 0.770 (#9378)

* Bump black to 19.10b0

* Upgrade mypy to 0.770

* Update how inline type is defined

* release: Add support for ZSH in RELEASING and add tagging instructions (#9451)

* Add support for ZSH in RELEASING and add tagging instructions

* fail if unsupported shell

* Added dremio (#9472)

* [query] New, readonly API (#9403)

* [query] New, readonly API

* Update tests/queries/api_tests.py

Co-Authored-By: Ville Brofeldt <[email protected]>

* [mypy] Enforcing typing for superset.examples (#9469)

Co-authored-by: John Bodley <[email protected]>

* Migrating shared DeckGL controls (#9455)

* Missed a couple unique controls!

* new shared module, with filter_nulls export.

* autozoom

* dimension

* nixing unneeded import

* stroke_width

* js_columns

* remaining js_* controls

* cleaning up unused stuff

* legend_format

* exports for prior commit

* legend_position

* line_column

* fill_color_picker

* filled, stroked, stroke_color_picker

* grid_size, extruded

* ... more gridsize

* viewport

* point_radius_fixed, spatial

* multiplier, line_type, line_width

* reverse_long_lat

* lint ✨

* [Doc] Update installation doc for Dremio (#9464)

* update installation doc for Dremio

Customers fail to install pyodbc properly which on linux systems requires you to install unixodbc-devel package. Update the instructions to make it clear.

* fix new line

* [mypy] Enforcing typing for superset.dashboards (#9418)

* [mypy] Enforcing typing for superset.dashboards

* Make return types equal on all commands

* Make return types equal on all commands

* [dashboard] address comments same return type on commands

* lint

* lint

* [datasets] Add strict type annotation (#9437)

* [datasets] Add strict type annotation

* Fix refresh endpoint

* Improve logic on update

* Filter owners select by text input (#9337)

* filter owners select by text input

* use rison

* fix backend owners filter logic

* use fullname, not username on owners inputs

* fix some tests

* fixing tests

* deterministic tests

* appease linter

* add back search by username

* more comprehensive filter test

* add clarifying text

* formatting...

* Handle empty dataframes in TableViz (#9480)

TableViz fails to display empty dataframes returning an error like:
"None of [Index(['project', 'count'], dtype='object')] are in the [columns]"

The behavior has been observed while testing 0.36.0rc3 with
Druid datasources.

issue: #9468

* [sqllab] Add CUSTOM_TEMPLATE_PROCESSOR config (#9376)

Co-authored-by: Dandan Shi <[email protected]>

* [tests] refactor, change datasets and charts to it's own folder (#9487)

* pylint: accept specific 2 character names by default (#9460)

* lint: accept 2 letter names by default

* Address review comments

* Remove e and d from good-names

* Upgrade table chart plugin to 0.12.13 (#9493)

* feat: change default time range in sql lab explore (#9486)

Change from "100 years go" to "no filter".

100 years ago is basically equivalent to no filter, but has
implications on how x-axis is plotted on certain charts (e.g. Big
Number).

* fix: add explore control tabOverride at the section level (#9495)

* [query] Migrate api v1 query to new location (#9479)

* [query] Migrate api v1 query to new location

* Improved errors and tests

* [query] nit and revert undesired change

* [query] lint

* [query] revert nan change

* Update superset/queries/api.py

Co-Authored-By: Ville Brofeldt <[email protected]>

* Update tests/queries/api_tests.py

Co-Authored-By: Ville Brofeldt <[email protected]>

* change endpoint location to charts

Co-authored-by: Ville Brofeldt <[email protected]>

* Bump FAB to 2.3.2 (#9491)

* [dashboards] Fix, update dashboard owners not propagating to charts o… (#9484)

* [dashboards] Fix, update dashboard owners not propagating to charts owners

* Add tests

* Fix tests

* better naming

* [dashboards] New, tittle and slug OR filter (#9435)

* [dashboards] New, tittle and slug OR filter

* Update requirements, because of prison bump

* Tests

* Fix tests

* Avoid like filter on empty string value

* merge master brings strict typing to the table

* fix: add lineWidth to Shared_DeckGL.jsx (#9496)

* fix: add lineWidth to Shared_DeckGL.jsx

* linting

* apply changes

* opps again .... license

* feat: Add post processing to QueryObject (#9427)

* Add post processing to QueryObject

* Simplify sort signature and require explicit sort order

* Add new operations and unit tests

* linting

* Address comments

* Simplify test method names

* Address comments

* Linting

* remove unnecessary logic

* Apply strict whitelisting to all getattr calls

* Add checking of rolling_type_options and add/improve docs

* Add visualization flow to the CTA queries (#9370)

* Visualize after running Ctas query (#4)

* Visualize after running Ctas query.

Stub for table viz

Work on the viz

Add JS functionality for Ctas viz

Add test for the table viz flow

Fix test

Add js test for the ctas viz

* Fix tests

* Resolve comments

* Leverate tmpSchema in the query object

* Fix i18n string

Co-authored-by: bogdan kyryliuk <[email protected]>

* Bump sqlalchemy and dremio deps (#9503)

* [charts] New, custom filter for name OR description (#9492)

* [charts] New, custom filter for name OR description

* Improve test

* docker node_modules in its own volume (#9509)

* [Dashboard] new listview filters & emotion infra (#9462)

* [Dashboard] listview filters to match new design

* use title_or_slug filter

* use ?. operator

* move components to components folder

* chore: auto label issues based on the template chosen (#9507)

* chore: auto label issues based on the template chosen

* quoted stuffs

* control to turn off table bar-chart backgrounds (#9500)

* control to turn off table bar-chart backgrounds

* flipping enable to disable, to support existing charts

* lint ✨

* Turn ON to enable (reversing logic)

* bumping big number chart

* ling ✨

* Another attempt to fix a viz.py bug (#9522)

* Another attempt to fix a viz.py bug

* Add types to new ddtm attributes

* deprecate groupby controls in query_obj (#9366)

* Deprecate groupby from query_obj

* Fix query_object bug

* Fix histogram

* Remove groupby from legacy druid connector and fix first batch of unit tests

* Deprecate some unnecessary tests + fix a few others

* Address comments

* hide SIP-38 changes behind feature flag

* Break out further SIP-38 related tests

* Reslove test errors

* Add feature flag to QueryContext

* Resolve tests and bad rebase

* Backport recent changes from viz.py and fix broken DeckGL charts

* Fix bad rebase

* backport #9522 and address comments

* [dashboard] Fix, improve test for custom filter (#9521)

* [api] refactor, remove unnecessary code, using command pattern now (#9520)

* Importing validators module from superset-ui (#9465)

* importing... this is going to break CI, but there it is.

* adding validator package.

* pluralization - maybe it should be plural, but whatevs

* updating validators to match new exports

* removing old validators

* lintage ✨

* validateNumeric -> validateNumber

* using legacyValidateInteger, legacyValidateNumber

* linting ✨

* removing extraneous package lock file

* Fix typo in viz.py (#9533)

* [Build] Add Github workflows (#9517)

As an replacement to Travis CI.

* Disabling recording in Cypress tests (#9535)

* Disabling recording in Cypress tests

* Removing --group --ci-build-id

* Run CI on all pushes / PR's (#9538)

* [list views] add work-break css for table layouts (#9537)

* [thumbnails] API and celery task for dashboards and charts (#8947)

* [copy] fix: Row Level Security get_rls_filters func SELECT statement (#9541)

* fix: Row Level Security get_rls_filters func SELECT statement

* More general RowLevelSecurityTests case to avoid improper ids matching

* Make email parsing more robust (#9523)

* Make email parsing more robust

* Address comment

Co-authored-by: bogdan kyryliuk <[email protected]>

* docs: point our README the maintained Docker image (#9536)

Our README now points to a not-so-well-maintain, community-contributed
Docker image. The docker image we link to here is managed and
supported by actual committers under the Preset org.

* Bump copyright notice (#9539)

* Ditching travis config in favor of Github Actions (#9548)

* Bump @superset-ui/legacy-plugin-chart-table to 0.12.14 (#9549)

* [dashboard] New, add statsd metrics to the API (#9519)

* [fix] warm up cache error handling (#9560)

Co-authored-by: John Bodley <[email protected]>

* [fix] dashboard filter scope bug (#9550)

* [Build] Collect frontend code coverage from Cypress tests (#9555)

* build: collect code coverage from Cypress

Collect frontend code coverage reports from Cypress tests and add
proper tagging for all tests.

* Fix bash script lint error from shellcheck

* Revert Cypress to 4.3.0 to see if it fixes a failing test

* chore: Migrate unique FilterBox controls from controls.jsx (#9566)

* Migrate FilterBox controls from controls.jsx

* Linting

* chore: Add OpenAPI docs to /api/v1/chart/data EP (#9556)

* Add OpenAPI docs to /api/v1/chart/data EP

* Add missing fields to QueryObject, fix linting and unit test errors

* Fix unit test errors

* abc

* Fix errors uncovered by schema validation and add unit test for invalid payload

* Add schema for response

* Remove unnecessary pylint disable

* [pypi] Include compiled translations on Pypi pkg (#9567)

* doc: Add changelog for 0.36.0 (#9570)

* Migrating shared NVD3 controls to new module (#9525)

* proto module

* caught a missed 'freq' unique control

* line_interpolation

* linting

* showLegend

* show_controls

* xAxisLabel

* bottomMargin

* x_ticks_layout

* missed one

* x_axis_format

* yLogScale

* y_axis_bounds

* linting

* nixing yarn lock

* x_axis_showminmax

* xAxisShowminmax control

* richTooltip

* linting, syntax fix

* show_bar_value, bar_stacked

* reduceXticks, yaxislabel

* left_margin, max_bubble_size, y_axis_showminmax

* show_labels

* send_time_range, y_axis_2_format, show_markers, order_bars

* nixing commented imports

* fake controls

* looking up actual controls for comparison.

* adding key to test setup

* controls inventory

* apache junk

* lint ✨

* ignore null controls

* fixing goofed up spread operation for xAxisFormat config

* lint ✨

* fixes for errors caused by <hr> element in filterbox controls

* fixing filter controls for 'druid_time_origin', 'granularity', 'granularity_sqla', 'time_grain_sqla'

* getControlsInventory -> getControlsForVizType

* further renaming of chartControlsInventory - > getControlsForVizType

Co-authored-by: David Aaron Suddjian <[email protected]>

* fix: Add deprecated fields to QueryObject schema (#9579)

* fix: Add deprecated fields to QueryObject schema

* linting

* [mypy] Enforcing typing for superset.migrations (#9583)

Co-authored-by: John Bodley <[email protected]>

* Re-enable the AnnotationLayerModelView read API (#9443)

* Re-enable the AnnotationLayerModelView read API

* Fix CI

* [config] Enable dashboard bootstrap payload reduction by default (#9585)

* [docs] fix, elastic.co elasticsearch product location (#9598)

* [fix] Fixing issue with Jinja filter_value (#9582)

Co-authored-by: John Bodley <[email protected]>

* [Build] moves prettier check to separate script (#9591)

* [Build] moves prettier check to separate script

* rename step: eslint -> lint

* Add documentation build to Github Actions (#9569)

* Add documentation build to Github Actions

* Update requirements for documentation builds

* Minor optimization - only install requirements for documentation in documentation job

* Add raw number/integer option to d3 number formats (#9562)

* Bump superset-ui-connection to 0.12.22 (#9602)

* [charts] feat: add statsd to charts api (#9571)

* add statsd to charts api

* update test for charts api

* [charts] add statsd asserts wrapper

* [charts] update api test

* removed white space

* [tests] Helper script to run single tests (#9547)

* [charts] adds new filters ui (#9530)

* [charts] adds new filters ui

* move null check to be more visible

* better filter lists and async filter functionality

* [SQL Lab] Lock result set controls to be always visible (#9587)

* improve helm chart

* add Apache license headers

* add initjob conf + secret

* add missing headers

* apply changes

* opps again .... license

Co-authored-by: Ville Brofeldt <[email protected]>
Co-authored-by: Krist Wongsuphasawat <[email protected]>
Co-authored-by: John Bodley <[email protected]>
Co-authored-by: ʈᵃᵢ <[email protected]>
Co-authored-by: Evan Rusackas <[email protected]>
Co-authored-by: Maxime Beauchemin <[email protected]>
Co-authored-by: Daniel Vaz Gaspar <[email protected]>
Co-authored-by: Will Barrett <[email protected]>
Co-authored-by: Craig Rueda <[email protected]>
Co-authored-by: Grace Guo <[email protected]>
Co-authored-by: Jesse Yang <[email protected]>
Co-authored-by: Alexander Mancevice <[email protected]>
Co-authored-by: John Bodley <[email protected]>
Co-authored-by: David Aaron Suddjian <[email protected]>
Co-authored-by: venter <[email protected]>
Co-authored-by: Naren <[email protected]>
Co-authored-by: Luca Toscano <[email protected]>
Co-authored-by: dandanhub <[email protected]>
Co-authored-by: Dandan Shi <[email protected]>
Co-authored-by: Bogdan <[email protected]>
Co-authored-by: bogdan kyryliuk <[email protected]>
Co-authored-by: Octavian <[email protected]>
Co-authored-by: Aliaksei Kushniarevich <[email protected]>
Co-authored-by: David Aaron Suddjian <[email protected]>
Co-authored-by: Erik Ritter <[email protected]>
Co-authored-by: Lily Kuang <[email protected]>
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 labels Feb 28, 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 size/L 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants