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
{{ message }}
Repository navigation
Remove Upsert from DataStorage interface — no production callers remain after #4669 #4726
Raised as a suggestion in #4669, which converted all five production call sites from Upsert to Update.
After that PR, Upsert has zero production callers in the session manager. The only remaining references are test fixtures seeding storage state, which can use Create or direct setup helpers instead.
Problem
Keeping Upsert in the DataStorage interface risks future contributors accidentally reintroducing the unconditional-write pattern that #4669 was specifically designed to eliminate. An unused interface method is a footgun with no upside.
Suggestion
Remove Upsert from the DataStorage interface entirely:
Remove Upsert from DataStorage in pkg/transport/session/session_data_storage.go
Remove or replace Upsert implementations in RedisSessionDataStorage and LocalSessionDataStorage
Update test fixtures that call Upsert to use Create or direct setup helpers instead
Verify no remaining callers exist outside of tests
Activity
Remove Upsert from DataStorage interface — closes #4726
Remove Upsert from DataStorage interface — closes #4726
Remove Upsert from DataStorage interface — closes stacklok#4726 (stac…