ZIm/crates/collab/src
Marshall Bowers f4106ad404
collab: Send down new usage limits even when the user does not have any usage (#34217)
This PR fixes an issue where the plan usage limits in Zed would not get
updated immediately after the plan has changed.

Previously we were only sending down the usage—which contains the
limits—if there was a usage record in the database. This would be absent
if the user had just changed their plan.

We now always send down the usage in order to update the limits on the
client side.

Release Notes:

- N/A

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
2025-07-10 15:52:19 +00:00
..
api collab: Add logs to Stripe usage sync job (#33731) 2025-07-01 18:10:00 +00:00
bin windows: Make collab run on Windows (#23117) 2025-01-17 09:39:13 +02:00
db Delete access tokens on user delete (#34036) 2025-07-08 10:08:17 -04:00
llm Bypass account age check when feature flag is set (#32393) 2025-06-09 18:44:48 +02:00
rpc Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
stripe_client collab: Save Customer name and billing address to Customer on checkout (#33385) 2025-06-25 16:06:14 -04:00
tests Query multiple LSPs for more types of requests (#29359) 2025-07-02 20:51:19 +03:00
api.rs Update names of collab auth functions to clarify behavior (#32648) 2025-06-13 00:35:18 +00:00
auth.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
cents.rs Send llm events to snowflake too (#21091) 2024-11-22 20:40:39 -07:00
completion.rs Supermaven (#10788) 2024-05-03 12:50:42 -07:00
db.rs Never run transactions using serializable isolation (#33780) 2025-07-02 14:30:38 +00:00
env.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
errors.rs Remove more unused code related to GitHub auth and errors 2022-04-21 08:57:49 -06:00
executor.rs chore: Prepare for Rust edition bump to 2024 (without autofix) (#27791) 2025-03-31 20:10:36 +02:00
lib.rs Never run transactions using serializable isolation (#33780) 2025-07-02 14:30:38 +00:00
llm.rs Bypass account age check when feature flag is set (#32393) 2025-06-09 18:44:48 +02:00
main.rs Never run transactions using serializable isolation (#33780) 2025-07-02 14:30:38 +00:00
migrations.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
rpc.rs collab: Send down new usage limits even when the user does not have any usage (#34217) 2025-07-10 15:52:19 +00:00
seed.rs Update names of collab auth functions to clarify behavior (#32648) 2025-06-13 00:35:18 +00:00
stripe_billing.rs collab: Save Customer name and billing address to Customer on checkout (#33385) 2025-06-25 16:06:14 -04:00
stripe_client.rs collab: Save Customer name and billing address to Customer on checkout (#33385) 2025-06-25 16:06:14 -04:00
tests.rs collab: Introduce StripeClient trait to abstract over Stripe interactions (#31615) 2025-05-28 18:34:44 +00:00
user_backfiller.rs Update names of collab auth functions to clarify behavior (#32648) 2025-06-13 00:35:18 +00:00