Repository navigation
0.7.0: entries_to_refresh() / resolve_entry(); feedback takes cache_entry_id - #8
Merged
Merged
Conversation
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.
Why
This is the client for cacheverifier-service's new "Entries to refresh" feature: cache entries the tenant's feedback reported stale, or wrong more often than right.
Changes
CacheVerifier.entries_to_refresh():GET /v1/monitor/entries-to-refresh.CacheVerifier.resolve_entry(key):POST /v1/monitor/entries-to-refresh/{key}/resolve.feedback(cache_entry_id=...): on bothCacheVerifierandLocalVerifier. It's the caller's own cache key, which the list hands back.Testing
test_entries_to_refresh_round_trip: feedback sendscache_entry_id; the list and resolve calls hit the right paths.cache_entry_idomitted when unset: this is now asserted.ruffandmypyare clean.Release
Release after cacheverifier-service's entries-to-refresh PR is deployed: create the GitHub Release
v0.7.0.