-
Notifications
You must be signed in to change notification settings - Fork 67
/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
base: dev
Are you sure you want to change the base?
Conversation
def transform_row(row, proxy): | ||
return f"{row['geo_type']}:{row['geo_value']}" |
There was a problem hiding this comment.
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?
@bp.route("/indicator_geo_coverage", methods=("GET", "POST")) | ||
def handle_indicator_geo_coverage(): |
There was a problem hiding this comment.
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
?
@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
"?
Co-authored-by: george <[email protected]>
|
i think the failing ci should be fixed with #1660 |
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:
dev
branchdev