OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
Searches results for trees or green infrastructure resources with missing photos were not updating after adding photos. I resolved this by ensuring that we increment the universal_rev after adding a photo.
Testing
Create an instance with green infrastructure and enable the GI features.
Add 2 trees and a GI resource.
Search for missing photos, should match 2 trees and 1 resource.
In a separate tab, load the detail page for the GI resource and add a photo.
Refresh the search page. The missing photo count should drop to 2 trees and 0 resources.
Repeat the process and add a photo to a tree. The count should drop to 1 tree and 0 resources.
Use a mobile app to add a photo to the remaining tree. After refreshing the map page the count should drop to 0 trees and 0 resources.
Coverage decreased (-0.007%) to 83.784% when pulling 8589e152fda90a8a0a64c4d02a1fcbeddc4d4b3b on jwalgran:feature/adding-photo-increments-rev into b256612d62e0f02acb72d3ab9bb838254ff313aa on OpenTreeMap:develop.
Searches results for trees or green infrastructure resources with missing photos were not updating after adding photos. I resolved this by ensuring that we increment the
universal_rev
after adding a photo.Testing
Connects to #3126