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

Field Permissions get overridden when running command update #10585

Open
TristenHarr opened this issue Nov 4, 2024 · 1 comment
Open

Field Permissions get overridden when running command update #10585

TristenHarr opened this issue Nov 4, 2024 · 1 comment
Labels
c/v3-cli k/v3-bug Bug affecting Hasura v3 (DDN)

Comments

@TristenHarr
Copy link
Collaborator

Right now, running a command update:

ddn command update "*"

Overrides the allowed fields of a type. I've tried defining them in multiple ways but no matter what it always gets overriden and changed to:

output:
  allowedFields:
    - field1
    - field2
    ...
    - fieldN

This only seems to happen for the Admin role.

This issue was originally surfaced in Discord: https://discord.com/channels/407792526867693568/1300795380522291221

@TristenHarr TristenHarr added the k/v3-bug Bug affecting Hasura v3 (DDN) label Nov 4, 2024
Copy link
Contributor

manasag commented Nov 8, 2024

I think it makes sense to review the command update logic in this case, from the point of view of what are the usual user based changes that shouldn't be overridden. cc @nullxone

@manasag manasag added the c/v3-cli label Nov 8, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/v3-cli k/v3-bug Bug affecting Hasura v3 (DDN)
Projects
None yet
Development

No branches or pull requests

2 participants