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 flaky unit test - remove 'Markup' object in data #5313

Merged
merged 1 commit into from
Jul 2, 2018

Conversation

mistercrunch
Copy link
Member

@williaster
Copy link
Contributor

@mistercrunch thanks for looking into this!

for the frontend modifications, are existing slices guaranteed to not have markup?

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

@graceguo-supercat
Copy link

I like this code change, simplify modified attribute. But I am not sure this will resolve unit test issue.

@williaster
Copy link
Contributor

I agree, good change but I think the real problem is that tests modify the db, and tests all share the same db.

cc @john-bodley

@mistercrunch
Copy link
Member Author

Went with @graceguo-supercat 's solution as far as fixing the tests go, but I feel like this cleans the regexes and we should get it through.

@codecov-io
Copy link

codecov-io commented Jul 1, 2018

Codecov Report

Merging #5313 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5313      +/-   ##
==========================================
+ Coverage   61.32%   61.33%   +<.01%     
==========================================
  Files         369      369              
  Lines       23488    23483       -5     
  Branches     2717     2713       -4     
==========================================
- Hits        14405    14404       -1     
+ Misses       9071     9067       -4     
  Partials       12       12
Impacted Files Coverage Δ
...rset/assets/src/dashboard/actions/sliceEntities.js 32.25% <ø> (+1.95%) ⬆️
...t/assets/src/dashboard/reducers/getInitialState.js 0% <ø> (ø) ⬆️
...c/dashboard/components/dnd/AddSliceDragPreview.jsx 61.9% <ø> (+2.81%) ⬆️
superset/models/helpers.py 87.7% <100%> (-0.07%) ⬇️

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 885d779...241b0e9. Read the comment docs.

@graceguo-supercat graceguo-supercat merged commit 16d2633 into apache:master Jul 2, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 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.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants