Skip to content

fix(dashboard): cross filter chart highlight when filters badge icon clicked#16233

Merged
kgabryje merged 4 commits intoapache:masterfrom
kgabryje:fix/cross-filter-indicator
Aug 13, 2021
Merged

fix(dashboard): cross filter chart highlight when filters badge icon clicked#16233
kgabryje merged 4 commits intoapache:masterfrom
kgabryje:fix/cross-filter-indicator

Conversation

@kgabryje
Copy link
Copy Markdown
Member

SUMMARY

This PR fixes highlighting the chart emitting a cross filter when magnifier icon in filter's badge is clicked. Before, nothing happened when icon was clicked. Now it highlights and scrolls the chart to view and changes tab if needed.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before: see #16220
After:

Screen.Recording.2021-08-12.at.16.43.52.mov

TESTING INSTRUCTIONS

  1. Enable cross filtering feature flag
  2. Open a dashboard that contains charts that can emit cross filters
  3. Emit cross filter
  4. Click filters badge on another chart and click magnifier icon of the chart that emits the cross filter
  5. Verify that the source chart gets highlighted and scrolled into view

ADDITIONAL INFORMATION

CC @junlincc @jinghua-qa

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 12, 2021

Codecov Report

Merging #16233 (3dcca18) into master (b61c34f) will increase coverage by 0.02%.
The diff coverage is 63.15%.

❗ Current head 3dcca18 differs from pull request most recent head ef33f65. Consider uploading reports for the commit ef33f65 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16233      +/-   ##
==========================================
+ Coverage   76.71%   76.74%   +0.02%     
==========================================
  Files         996      996              
  Lines       53080    53158      +78     
  Branches     6739     6763      +24     
==========================================
+ Hits        40721    40796      +75     
- Misses      12130    12132       +2     
- Partials      229      230       +1     
Flag Coverage Δ
javascript 71.03% <64.63%> (+0.06%) ⬆️

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

Impacted Files Coverage Δ
superset-frontend/src/components/Form/Form.tsx 100.00% <ø> (ø)
...ontrols/DndColumnSelectControl/DndColumnSelect.tsx 46.42% <ø> (-0.94%) ⬇️
...rontend/src/explore/components/optionRenderers.tsx 100.00% <ø> (ø)
...set-frontend/src/views/CRUD/data/database/types.ts 100.00% <ø> (ø)
...c/visualizations/TimeTable/TimeTableChartPlugin.js 75.00% <ø> (ø)
superset/examples/bart_lines.py 27.58% <0.00%> (ø)
superset/examples/deck.py 12.50% <0.00%> (ø)
superset/examples/flights.py 17.64% <0.00%> (ø)
superset/examples/long_lat.py 23.80% <0.00%> (ø)
superset/examples/sf_population_polygons.py 26.92% <0.00%> (ø)
... and 14 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 b61c34f...ef33f65. Read the comment docs.

@junlincc
Copy link
Copy Markdown
Member

/testenv up FEATURE_DASHBOARD_NATIVE_FILTERS=true FEATURE_DASHBOARD_CROSS_FILTERS=true

@github-actions
Copy link
Copy Markdown
Contributor

@junlincc Ephemeral environment spinning up at http://54.201.91.128:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@kgabryje
Copy link
Copy Markdown
Member Author

/testenv up FEATURE_DASHBOARD_NATIVE_FILTERS=true FEATURE_DASHBOARD_CROSS_FILTERS=true

@github-actions
Copy link
Copy Markdown
Contributor

@kgabryje Ephemeral environment spinning up at http://18.237.98.47:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@kgabryje kgabryje merged commit 517a678 into apache:master Aug 13, 2021
@github-actions
Copy link
Copy Markdown
Contributor

Ephemeral environment shutdown and build artifacts deleted.

stevenuray pushed a commit to preset-io/superset that referenced this pull request Aug 13, 2021
…clicked (apache#16233)

* fix(dashboard): cross filter chart highlight when filters badge icon pressed

* Fix tests

* Fix tests

* break out label logic

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
(cherry picked from commit 517a678)
@rosemarie-chiu
Copy link
Copy Markdown
Contributor

🏷 2021.31

@villebro villebro added the v1.3 label Aug 16, 2021
villebro added a commit that referenced this pull request Aug 16, 2021
…clicked (#16233)

* fix(dashboard): cross filter chart highlight when filters badge icon pressed

* Fix tests

* Fix tests

* break out label logic

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
(cherry picked from commit 517a678)
amitmiran137 pushed a commit that referenced this pull request Aug 16, 2021
…gies

* upstream/master: (64 commits)
  check roles before fetching reports (#16260)
  chore: upgrade mypy and add type guards (#16227)
  fix: pivot columns with ints for name (#16259)
  chore(pylint): Bump Pylint to 2.9.6 (#16146)
  fix examples tab for dashboard (#16253)
  chore: bump superset-ui packages to 0.17.84 (#16251)
  chore: Shows the dataset description in the gallery dropdown (#16200)
  fix(Dashboard): Omnibar dropdown visibility and keyboard commands (#16168)
  chore: bump py version for integration test (#16213)
  fix: skip perms on query context update (#16250)
  refactor: external metadata fetch API (#16193)
  feat(dao): admin can remove self from object owners (#15149)
  fix(dashboard): cross filter chart highlight when filters badge icon clicked (#16233)
  fix: validate_parameters and query (#16241)
  fix: Remove Advanced Analytics tag for 2 charts (#16240)
  Revert "feat: Changing Dataset names (#16199)" (#16235)
  feat: Allow users to connect via legacy SQLA form (#16201)
  fix: remove encryption from db params (#16214)
  fix(Explore): Show the tooltip only when label does not fit the container in METRICS/FILTERS/GROUP BY/SORT BY of the DATA panel (#16060)
  Show/hide tooltips (#16192)
  ...

# Conflicts:
#	superset/tasks/caching/cache_strategy.py
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
…clicked (apache#16233)

* fix(dashboard): cross filter chart highlight when filters badge icon pressed

* Fix tests

* Fix tests

* break out label logic

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
…clicked (apache#16233)

* fix(dashboard): cross filter chart highlight when filters badge icon pressed

* Fix tests

* Fix tests

* break out label logic

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
(cherry picked from commit 517a678)
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
…clicked (apache#16233)

* fix(dashboard): cross filter chart highlight when filters badge icon pressed

* Fix tests

* Fix tests

* break out label logic

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
…clicked (apache#16233)

* fix(dashboard): cross filter chart highlight when filters badge icon pressed

* Fix tests

* Fix tests

* break out label logic

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
(cherry picked from commit 517a678)
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
…clicked (apache#16233)

* fix(dashboard): cross filter chart highlight when filters badge icon pressed

* Fix tests

* Fix tests

* break out label logic

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
(cherry picked from commit 9f07295)
@mistercrunch mistercrunch added 🍒 1.3.0 Cherry-picked to 1.3.0 🍒 1.3.1 Cherry-picked to 1.3.1 🍒 1.3.2 Cherry-picked to 1.3.2 labels Mar 13, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.0 First shipped in 1.4.0 labels Mar 13, 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 preset:2021.31 size/M v1.3 🍒 1.3.0 Cherry-picked to 1.3.0 🍒 1.3.1 Cherry-picked to 1.3.1 🍒 1.3.2 Cherry-picked to 1.3.2 🚢 1.4.0 First shipped in 1.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cross filter] clicking on the magnifier in cross filter indicator did not bring to emitting chart

5 participants