Add skeleton/hydration pattern for third-party dataset indexes#34
Merged
maxine-at-forecast merged 3 commits intodevelopfrom Feb 26, 2026
Merged
Conversation
Implement index provider registration and the getIndexSkeleton/getIndex query endpoints following Bluesky's feed generator pattern. Third parties can register curated dataset index endpoints; the AppView fetches URI skeletons from them and hydrates entries from the local database. - Add index_providers table to schema.sql - Add upsert/query functions in database.py with COLLECTION_TABLE_MAP entry - Add row_to_index_provider serializer and response models in models.py - Add getIndexSkeleton, getIndex, listIndexes query endpoints - Add publishIndex procedure with HTTPS URL validation - Route science.alt.dataset.index records through ingestion processor - Add 18 tests covering happy paths, error cases, and ingestion Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…cal fixes - Add did field to row_to_label and row_to_lens serializers for consistency with row_to_entry, row_to_schema, row_to_index_provider - Add index_providers to query_active_publishers UNION query - Fix import ordering in queries.py and procedures.py (PEP 8) - Add row_to_index_provider unit tests to test_models.py - Add index_providers table/indexes to integration test expectations - Remove unnecessary mock patch from test_get_index_skeleton_invalid_uri Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ydration-getindexskeleton # Conflicts: # src/atdata_app/ingestion/processor.py # src/atdata_app/xrpc/procedures.py
4 tasks
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.
Summary
index_providerstable and full CRUD support forscience.alt.dataset.indexrecords (schema, upsert, ingestion, delete)getIndexSkeletonXRPC query that fetches URI stubs from an upstream index provider endpoint, following Bluesky'sgetFeedSkeletonpatterngetIndexXRPC query that fetches the skeleton then hydrates entries from the local DB, preserving skeleton ordering and silently omitting missing entrieslistIndexespaginated query andpublishIndexprocedure with HTTPS URL validationrow_to_labelandrow_to_lensmissingdidfield (consistency bug across all serializers)index_providerstoquery_active_publishersUNION, fix import ordering, add missing testsTest plan
test_index.pycovering skeleton fetch, hydration, list, publish, and ingestionrow_to_index_providerserializer tests intest_models.pyindex_providerstable and indexes🤖 Generated with Claude Code