Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 740755153b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| FROM public.app_versions | ||
| WHERE public.app_versions.app_id = p_app_id | ||
| AND public.app_versions.id = p_version_id | ||
| AND public.app_versions.deleted = false |
There was a problem hiding this comment.
Allow metadata upserts for soft-deleted versions
The new public.app_versions.deleted = false predicate prevents the delete path from recording compensating negative metadata entries: deleteIt in supabase/functions/_backend/triggers/on_version_update.ts calls createStatsMeta(..., -data.size) after a soft delete, when the target row is already marked deleted. With this filter, upsert_version_meta returns false and skips the insert, so version_meta no longer captures bundle removals and storage/billing aggregates that depend on it remain overstated.
Useful? React with 👍 / 👎.
9398519 to
e9bf46a
Compare
|



Summary (AI generated)
public.upsert_version_metaRPC execution toservice_roleonly.get_identity_org_appidandcheck_min_rights, while preserving existing dedupe behavior.Test plan (AI generated)
bun lint:backend.POST /rest/v1/rpc/upsert_version_metato confirm inserts are rejected.Screenshots (AI generated)
Checklist (AI generated)
bun run lint:backend && bun run lint.