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] copy filter_scopes with duplicate charts #9271

Merged
merged 1 commit into from Mar 10, 2020

Conversation

graceguo-supercat
Copy link

CATEGORY

Choose one

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

SUMMARY

in code refactor PR #9224, it introduced a bug:
https://github.com/apache/incubator-superset/blob/7a91498cf1a9e56d4b3d7b3805076137525ea277/superset/views/core.py#L1293
here we should use old slice's id as key instead of sid which is new or copied slice's id

TEST PLAN

fixed unit test.

ADDITIONAL INFORMATION

REVIEWERS

@serenajiang @john-bodley

@codecov-io
Copy link

Codecov Report

Merging #9271 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #9271      +/-   ##
=========================================
- Coverage   58.93%   58.9%   -0.03%     
=========================================
  Files         373     373              
  Lines       12014   12026      +12     
  Branches     2945    2953       +8     
=========================================
+ Hits         7080    7084       +4     
- Misses       4755    4763       +8     
  Partials      179     179
Impacted Files Coverage Δ
...t-frontend/src/dashboard/actions/dashboardState.js 30.66% <0%> (-1.06%) ⬇️
...uperset-frontend/src/views/chartList/ChartList.tsx 62.72% <0%> (-0.67%) ⬇️
superset-frontend/src/chart/Chart.jsx 10.41% <0%> (ø) ⬆️
...erset-frontend/src/dashboard/components/Header.jsx 41.79% <0%> (ø) ⬆️
...d/src/dashboard/components/SliceHeaderControls.jsx 11.62% <0%> (ø) ⬆️
.../src/dashboard/components/gridComponents/Chart.jsx 67.41% <0%> (ø) ⬆️
...-frontend/src/dashboard/components/SliceHeader.jsx 24% <0%> (ø) ⬆️
...nd/src/dashboard/containers/DashboardComponent.jsx 92% <0%> (ø) ⬆️
...ashboard/components/gridComponents/ChartHolder.jsx 79.66% <0%> (ø) ⬆️
superset-frontend/src/chart/chartAction.js 43.87% <0%> (+0.53%) ⬆️
... and 1 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 7a91498...45d25cf. Read the comment docs.

@graceguo-supercat graceguo-supercat merged commit 724b8a3 into apache:master Mar 10, 2020
@graceguo-supercat graceguo-supercat deleted the gg-FixCopyScopes branch June 11, 2020 23:21
@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/S 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants