hasura / hasura/graphql-engine

hasura actions codegen should not reset existing files

Open
#9,541 0 comments 0 reactions 0 assignees View on GitHub
k/enhancement t/gql-services
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

***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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.