superset icon indicating copy to clipboard operation
superset copied to clipboard

Viz validation overrides no longer being used

Open jaylindquist opened this issue 7 years ago • 8 comments

PR #7231 updated visualization validation to take place in the exploreReducer.js SET_FIELD_VALUE action. This validation does not take into account any controlOverrides on the visualization.

Specifically, the Table viz removes any validatation from the metrics row control. This means attempting to create a Table with only "Not Grouped By" columns fails.

Expected results

Be able to create a Table visualization with only "Not Grouped By" columns

Actual results

Creating any Table without a "Metrics" results in an error

Screenshots

image

How to reproduce the bug

  1. Create a Table Visualization
  2. Delete "Group by" and "Metrics" values
  3. Add "Not Grouped By" columns

Environment

Master branch as of April 22 (commit: 845218dd88ad2fe1284dcb7427c5bff20749dc74)

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • [x] I have reproduced the issue with at least the latest released version of superset.
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

n/a

jaylindquist avatar Apr 24 '19 03:04 jaylindquist

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Apr 24 '19 03:04 issue-label-bot[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Jun 23 '19 03:06 stale[bot]

I think we should reopen this issue and it's important to fix.

ali-behjati avatar Aug 25 '19 14:08 ali-behjati

+1 on this. I am able to skirt around the issue by first defining "Not Grouped By" columns, and then clearing the 'Metrics' field.

first-caveman avatar Oct 04 '19 01:10 first-caveman

The other way to workaround is to change Vis Type to something else and change is back to Table. Or just select Table explicitly (even if it is already selected) after Explore page loaded before changing any settings.

axelet avatar May 21 '20 11:05 axelet

I could not reproduce on master. Loaded up a table chart and cleared Metrics field. Screen Shot 2020-05-21 at 8 30 23 PM

mistercrunch avatar May 22 '20 03:05 mistercrunch

@mistercrunch I also tested on master and it doesn't reproduce for me either when loading from a chart. But on the other hand when going through Sources -> Tables, choosing birth_names, for example, and clearing COUNT metric, it does appear for me (tested on Chrome, Opera).

axelet avatar May 28 '20 09:05 axelet

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Jul 27 '20 11:07 stale[bot]