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

Show scheduled queries #7521

Merged
merged 7 commits into from
May 16, 2019
Merged

Show scheduled queries #7521

merged 7 commits into from
May 16, 2019

Conversation

betodealmeida
Copy link
Member

CATEGORY

Choose one

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

SUMMARY

This PR shows scheduled information on saved queries that have them.

In order to do this, I created a custom template for showing the saved query, extending the native one from FAB. The template injects Javascript code and a <div>, and the Javascript code inserts a <Form> component with the scheduled information.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

It looks ugly, but I'll fix the CSS in another PR:

Screen Shot 2019-05-15 at 5 00 27 PM

TEST PLAN

Tested locally.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

@mistercrunch @datability-io @DiggidyDave @khtruong

@@ -153,7 +153,7 @@ def json_response(self, obj, status=200):
status=status,
mimetype='application/json')

def common_bootsrap_payload(self):
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 made me super confused, since I was grepping for bootstrap and couldn't find this method!

@codecov-io
Copy link

Codecov Report

Merging #7521 into lyft-develop will increase coverage by 7.84%.
The diff coverage is 62.5%.

Impacted file tree graph

@@               Coverage Diff                @@
##           lyft-develop    #7521      +/-   ##
================================================
+ Coverage         65.29%   73.13%   +7.84%     
================================================
  Files               432       84     -348     
  Lines             21386    11122   -10264     
  Branches           2357        0    -2357     
================================================
- Hits              13963     8134    -5829     
+ Misses             7303     2988    -4315     
+ Partials            120        0     -120
Impacted Files Coverage Δ
superset/views/core.py 72.92% <ø> (ø) ⬆️
superset/views/base.py 70.5% <100%> (ø) ⬆️
superset/views/sql_lab.py 86.95% <60%> (-7.69%) ⬇️
superset/dataframe.py 83.03% <0%> (-11.61%) ⬇️
superset/db_engine_specs.py 60.15% <0%> (-1.32%) ⬇️
superset/utils/core.py 87.97% <0%> (-0.18%) ⬇️
superset/assets/src/components/Checkbox.jsx
...ations/deckgl/layers/Polygon/PolygonChartPlugin.js
...ets/src/dashboard/components/dnd/DragDroppable.jsx
...c/visualizations/deckgl/layers/Polygon/Polygon.jsx
... and 344 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 bfa5250...d7a55d3. Read the comment docs.

@betodealmeida betodealmeida merged commit f0a8b67 into apache:lyft-develop May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants