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: timer component, fixes #10849, closes #11002 #11004

Merged
merged 7 commits into from
Sep 23, 2020

Conversation

ktmud
Copy link
Member

@ktmud ktmud commented Sep 22, 2020

SUMMARY

Fixes #10849 introduced by #10455 . Closes #11002 .

I did testing locally. Will add some integration tests shortly.

cc @nytai @graceguo-supercat @etr2460 @tanmaylaud

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

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

@nytai nytai linked an issue Sep 22, 2020 that may be closed by this pull request
3 tasks
@ktmud ktmud mentioned this pull request Sep 22, 2020
6 tasks
Copy link
Member

@nytai nytai left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for reasoning through this

@ktmud ktmud marked this pull request as ready for review September 22, 2020 21:43
@graceguo-supercat
Copy link

graceguo-supercat commented Sep 22, 2020

Thanks for the quick fix! i tested locally and it is working good. I will close the revert PR and favor this !

@zuzana-vej
Copy link
Contributor

Yay thanks @ktmud

Copy link

@graceguo-supercat graceguo-supercat left a comment

Choose a reason for hiding this comment

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

LGTM

@pull-request-size pull-request-size bot added size/L and removed size/M labels Sep 23, 2020
@ktmud
Copy link
Member Author

ktmud commented Sep 23, 2020

@nytai @graceguo-supercat Just did a little more refactoring and added a Cypress test for this bug. I also tested it with the buggy master branch and the test case consistently fails. Lmk if it still looks good.

@codecov-commenter
Copy link

codecov-commenter commented Sep 23, 2020

Codecov Report

Merging #11004 into master will decrease coverage by 4.58%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11004      +/-   ##
==========================================
- Coverage   65.81%   61.22%   -4.59%     
==========================================
  Files         816      816              
  Lines       38381    38374       -7     
  Branches     3606     3606              
==========================================
- Hits        25260    23495    -1765     
- Misses      13013    14693    +1680     
- Partials      108      186      +78     
Flag Coverage Δ
#cypress ?
#javascript 61.68% <80.00%> (-0.04%) ⬇️
#python 60.95% <ø> (-0.43%) ⬇️

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

Impacted Files Coverage Δ
superset-frontend/src/components/Timer.tsx 79.16% <78.94%> (-17.27%) ⬇️
superset-frontend/src/components/Label/index.tsx 100.00% <100.00%> (ø)
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/setup/setupColors.js 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/chart/ChartContainer.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/setup/setupFormatters.js 0.00% <0.00%> (-100.00%) ⬇️
... and 169 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 345fe07...63378d4. Read the comment docs.

@nytai
Copy link
Member

nytai commented Sep 23, 2020

looks even better to me! 😄

@ktmud ktmud force-pushed the bugfix--timer branch 2 times, most recently from f512145 to b07d11c Compare September 23, 2020 08:33
@ktmud
Copy link
Member Author

ktmud commented Sep 23, 2020

The Cypress test keeps failing in CI. Skip it for now to unblock merging.

@ktmud ktmud merged commit 7549dad into apache:master Sep 23, 2020
rorymillersoft referenced this pull request in nets-aric/incubator-superset Oct 16, 2020
* master: (466 commits)
  chore: bump pandas to latest stable version (#11018)
  fix: dashboard edit button (again) (#11029)
  style(explore): use tertiary button against gray background (#11011)
  docs: add security vulnerability GH issue template (#11023)
  fix: [dashboard] should not show edit button when user has no edit permit (#11024)
  fix: timer component, fixes #10849, closes #11002 (#11004)
  fix: enable several pylint rules partially in db_engines_specs module (#11000)
  fix: pylint checks in connectors/sqla/models.py (#10974)
  fix: reenable pylint rule `unused-import` in charts and connectors modules (#11014)
  Enabled pylint rules in `db_engines` module: (#11016)
  fix: changes a pylint check in dashboard module (#10978)
  fix: menu shows a 0 when there are not settings (#11009)
  fix: query search low privileged user search access denied (#11017)
  chore: downgrade expected exception from error to info (#10994)
  fix: Add Item Overflow on Dataset Editor (#10983)
  Bring back import menu (#11007)
  feat(listview): feature flag config to set default viewing mode (#10986)
  build: add react-hooks linting (#11006)
  fix: unbreak ci (#11003)
  fix: enable pylint rules in db_engine_specs module (#10998)
  ...

# Conflicts:
#	requirements.txt
#	superset/app.py
#	superset/models/schedules.py
#	superset/tasks/schedules.py
#	superset/translations/messages.pot
@ktmud ktmud deleted the bugfix--timer branch November 9, 2020 23:03
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added the 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels label Mar 12, 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.38.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timer in SQL Lab and Explore doesn't work
6 participants