feat: add admin levels for the US and France + support use_cache param in batch extraction
#1483
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
This pull request updates the reverse geolocation batch processing logic to support an additional
use_cacheparameter, allowing requests to control caching behavior. It also updates the admin level configuration for several countries. The main changes are grouped below:Reverse Geolocation Batch API Improvements:
parse_request_parametersfunction now supports ause_cacheboolean parameter, which is parsed from the incoming request and passed through the batch processing pipeline. [1] [2]reverse_geolocation_batchfunction andcreate_http_processor_tasknow accept and forward theuse_cacheparameter, ensuring it is included in downstream processing tasks and HTTP payloads. [1] [2]Testing Updates:
use_cacheparameter. [1] [2]Configuration Updates:
locality_admin_levels.jsonfile has been updated to add admin level mappings for France (FR) and the United States (US).Please make sure these boxes are checked before submitting your pull request - thanks!
./scripts/api-tests.shto make sure you didn't break anything