You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(s3): resolve vcon path via lookup pointer to support date-based key structure (#145)
S3 stores vcons under YYYY/MM/DD/<uuid>.vcon but the get/delete interface
only receives a UUID. Introduce a lookup pointer file at lookup/<uuid>.txt
(written on save) that contains the date prefix, allowing get and delete to
resolve the full key without any schema changes.
- Add _date_prefix() helper to centralise YYYY/MM/DD formatting
- Add _build_lookup_key() to build the lookup/<uuid>.txt path
- Update _build_s3_key() to accept a pre-computed date_path instead of created_at
- save(): write lookup pointer alongside the vcon object (2 puts total)
- get(): fetch lookup pointer to resolve date path, then fetch vcon (2 gets total)
- delete(): resolve via lookup pointer, delete both vcon and lookup objects
- Add .txt extension to lookup files for easy viewing in AWS Console
- 43 tests covering all helpers, save, get, and delete paths
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments