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

Kuviz publish #718

Merged
merged 37 commits into from
Jun 6, 2019
Merged

Kuviz publish #718

merged 37 commits into from
Jun 6, 2019

Conversation

simon-contreras-deel
Copy link
Contributor

@simon-contreras-deel simon-contreras-deel commented May 31, 2019

Solves a part of #674

Publish method implementation.

Please, you should review #717 first because this one is based on it.

cartoframes/viz/map.py Outdated Show resolved Hide resolved
cartoframes/viz/map.py Outdated Show resolved Hide resolved
cartoframes/viz/map.py Outdated Show resolved Hide resolved
cartoframes/viz/kuviz.py Outdated Show resolved Hide resolved
cartoframes/viz/kuviz.py Outdated Show resolved Hide resolved
test/viz/test_map.py Outdated Show resolved Hide resolved
test/viz/test_kuviz.py Outdated Show resolved Hide resolved
test/mocks/map_mock.py Show resolved Hide resolved
cartoframes/viz/kuviz.py Outdated Show resolved Hide resolved
cartoframes/viz/kuviz.py Show resolved Hide resolved
@simon-contreras-deel simon-contreras-deel changed the title [WIP] Kuviz publish Kuviz publish Jun 4, 2019
Copy link
Contributor

@alrocar alrocar left a comment

Choose a reason for hiding this comment

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

Some doubts and suggestions.

cartoframes/viz/kuviz.py Outdated Show resolved Hide resolved
cartoframes/viz/kuviz.py Show resolved Hide resolved
cartoframes/viz/kuviz.py Outdated Show resolved Hide resolved
cartoframes/viz/kuviz.py Outdated Show resolved Hide resolved
cartoframes/viz/map.py Outdated Show resolved Hide resolved
cartoframes/viz/kuviz.py Outdated Show resolved Hide resolved
cartoframes/viz/map.py Outdated Show resolved Hide resolved
Co-Authored-By: Alberto Romeu <alrocar@users.noreply.github.com>
simon-contreras-deel and others added 4 commits June 5, 2019 14:32
Co-Authored-By: Alberto Romeu <alrocar@users.noreply.github.com>
Co-Authored-By: Alberto Romeu <alrocar@users.noreply.github.com>
Co-Authored-By: Alberto Romeu <alrocar@users.noreply.github.com>
Co-Authored-By: Alberto Romeu <alrocar@users.noreply.github.com>
Copy link
Contributor

@andy-esch andy-esch left a comment

Choose a reason for hiding this comment

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

Exciting! Some minor changes. Took me a while to see the bigger picture but the notebook helped a lot :)

cartoframes/datasets/dataset.py Show resolved Hide resolved
cartoframes/viz/kuviz.py Outdated Show resolved Hide resolved
if not layer.source.dataset.get_is_saved_in_carto():
layer.source.dataset.upload(table_name=table_name, context=context)
layer.source = Source(table_name, context=context)
warn('Table `{}` created. In order to publish the map, you will need to create a new Regular API '
Copy link
Contributor

Choose a reason for hiding this comment

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

It'd be pretty sweet if we could help them do that automagically (and explicitly) through cartoframes so that we take away the disruption to the workflow that getting a new key entails.

Related: #542

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have Auth API implemented in carto-python yet, but when we have it, we will be able to do it automagically

test/viz/test_kuviz.py Outdated Show resolved Hide resolved
@@ -188,8 +191,33 @@ def __init__(self,
def _repr_html_(self):
return self._htmlMap.html

def publish(self):
pass
def publish(self, name, maps_api_key='default_public', context=None, password=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

What's password?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can creare a custom visualization wirh password. It is the same as a embed with password

@simon-contreras-deel simon-contreras-deel requested review from andy-esch and alrocar and removed request for andy-esch June 6, 2019 08:18
Copy link
Contributor

@alrocar alrocar left a comment

Choose a reason for hiding this comment

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

🚀

@simon-contreras-deel simon-contreras-deel merged commit ef6cd64 into kuviz Jun 6, 2019
@simon-contreras-deel simon-contreras-deel deleted the kuviz-publish branch June 6, 2019 08:43
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