Skip to content

Enforce writable fields after prepare_changes - #4771

Merged
josevalim merged 1 commit into
elixir-ecto:masterfrom
lukaszsamson:ls-writable-prepare
Jul 28, 2026
Merged

Enforce writable fields after prepare_changes#4771
josevalim merged 1 commit into
elixir-ecto:masterfrom
lukaszsamson:ls-writable-prepare

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

This PR adds drop_non_writable_changes!/4 call on the result of run_prepare callback.

Note this is technically a breaking change affecting already broken code.

Fixes #4770

@josevalim
josevalim merged commit 3fff2a3 into elixir-ecto:master Jul 28, 2026
8 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

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.

prepare_changes/2 bypasses writable field enforcement

2 participants