Repository navigation
fix(storage): preserve vector index creation time - #1701
Merged
o-santi merged 2 commits intoOct 7, 2026
Merged
Conversation
o-santi
approved these changes
Oct 7, 2026
the correct name is creationTime, there is no need to add an invalid alternative
This was referenced Oct 20, 2026
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
Fixes #1700. Parse the Storage GetIndex response's
creationTimeintoVectorIndex.creation_timethrough the shared model used by both public clients.Problem and solution
The server supplies Unix seconds, but the model silently ignored the camelCase field. Add a validation-only alias accepting both
creationTimeand the existingcreation_time; serialization is unchanged. No sync/async generation changes are needed.Tests
A MockTransport regression exercises public sync and async
get_index(). Both fail on unchanged upstream837cf3awithNoneinstead of the expected UTC datetime, and pass with the fix. Four compatibility cases cover missing/null values, snake-case construction and existing serialization.Validation
Run from
src/storage, withPYTHONPATHpointing at this worktree'ssrc/storage/srcand a pre-existing dependency environment (verified source import; fresh uv setup was blocked by PyPI DNS):python -m pytest -q tests/test_vector_index.py: 6 passed.python -m pytest -q tests/test_vector_index.py tests/test_client.py tests/test_exceptions.py tests/test_utils.py tests/_async/test_bucket.py tests/_sync/test_bucket.py: 76 passed; unchanged upstream service-free baseline: 70 passed.python -m mypy src/storage3 tests: clean, 34 files.check src/storageandformat --check src/storagefrom root: clean.git diff --checkand staged equivalent: clean.Full package
pytest -q: 76 passed, 50 setup errors (httpx.ConnectError, absent local service). With the source fix removed: 74 passed, the two new regressions failed, and the same 50 service errors. Live integration is not validated: it needs Docker/Supabase CLI, anddocker psreturns HTTP 500.uv build --offline --package storage3is unavailable because the build backend is uncached; network dependency resolution fails DNS.Compatibility and scope
Storage only; one shared field plus focused tests. Missing/null timestamps remain
None, existing snake-case construction and dump keys remain supported. No documentation or generated-code changes are needed for this response parsing correction.Related work
No matching report/fix found in open/closed issues/PRs, discussions, relevant branches or field history. #1649 concerns errors from resource lookups, not metadata in successful responses.
cc @olirice @silentworks