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

[FLAG-1252] Use Data API Geostore Endpoints #4930

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

willian-viana
Copy link
Collaborator

Overview

There are currently two geostore services at WRI. One is managed within ResourceWatch and the other within the Data API.

Data Lab’s strategic vision is to merge the two and have one single service managed solely by the Data API.

Because the GADM 4.1 administrative boundary geostores will be stored within the Data API, Flagship should update its geostore client from ResourceWatch to the Data API.

Scope

The Data API implements the endpoint interface that Flagship currently uses, so only a slight modification to the URL used will be necessary.

Implementation Details

Where Flagship makes calls like: https://api.resourcewatch.org/v2/geostore/...

It uses the Data API instead: https://data-api.globalforestwatch.org/geostore/...

The current gadm feature branch currently has a Data API method in geostore.js. Since the ResourceWatch and Data API interface will be the same, the complicated dataset query logic will no longer be needed.

What About My Custom Geostores Managed within the ResourceWatch Geostore microservice?

The Data API transition will be gradual, starting with administrative boundaries. Data API Geostore service requests will proxy to ResourceWatch for any custom boundary request or other part of the existing interface. This will make our transition seamless for Flagship.

@willian-viana willian-viana self-assigned this Feb 12, 2025
@willian-viana willian-viana changed the base branch from epic/gadm to feat/GADM-country-list-FLAG-997 February 13, 2025 15:45
@willian-viana willian-viana marked this pull request as ready for review February 13, 2025 15:45
@willian-viana willian-viana force-pushed the feat/gadm-geostore-service-FLAG-1252 branch from 8b5c3e5 to 6733c71 Compare February 13, 2025 15:46
@willian-viana willian-viana force-pushed the feat/gadm-geostore-service-FLAG-1252 branch from bcbf2f5 to 9e25aad Compare February 13, 2025 17:07
@willian-viana willian-viana changed the base branch from feat/GADM-country-list-FLAG-997 to develop February 13, 2025 17:07
Copy link

@gtempus gtempus left a comment

Choose a reason for hiding this comment

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

Love the addition of the tests, @willian-viana ! 🔥
I'm really glad this was a minimal change for y'all. 💪

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