Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

control: be more aware of test clocks #270

Merged
merged 1 commit into from
Mar 3, 2023
Merged

control: be more aware of test clocks #270

merged 1 commit into from
Mar 3, 2023

Conversation

bmizerany
Copy link
Contributor

@bmizerany bmizerany commented Mar 3, 2023

This commit fixes a bug with test clocks where customer IDs were cached
based only on the org ID, not by test clocks. This resulted in invalid
cache hits due to org name collisions if the same org name was used
across test clocks, because the first customer ID would be cached and
then used in requests targeting different clocks where the customer ID
did not exist.

This also narrows the list of returned customers by Stripe to those in a
test clock, if any.

@bmizerany bmizerany marked this pull request as ready for review March 3, 2023 03:06
This commit fixes a bug with test clocks where customer IDs were cached
based only on the org ID, not by test clocks. This resulted in invalid
cache hits due to org name collisions if the same org name was used
across test clocks because the first customer ID would be cached and
then used in requests targeting different clocks where the customer ID
did not exist.

This also narrows the list of returned customers by Stripe to those in a
test clock, if any.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant