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

Adding session arguments to a tracked mutation function turns it into a query function #7766

Open
HosseinYousefi opened this issue Nov 2, 2021 · 0 comments
Labels
k/bug Something isn't working

Comments

@HosseinYousefi
Copy link

Version Information

Server Version: 2.0.10
CLI Version (for CLI related issue): 2.0.0-beta.1

Environment

Localhost (MacOS)

What is the expected behaviour?

After adding the session arguments to a tracked volatile function (tracked as mutation), it should simply work!

Keywords

functions, mutation, session argument

What is the current behaviour?

After adding the session arguments to a tracked volatile function (tracked as mutation), the metadata removes the exposed_as: mutation which turns it into a normal (tracked as a query) function. This can be fixed by manually changing the yaml file in the metadata so the bug is related to the UI console.

How to reproduce the issue?

  1. Create a volatile function that gets a session argument and track it as a mutation
  2. Set the session argument name
  3. Watch as it changes to a query instead!

Any possible solutions?

Probably a simple bug in the console.

If the bug is confirmed, would you be willing to submit a PR?

Nope!

@HosseinYousefi HosseinYousefi added the k/bug Something isn't working label Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant