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

CARTO provider for cloud storage #985

Merged
merged 7 commits into from
Mar 5, 2020

Conversation

neokore
Copy link
Contributor

@neokore neokore commented Mar 4, 2020

This feature allows loading/saving private and public maps using CARTO.

Related to #804


render() {
return (
<Icons.IconWrapper {...this.props} viewBox={'0 0 92 36'}>
Copy link
Contributor

Choose a reason for hiding this comment

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

IconWrapper should pass viewBox from props, viewBox={'0 0 92 36'} shouldn't be needed here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!


this._carto.setClientID(clientId);

if (this.getAccessToken()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should it be !this.getAccessToken()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 This is not needed anymore, I deleted it

return this.clientId !== null;
}

isConnected() {
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't think isConnected is used anymore. in the UI we always call const isConnected = Boolean(cloudProvider.getAccessToken()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

* The CARTO cloud provider sets by the default the privacity to public
* @param {*} metadata
*/
shareFile(metadata) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this method is private to dropbox, it is not called by UI

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

}
}

getMapPermalink(mapLink, fullURL = true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

no longer called by UI, can make it private

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 Not needed anymore, deleted

: `/${mapLink}`;
}

getMapPermalinkFromParams({mapId, owner, privateMap}, fullURL = true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

no longer called by UI, can make it private

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

Signed-off-by: Raúl Yeguas <[email protected]>
@heshan0131 heshan0131 merged commit cbba40e into keplergl:master Mar 5, 2020
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.

2 participants