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

Deletes a new resource if first attempt to save tile to it fails. re #4725 #4746

Merged
merged 4 commits into from
Apr 3, 2019

Conversation

chiatt
Copy link
Member

@chiatt chiatt commented Apr 3, 2019

Deletes a resource if the first attempt to save a tile to it fails. This prevents a resource from getting saved and indexed with no tile data. re #4725

@@ -92,6 +92,9 @@ def post(self, request):
try:
tile.save(request=request)
except TileValidationError as e:
resource_tiles = models.TileModel.objects.filter(resourceinstance=tile.resourceinstance)
Copy link
Contributor

Choose a reason for hiding this comment

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

E501 line too long (124 > 119 characters)

@coveralls
Copy link

Coverage Status

Coverage remained the same at ?% when pulling 8559d0c on 4725_incorrect_prov_flag into 89e6b93 on master.

@chiatt chiatt merged commit 7f0d1d1 into master Apr 3, 2019
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.

3 participants