feat(data-processing): add maintainable alias registry for entity nor… - #1152
Open
olatundefay-prog wants to merge 1 commit into
Open
feat(data-processing): add maintainable alias registry for entity nor…#1152olatundefay-prog wants to merge 1 commit into
olatundefay-prog wants to merge 1 commit into
Conversation
…malization - Add data/alias_registry.yaml as the contributor-editable source of truth for canonical names across assets, projects, and ecosystem terms - Add src/normalization/alias_registry.py with AliasRegistry, RegistryEntry, and get_registry() singleton; supports O(1) alias-to-canonical lookups, thread-safe loading, and graceful fallback when YAML is unavailable - Wire keywords.py (CRYPTO_PROJECT_MAP, TICKER_TO_PROJECT) to load from the registry at import time, keeping built-in dicts as a resilience fallback - Wire onchain_entity_linker.py DEFAULT_ASSETS to load from registry on first instantiation, falling back to TICKER_TO_PROJECT if registry is unavailable - Add tests/test_alias_registry.py covering all four acceptance criteria: multiple aliases per canonical, normalization used in processing, contributor YAML-only workflow, and downstream dataset normalization
|
Hey @olatundefay-prog! 👋 It looks like this PR isn't linked to any issue. If this PR is for one of the issues assigned to you as part of a Wave, please link it to ensure your contribution is tracked properly. You can do this by adding a keyword to the PR description (e.g.,
|
Contributor
|
@olatundefay-prog kindly fix workflow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#1056
done with this task "Create a maintainable alias registry so projects, assets, and ecosystem terms can be normalized consistently across ingestion and analytics."