Skip to content

Conversation

@gitronald
Copy link
Owner

Code for converting Canonical Names to UULE parameters was incorrect for a subset of newer Canonical Names. Now using protobuf to encode/decode, see this gist for details on the changes and which locations might have been affected.

@gitronald gitronald requested a review from Copilot March 7, 2025 18:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR updates the conversion of Canonical Names to UULE parameters by switching from the previous logic to a protobuf-based encoding/decoding mechanism.

  • Replaces the old get_location_id function with a new convert_canonical_name_to_uule and adds dedicated encode/decode functions using protobuf.
  • Updates the demo script’s data directory path and bumps dependency versions in the project configuration files.

Reviewed Changes

File Description
WebSearcher/locations.py Refactors UULE generation by removing get_location_id and adding protobuf encode/decode.
scripts/demo_locations.py Changes the data directory from 'data/locations' to 'data/google_locations'.
pyproject.toml Increments version and updates the protobuf dependency requirement.
WebSearcher/init.py Updates the version string to match the new release.
WebSearcher/searchers.py Adjusts usage to call the new convert_canonical_name_to_uule function for UULE parameters.

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

@gitronald gitronald merged commit 6a72f9e into dev Mar 7, 2025
@gitronald gitronald deleted the locations branch March 7, 2025 18:17
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