Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support drop_param #244

Open
yujonglee opened this issue Oct 2, 2024 · 1 comment
Open

Support drop_param #244

yujonglee opened this issue Oct 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@yujonglee
Copy link

yujonglee commented Oct 2, 2024

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)
@yujonglee yujonglee added the enhancement New feature or request label Oct 2, 2024
@yujonglee yujonglee changed the title Support drop_params Support drop_param Oct 2, 2024
@zachdaniel
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants