pomerium/pkg/storage
Kenneth Jenkins a771b82a72
storage/inmemory: fix Patch() error handling (#4838)
The Patch() method was intended to skip any records that do not
currently exist. However, currently inmemory.Backend.Patch() will return
ErrNotFound if the last record in the records slice is not found (it
will ignore any other previous records that are not found).

Update the error handling logic here to be consistent with the postgres
backend, and add a unit test to exercise this case.
2023-12-07 12:21:10 -08:00
..
inmemory storage/inmemory: fix Patch() error handling (#4838) 2023-12-07 12:21:10 -08:00
postgres core/storage: hijack connections for notification listeners (#4806) 2023-12-04 09:29:10 -07:00
storagetest storage/inmemory: fix Patch() error handling (#4838) 2023-12-07 12:21:10 -08:00
cache.go authorize: use query instead of sync for databroker data (#3377) 2022-06-01 15:40:07 -06:00
cache_test.go authorize: use query instead of sync for databroker data (#3377) 2022-06-01 15:40:07 -06:00
filter.go storage: add filter expressions, upgrade go to 1.18.1 (#3365) 2022-05-16 20:09:50 -06:00
filter_test.go storage: add filter expressions, upgrade go to 1.18.1 (#3365) 2022-05-16 20:09:50 -06:00
index.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
index_test.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
patch.go storage/inmemory: implement patch operation (#4654) 2023-11-02 11:03:00 -07:00
patch_test.go storage/inmemory: implement patch operation (#4654) 2023-11-02 11:03:00 -07:00
querier.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
storage.go databroker: add patch method (#4704) 2023-11-02 15:07:37 -07:00
storage_test.go databroker: add support for putting multiple records (#3291) 2022-04-26 16:41:38 -06:00
stream.go postgres: databroker storage backend (#3370) 2022-05-25 10:23:58 -06:00
stream_filter.go storage: add filter expressions, upgrade go to 1.18.1 (#3365) 2022-05-16 20:09:50 -06:00
stream_filter_test.go storage: add filter expressions, upgrade go to 1.18.1 (#3365) 2022-05-16 20:09:50 -06:00