-
Notifications
You must be signed in to change notification settings - Fork 14
Added Google Maps API key support #554
base: development
Are you sure you want to change the base?
Conversation
|
Thanks, @antoniocarlon. 👏 @andrewbt, would you be able to help us with the acceptance test? |
|
This is great! Happy to help - it's infrequent that I do testing in staging servers, etc so can one of you help me out and slack or email me credentials of an environment that has this PR enabled so I can test? I'd make these additions/changes to the acceptance criteria below (sight unseen, so maybe these are wrong but I think it covers more valid cases than above). In particular, number 3 is confusing and I'm not sure when it would happen (if a Gmaps user has an API key, they probably will have transitioned off of using their
|
|
Oh, also, I'll need access to a GCP console project with Billing enabled to create/delete API keys for the testing. I don't anticipate any actual charges, but Google requires a Billing account set up to create the requisite API keys (https://developers.google.com/maps/documentation/javascript/get-api-key#step-1-get-an-api-key) (cc @cmpera we might want to think about getting a general Solutions GCP account with Billing anyway to make tasks like this easier as we continue to leverage our GCP relationship for testing/demos/etc. I could use my personal CC and expensify but that doesn't seem the most robust way) |
API Keys created and sent to @andrewbt via Slack. Will also get uploaded to Lastpass shared-solutions folder ASAP you can check them out here /cc @jvillarf for awareness |
|
Let's remove them, once the testing period is over. |
|
Didn't have time for this last week but I anticipate being able to complete
it this week, thanks will post updates here!
…On Mon, May 20, 2019 at 11:43 AM jvillarf ***@***.***> wrote:
@andrewbt <https://github.com/andrewbt> @cmpera
<https://github.com/cmpera> If you need permanent API keys for testing,
or demos, etc, please let us know, in order to create you the right ones,
in the suitable Google Project, etc.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#554?email_source=notifications&email_token=AAPLS4YBTKEFVE3AHWBFAM3PWLBJNA5CNFSM4HLSAURKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVZHYRQ#issuecomment-494042182>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPLS4Y3Q6JPODM7XSZWAELPWLBJNANCNFSM4HLSAURA>
.
--
Andrew Thompson, Solutions Engineer
*CARTO* | 201 Moore St, Brooklyn, NY, 11206
athompson@carto.com | T +1 508.333.7265 <+15083337265>
Web carto.com <http://cartodb.com/> | Twitter @carto
<http://twitter.com/carto>
Unlock the Potential of Your Location Data
Live sessions to learn CARTO <http://carto.com/webinars/>
|
|
@antoniocarlon Tried to test today but I think the server you had set up before is down/gone, can you spin up again for the Also @gonzalosr can you confirm that |
|
@andrewbt done, the server is up and running! |
|
@andrewbt these API keys are only API type limited, so AFAIK they can be used from any ip/host/referrer |
|
Hi @andrewbt , i've restricted the API keys to the host below. Please, let us know if you need anything else from our side. |
|
@antoniocarlon I was trying to import datasets to geocode, ran into this error for both accounts: You're sure the servers are running now? |
|
Hi @andrewbt, I have created new accounts: |
|
Began testing today finally. I can confirm that I can enable and toggle the Google Maps basemaps options with an appropriately-permissioned Maps Javascript API key. However, I haven't gotten geocoding to work yet. It seems like CARTO is checking geocoding quota when Google Maps is enabled as the geocoding provider, and there's something wacky with these users quota settings. Given that Google will bill/monitor users for geocoding quota I don't think CARTO should check for it at all. In other words, on Google-CARTO accounts we should suppress our geocoding quota checking features and just be a straight "pass through" to the Google API. Additionally, a couple smaller bugs: Bug #1:
Bug #2: Bug #3: Will continue testing starting Tuesday next week. |
|
Thank you for your tests @andrewbt The issues that you have found seem to be unrelated to this PR, could you open a new issue for them? Regarding the quotas, I have checked that if the geocoder is set to Google it should not check for quotas (https://github.com/CartoDB/dataservices-api/blob/development/server/lib/python/cartodb_services/cartodb_services/metrics/quota.py#L87-L90) but I'll take a look at it to double check this quota issue 🤔 --> I have added tests for Google quota check and verified that everything is working as expected, how do you know that CARTO is checking geocoding quota when Google Maps is enabled as the geocoding provider? |
|
@antoniocarlon , sorry, posted that comment in a rush and meant to include screenshots: Should I be trying via the SQL API data services functions instead of Builder? (I was going to try them next after I got builder to work) What is the scope of this PR? Are basemaps not included in the scope? |
|
And should I create new issues for those other bugs here in dataservices, or some other repo? Builder? Not sure where all the involved functionality is located :) |
|
Thank you @andrewbt ! I see 3 different issues here:
The three issues are related to Builder and I think that they should be created in the https://github.com/CartoDB/cartodb repo (and I would say that Response Team should take care of them). |
|
@andrewbt Did you create the issues? Can you give me an update on this project/issue? |
|
@ivanmalagon I created two issues, CartoDB/cartodb/issues/14942, CartoDB/cartodb/issues/14943, you can see above too. I haven't created an issue for @antoniocarlon's point above as I think he/someone else could define the specifics better than me, but this should probably be an issue also:
I discussed this with @inigomedina this morning, sorry for the confusion and delay on this one. It's been difficult for me to test it completely in a timely manner and I don't want to be a blocker for the process. I don't think we were ever aligned on the full scope/complexity of the tasks needed to fully support new-style Google API keys across Builder and the CARTO Platform. When Inigo asked me to help with testing this PR, I had been thinking it covered all Google functionality including Builder, but it seems the changes here are maybe only relevant to Data Services functions used via SQL API. That is a step towards complete support but not the whole story. (I'm also not sure the acceptance criteria we defined above is completely correct :-/ ) Definitely take a look at the discussion in CartoDB/cartodb-central/issues/2406 for background. Let me attempt to define a possible full scope of the initiative here:
This PR gets us some of the way to that complete support, but not all the way. In terms of additional stakeholders or other people to talk to, you and Inigo might want to talk to Jatorre (who is leading our Google partnership nowadays) and our Google engineering contacts like Sean Wohltman. Hope this detail is helpful. |
|
Hey @andrewbt , our technical account manager is called Brian Weeks brianweeks@google.com and he will be more than happy to get any question from our side, so please, feel free to write him. |
|
Anyone in this thread, what's the status of this? |
|
AFAIK this is not accepted yet. |
|
@alrocar see my comment on June 4th, as far as I know everything there is still the case, mainly:
Agree with @antoniocarlon, it remains not accepted because I wasn't able to get clarity on what the right acceptance criteria were for this PR. This was probably a mis-communication/mis-scoping, and "full" Google support like we used to have will take more work across more parts of the platform than this PR alone (but this PR could still be part of it - I think?). I think it probably would be worth a conversation with Jatorre to see if the required level of investment is worthwhile, since he is the one managing the Google strategic relationship nowadays. |
|
I see, thanks both for the update. So for me this could be a product initiative to be considered for priorization. @andrewbt Would you be able to write a product issue with a description of the problem and a reference to this PR. |
|
@alrocar done, thanks :) https://github.com/CartoDB/product/issues/470 |
|
@andrewbt AWESOME!! Thanks!! |





Notes for the acceptance:
We need to test the following in both
non-organdorgusers:client_idandsecretfor Google geocoding (can be done in Superadmin setting theGoogle Maps query stringandGoogle Maps private key)Google Maps query stringfield empty and set the API key for Google geocoding (can be done in Superadmin setting theGoogle Maps private key, withsomething like
key=AIzaXXXX)client_idfor basemaps and an API key for geocodingRelated to https://github.com/CartoDB/cartodb-central/issues/2406
cc @inigomedina