Skip to content

fix: delete omitted quotas and questions when the same edit adds new ones - #69

Merged
rvirtaha merged 1 commit into
mainfrom
fix/quota-removal-during-add
Aug 28, 2026
Merged

rvirtaha merged 1 commit into
mainfrom
fix/quota-removal-during-add

Conversation

@rvirtaha

Copy link
Copy Markdown
Contributor

The admin form sends kept rows with ids and new rows with a null id.
update_event_quotas and update_event_questions detect removals with
id not in (select id from unnest(input)), and NOT IN never evaluates
true against a set containing null — so one new row in the input
silently disabled deletion for the whole call. Exclude nulls from the
comparison set.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

…ones

The admin form sends kept rows with ids and new rows with a null id.
update_event_quotas and update_event_questions detect removals with
`id not in (select id from unnest(input))`, and NOT IN never evaluates
true against a set containing null — so one new row in the input
silently disabled deletion for the whole call. Exclude nulls from the
comparison set.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for @app/client

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@rvirtaha
rvirtaha merged commit e2f3aa4 into main Aug 28, 2026
26 of 28 checks passed
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.

1 participant