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

[bufix] filtered column was removed #4921

Merged
merged 1 commit into from
May 2, 2018

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented May 2, 2018

screen shot 2018-05-02 at 9 03 07 am

if a filter is created on a chart, and the column is removed from the
dataset, you get a "'NoneType' object has no attribute
'is_num'" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

if a filter is created on a chart, and the column is removed from the
dataset, you get a "'NoneType' object has no attribute
'is_num'" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.
@codecov-io
Copy link

codecov-io commented May 2, 2018

Codecov Report

Merging #4921 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4921   +/-   ##
=======================================
  Coverage   77.12%   77.12%           
=======================================
  Files          44       44           
  Lines        8539     8539           
=======================================
  Hits         6586     6586           
  Misses       1953     1953
Impacted Files Coverage Δ
superset/viz.py 79.9% <100%> (ø) ⬆️
superset/connectors/sqla/models.py 76.32% <100%> (ø) ⬆️

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 fa4acb1...6b9b729. Read the comment docs.

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

+1

@mistercrunch mistercrunch merged commit e213ccd into apache:master May 2, 2018
@mistercrunch mistercrunch deleted the fix_escape branch May 2, 2018 22:24
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request May 2, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

(cherry picked from commit e213ccd)
@michellethomas
Copy link
Contributor

It could get a little confusing if the filter remains in the form data but gets disregarded in the backend. It would look like the filter is still getting applied but it's actually the case the field doesn't exist. What about just showing a better error message (a prompt to remove the filter)?

hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request May 16, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

(cherry picked from commit e213ccd)
@mistercrunch
Copy link
Member Author

Yes there should be a validator on the FiltersControl that would raise a flag and prevent the query from running.

michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&apache#39;NoneType&apache#39; object has no attribute
&apache#39;is_num&apache#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request May 30, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

(cherry picked from commit e213ccd)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request May 30, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

(cherry picked from commit e213ccd)
timifasubaa pushed a commit to timifasubaa/incubator-superset that referenced this pull request May 31, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&apache#39;NoneType&apache#39; object has no attribute
&apache#39;is_num&apache#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Jun 4, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

(cherry picked from commit e213ccd)
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Jun 7, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

(cherry picked from commit e213ccd)
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Jun 7, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

(cherry picked from commit e213ccd)
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Jun 7, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

(cherry picked from commit e213ccd)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Jun 7, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

(cherry picked from commit e213ccd)
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Jun 27, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.

(cherry picked from commit e213ccd)
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&apache#39;NoneType&apache#39; object has no attribute
&apache#39;is_num&apache#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.25.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.25.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants