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

Added new exception class and start of better exception/error handling #4514

Merged
merged 9 commits into from
Mar 12, 2018
Merged

Added new exception class and start of better exception/error handling #4514

merged 9 commits into from
Mar 12, 2018

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Mar 1, 2018

Receiving 500s for client errors from geovis i think a No Data response shouldn't be a 500 code since its client error and want to throw 400 status. Also lay work for better error throwing moving forward.

@mistercrunch @betodealmeida

@hughhhh hughhhh changed the title Added new exception class and file Added new exception class and start of better exception/error handling Mar 1, 2018
from __future__ import unicode_literals


class NoDataException(Exception):
Copy link
Member

Choose a reason for hiding this comment

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

This should derive superset/utils/SupersetException, we should have all exception in the same module, whether it's still utils or moving it to exceptions.py works for me as well.

@codecov-io
Copy link

codecov-io commented Mar 7, 2018

Codecov Report

Merging #4514 into master will increase coverage by <.01%.
The diff coverage is 92.3%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4514      +/-   ##
==========================================
+ Coverage   71.17%   71.18%   +<.01%     
==========================================
  Files         187      188       +1     
  Lines       14809    14824      +15     
  Branches     1085     1085              
==========================================
+ Hits        10540    10552      +12     
- Misses       4266     4269       +3     
  Partials        3        3
Impacted Files Coverage Δ
superset/viz.py 78.45% <ø> (ø) ⬆️
superset/connectors/base/views.py 81.81% <100%> (ø) ⬆️
superset/db_engine_specs.py 52.33% <100%> (+0.08%) ⬆️
superset/utils.py 87.83% <100%> (-0.29%) ⬇️
superset/exceptions.py 100% <100%> (ø)
superset/connectors/druid/models.py 76.39% <100%> (+0.03%) ⬆️
superset/views/core.py 71.13% <60%> (-0.07%) ⬇️
superset/sql_lab.py 74.21% <0%> (-0.13%) ⬇️
superset/config.py 92.18% <0%> (+0.06%) ⬆️

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 b512da8...d49c6b9. Read the comment docs.

@mistercrunch mistercrunch merged commit 2bc089e into apache:master Mar 12, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
apache#4514)

* rebase and linting

* change back

* wip

* fixed broken test

* fix flake8

* fix test
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
apache#4514)

* rebase and linting

* change back

* wip

* fixed broken test

* fix flake8

* fix test
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.24.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.24.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants