ash-project / ash_phoenix

Utilities for integrating Ash and Phoenix
https://hexdocs.pm/ash_phoenix
MIT License
106 stars 60 forks source link

Support `drop_param` #244

Open yujonglee opened 1 month ago

yujonglee commented 1 month ago

Is your feature request related to a problem? Please describe. Ecto has drop_param. (https://hexdocs.pm/ecto/Ecto.Changeset.html#cast_assoc/3-custom-actions) I want to do same thing with Ash, but I can't.

Describe the solution you'd like Same or similar to Ecto's.

Describe alternatives you've considered I can workaround with update_form.

AshPhoenix.Form.update_form(form, parent_path, fn form -> 
  params = AshPhoenix.Form.params(form)
  new_params = modify_params(params)
  AshPhoenix.Form.validate(form, new_params)
end)
zachdaniel commented 1 month ago

👍 this is on the short list of things to add.