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

Add a plug that detects the need for running mix ash.codegen #1675

Open
zachdaniel opened this issue Dec 25, 2024 · 0 comments
Open

Add a plug that detects the need for running mix ash.codegen #1675

zachdaniel opened this issue Dec 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zachdaniel
Copy link
Contributor

There are some challenges:

  1. AshPostgres and AshGraphql both expect to be able to exit/raise. We need to make sure that they raise a specific known error in this case, and don't use exit when we are calling their codegen functions.
  2. In order to run mix ash.codegen, we need to provide a name. The current tooling in Plug.Exception supports actions, but not actions that take inputs. Perhaps we need to try and improve Plug.Exception to support inputs. I find it unlikely that it would be something that they are open to but worth checking.
@zachdaniel zachdaniel added the enhancement New feature or request label Dec 25, 2024
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

1 participant