-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the get_cached_identity_data function to support non-JSON-encoded value #4855
Update the get_cached_identity_data function to support non-JSON-encoded value #4855
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Passing run #7577 ↗︎
Details:
Review all test suite changes for PR #4855 ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this makes sense to me @galvana! just one minor nit on potentially adding some more context around the code comment, to be extra sure that this isn't confusing for anyone looking at this moving forward.
also, as i mentioned separately - it was a bit surprising to me that we're keeping the cache in tact across upgrades, but i guess that makes sense. in any case, this is a good, defensive measure 👍
oh, and nice job on adding in the test coverage!🏅
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4855 +/- ##
=======================================
Coverage 86.78% 86.79%
=======================================
Files 346 346
Lines 20913 20917 +4
Branches 2733 2733
=======================================
+ Hits 18150 18154 +4
Misses 2288 2288
Partials 475 475 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Adam Sachs <[email protected]>
…ded value (#4855) Co-authored-by: Adam Sachs <[email protected]>
Closes PROD-2009
Description Of Changes
This is a fix for a defect that was introduced with the custom identities feature, specifically this line. Moving forward, we want to make sure that any non-JSON-encoded values in the cache can still be read. There is no data lost between the two caching methods since we're just formatting the values differently. This means the change can be targeted and everything can continue to work as expected as long as
get_cached_identity_data
returns the expected response.Code Changes
get_cached_identity_data
and added a testSteps to Confirm
Pre-Merge Checklist
CHANGELOG.md