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

hasura actions codegen should not reset existing files #9541

Open
olmohake opened this issue Apr 5, 2023 · 0 comments
Open

hasura actions codegen should not reset existing files #9541

olmohake opened this issue Apr 5, 2023 · 0 comments
Labels
k/enhancement New feature or improve an existing feature t/gql-services

Comments

@olmohake
Copy link

olmohake commented Apr 5, 2023

hasura actions codegen overwrites existing files.

This is a somewhat unexpected and error prone behaviour, as forgetting to specifying a newly added action during the executing of the command resets all files.

Before generating each file, hasura should check if a file of the same name already exists in the specified directory and either ask for permission to reset or skip existing files.

@olmohake olmohake added the k/enhancement New feature or improve an existing feature label Apr 5, 2023
@olmohake olmohake changed the title hasura actions codegen resets existing files hasura actions codegen should not reset existing files Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/enhancement New feature or improve an existing feature t/gql-services
Projects
None yet
Development

No branches or pull requests

2 participants