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

ignore carto python warnings #1103

Merged
merged 3 commits into from
Oct 18, 2019
Merged

Conversation

simon-contreras-deel
Copy link
Contributor

@simon-contreras-deel simon-contreras-deel commented Oct 14, 2019

Solves a part of #1090

CR and merge CartoDB/carto-python#154 first. Then, I will remove the filterwarnings from api_context file (done)

@simon-contreras-deel simon-contreras-deel changed the title Feature/ignore carto python warnings ignore carto python warnings Oct 14, 2019
@simon-contreras-deel
Copy link
Contributor Author

Auto acceptance 🍏

image

@@ -9,6 +9,9 @@
from ...utils.geom_utils import setting_value_exception
from ...utils.columns import normalize_name

from warnings import filterwarnings
Copy link
Contributor

Choose a reason for hiding this comment

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

Is that still necessary after removing warnings in CARTO Python?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is. In this case, to get the info about datasets from a CARTO account (we need to get the privacy), we are using a non public API. In the carto-python code we are raising a FutureWarning warning about that. This is what we are filtering here.

Copy link
Contributor Author

@simon-contreras-deel simon-contreras-deel Oct 15, 2019

Choose a reason for hiding this comment

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

By the way, we have some of them spread by the CARTOframes code

Copy link
Contributor

@jgoizueta jgoizueta left a comment

Choose a reason for hiding this comment

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

LGTM

@Jesus89 Jesus89 merged commit 6a43dba into develop Oct 18, 2019
@Jesus89 Jesus89 deleted the feature/ignore-carto-python-warnings branch October 18, 2019 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants