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

3775 fix geocode shared table rw #4509

Merged
merged 3 commits into from
Jul 17, 2015
Merged

Conversation

rafatower
Copy link
Contributor

This fixes #3775 Can't geocode table shared with me (with write permissions). At first I tried to fix it by granting sufficient permissions to the user, but turns out it is a limitiation of postgres.

Sbd from @CartoDB/backend please review

@Cartofante
Copy link
Collaborator

Frontend tests were OK 👍 (details)

Tested guessing on import and OK, so removing TODO comment.
@rafatower rafatower changed the title [NO MERGE] 3775 fix geocode shared table rw 3775 fix geocode shared table rw Jul 17, 2015
@Cartofante
Copy link
Collaborator

Frontend tests were OK 👍 (details)

@@ -122,6 +122,9 @@ def run!
rows_geocoded_before = table_service.owner.in_database.select.from(table_service.sequel_qualified_table_name).where(cartodb_georef_status: true).count rescue 0

self.run_geocoding!(processable_rows, rows_geocoded_before)
rescue => e
CartoDB.notify_exception(e)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add context information (table, user...)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll move all that code, when I put a proper logger #4417

@juanignaciosl
Copy link
Contributor

👍

rafatower pushed a commit that referenced this pull request Jul 17, 2015
@rafatower rafatower merged commit ae04ca2 into master Jul 17, 2015
@rafatower rafatower deleted the 3775-fix-geocode-shared-table-rw branch July 17, 2015 09:36
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.

Can't geocode a table shared with me
3 participants