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

Reloading remote schema does not pick up newly added enum values #9688

Open
kevinmichaelchen opened this issue Jun 2, 2023 · 3 comments
Open
Labels
c/cli Related to CLI k/bug Something isn't working

Comments

@kevinmichaelchen
Copy link

Version Information

Server Version: v2.23.0
CLI Version (for CLI related issue): v2.23.0

Environment

EE

What is the current behaviour?

I've observed that the hasura metadata reload CLI does not pick up on newly added enum values in remote schemas.

What is the expected behaviour?

The expected behavior is for reload to pick up on new enum values.

How to reproduce the issue?

  1. Add a new enum value to a remote schema
  2. Restart the remote schema w/ its new SDL
  3. Run the hasura metadata reload command
  4. Observe no changes to remote_schemas.yaml

Screenshots or Screencast

Please provide any traces or logs that could help here.

Any possible solutions/workarounds you're aware of?

The workaround is to go into the Remote Schema's Permissions tab, modify the permissions (e.g., uncheck some random input or type) and save, and then re-modify the permissions (re-checking what you previously unchecked).

Keywords

Reload, reloading, remote schema, new enum value

@kevinmichaelchen kevinmichaelchen added the k/bug Something isn't working label Jun 2, 2023
@manasag manasag added the c/cli Related to CLI label Jun 7, 2023
@hpsmatheus
Copy link

hpsmatheus commented Aug 2, 2023

I have the same issue on version v2.25.1 and none of the workaraounds work for me.
I see there was an issue open for this before and it was closed even though a lot of people seems to keep facing the same issue.
It is so frustrating that there's been years of the same issue! Adding new value to enum should be a pretty simple task but it is actually causing a lot of trouble and requiring me to do non-sense workarounds in my code!

@cezarneaga
Copy link

Hi there,
this is still an issue today. on hasura 2.40.0.

will try discord and see if anyone can pick this up.
Best,
Cezar

@ts-hems
Copy link

ts-hems commented Aug 23, 2024

Hi there,

I'm experiencing the same issue in version 2.42.0. It was working with the previous added enum, but when we added a new enum in a different schema, it's not being picked up and is causing an error in the fetch query.

Is there any solution? @hpsmatheus, has this been resolved yet?

Thank you
Hems Patel
Tracksuit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/cli Related to CLI k/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants