Skip to content

/indicator_geo_coverage endpoint #1658

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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

dmytrotsko
Copy link
Contributor

Summary:

Added new /indicator_geo_coverage endpoint.
It accepts source:signals and returns list of available geo_type:geo_value pairs.
This endpoint is needed for the EpiPortal to show the only list of available geos for the selected indicators.

Prerequisites:

  • Unless it is a documentation hotfix it should be merged against the dev branch
  • Branch is up-to-date with the branch to be merged with, i.e. dev
  • Build is successful
  • Code is cleaned up and formatted

melange396
melange396 previously approved these changes Jul 18, 2025
Comment on lines +579 to +580
def transform_row(row, proxy):
return f"{row['geo_type']}:{row['geo_value']}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is awesome! do we wanna change the /geo_indicator endpoint to do something similar?

Comment on lines +564 to +565
@bp.route("/indicator_geo_coverage", methods=("GET", "POST"))
def handle_indicator_geo_coverage():
Copy link
Collaborator

Choose a reason for hiding this comment

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

im not sure how much this actually matters, but do we wanna change the endpoint name to be more similar to the structure of /geo_coverage?

Suggested change
@bp.route("/indicator_geo_coverage", methods=("GET", "POST"))
def handle_indicator_geo_coverage():
@bp.route("/indicator_coverage", methods=("GET", "POST"))
def handle_indicator_coverage():

or instead, maybe even rename the other endpoint to "/geo_indicator_coverage"?

Copy link

@melange396
Copy link
Collaborator

i think the failing ci should be fixed with #1660

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.

2 participants