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

fix: Update Query Context on Explore loading #15865

Merged
merged 15 commits into from
Jul 26, 2021

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Jul 23, 2021

SUMMARY

With the new reports and alerts updates, we need to be able to set the query context on the frontend to be able to pull the data properly for emails. To do this we are adding an additional PUT call on all explore loads to make sure the Chart resource is up to date and allow us to generate a report.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2021-07-25 at 9 51 08 AM

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@pull-request-size pull-request-size bot added size/S and removed size/M labels Jul 23, 2021
@hughhhh hughhhh force-pushed the hugh/update-put-query-context branch from e33f108 to a002bdd Compare July 23, 2021 20:35
@hughhhh hughhhh marked this pull request as ready for review July 23, 2021 20:38
@codecov
Copy link

codecov bot commented Jul 26, 2021

Codecov Report

Merging #15865 (6313880) into master (b81f120) will decrease coverage by 0.05%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15865      +/-   ##
==========================================
- Coverage   77.02%   76.97%   -0.06%     
==========================================
  Files         985      986       +1     
  Lines       51850    52683     +833     
  Branches     7068     7184     +116     
==========================================
+ Hits        39939    40552     +613     
- Misses      11686    11903     +217     
- Partials      225      228       +3     
Flag Coverage Δ
hive ?
javascript 71.93% <60.00%> (+0.16%) ⬆️
mysql 81.54% <ø> (-0.01%) ⬇️
postgres 81.56% <ø> (-0.01%) ⬇️
python 81.65% <ø> (-0.30%) ⬇️
sqlite 81.21% <ø> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
superset/charts/api.py 85.21% <ø> (-0.97%) ⬇️
...d/src/explore/components/PropertiesModal/index.tsx 80.26% <60.00%> (-1.69%) ⬇️
superset/db_engines/hive.py 0.00% <0.00%> (-82.15%) ⬇️
superset/db_engine_specs/hive.py 69.80% <0.00%> (-16.87%) ⬇️
superset/views/database/mixins.py 81.03% <0.00%> (-1.73%) ⬇️
...onfigModal/FiltersConfigForm/FiltersConfigForm.tsx 73.31% <0.00%> (-1.11%) ⬇️
superset/db_engine_specs/presto.py 83.47% <0.00%> (-1.05%) ⬇️
superset/common/query_actions.py 92.00% <0.00%> (-0.86%) ⬇️
superset/db_engine_specs/base.py 87.98% <0.00%> (-0.39%) ⬇️
... and 6 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 b81f120...6313880. Read the comment docs.

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

Looks great, I just left a comment on a line that should be deleted.

tests/integration_tests/charts/api_tests.py Outdated Show resolved Hide resolved
@betodealmeida betodealmeida merged commit 62550db into master Jul 26, 2021
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
* create serialize json function

* saving for now

* saving for now

* lint

* cleanup

* fix network request

* update test

* Update tests/integration_tests/charts/api_tests.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
* create serialize json function

* saving for now

* saving for now

* lint

* cleanup

* fix network request

* update test

* Update tests/integration_tests/charts/api_tests.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* create serialize json function

* saving for now

* saving for now

* lint

* cleanup

* fix network request

* update test

* Update tests/integration_tests/charts/api_tests.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* create serialize json function

* saving for now

* saving for now

* lint

* cleanup

* fix network request

* update test

* Update tests/integration_tests/charts/api_tests.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
@mistercrunch mistercrunch added the 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels label Mar 13, 2024
@mistercrunch mistercrunch deleted the hugh/update-put-query-context branch March 26, 2024 17:56
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/S 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants