Skip to content

Conversation

@emma-sg
Copy link
Member

@emma-sg emma-sg commented Nov 19, 2025

Replaces the previous multi-step update approach with a single aggregation pipeline that handles both "add" and "set" modes, ensuring atomic quota modifications.

Tested locally, confirming api calls against local mongo.

@emma-sg emma-sg requested a review from ikreymer November 19, 2025 00:08
@ikreymer ikreymer added this to the 1.21 Release milestone Dec 2, 2025
@emma-sg emma-sg force-pushed the additional-minutes-addon-purchase branch from 9fa5509 to febe01f Compare December 3, 2025 01:42
replaces the previous multi-step update approach with a single
aggregation pipeline that handles both "add" and "set" modes, ensuring
atomic quota modifications
@emma-sg emma-sg force-pushed the additional-minutes-addon-purchase--single-mongo-update branch from b027949 to 1fdc072 Compare December 3, 2025 01:45
@emma-sg emma-sg mentioned this pull request Dec 3, 2025
3 tasks
@ikreymer ikreymer requested a review from tw4l December 4, 2025 03:32
@emma-sg
Copy link
Member Author

emma-sg commented Dec 9, 2025

Closing in favour of using a dedicated session with the more declarative approach in #3057. May revisit in the future? But for now this is a lot harder to follow as a developer, even if it's a little safer at runtime.

@emma-sg emma-sg closed this Dec 9, 2025
@ikreymer ikreymer deleted the additional-minutes-addon-purchase--single-mongo-update branch December 10, 2025 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants