Create a button to autofill submission with details from the google places API #1035
Labels
code quality
enhancement
New feature or request
moderation panel
pair programming
This is a ticket that is good to pair with someone on
Problem
We have the functionality implemented on the backend to autofill submissions with information from the google places API. This is to help moderators as we grow have less work to do. We need a button on the
ModEditSubmissionForm.vue
That allows for this API call in our server to be triggered. This button should only be enabled if it has not been updated before.Success
A button is implemented with a translatable string to autofill a user submission using the provided google maps url. The button is only enabled if the key seen here is not truthy.
Requirements
autofillPlaceFromSubmissionUrl
is falsy (not truthy)Implementation notes
You will want to use this API call type which can be found here
You can make the mutation request by running the backend locally and going to the local API at http://127.0.0.1:4000/
It might be difficult to test if it is working due to not having an API key for the google places API. We will have to find a way to test that.
The text was updated successfully, but these errors were encountered: