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

Action Transform Issues (Docs/CLI Support/Metadata export) #8001

Open
ghardin1314 opened this issue Jan 6, 2022 · 2 comments
Open

Action Transform Issues (Docs/CLI Support/Metadata export) #8001

ghardin1314 opened this issue Jan 6, 2022 · 2 comments
Labels
c/docs Related to docs k/bug Something isn't working

Comments

@ghardin1314
Copy link

Version Information

Server Version:
CLI Version (for CLI related issue): 2.0.4

Image: v2.1.0-beta.2.cli-migrations-v3

Environment

Docker Container, self hosted

What is the expected behaviour?

There is currently no documentation for Action Transform support for CLI, even though it can currently be configured through actions.yaml.

Also, once an action transform is configured in the console, running hasura metadata export should export the transform information so that it can be instantly configured on a fresh instance.

Keywords

Action Transforms

What is the current behaviour?

After creating a new action with a transform in the console and running hasura metadata export, the transform information is missing

- name: getMetadata
  definition:
    kind: ""
    handler: https://arweave.net
   <----- This is missing ----->
    request_transform:
      method: GET
      url: '{{$base_url}}/{{$body.input.id}}'
  <--------------------------------->

How to reproduce the issue?

  1. Create new action with transform configured
  2. Run export metadata
  3. Tear down hasura server and create a fresh install with exported metadata

Screenshots or Screencast

image

@ghardin1314 ghardin1314 added the k/bug Something isn't working label Jan 6, 2022
@rikinsk rikinsk added c/cli Related to CLI c/docs Related to docs labels Jan 20, 2022
@rikinsk
Copy link
Member

rikinsk commented Jan 20, 2022

Hi thanks for reporting this.

  • the docs as you mentioned are not yet complete and the details you expect will be added soon
  • regarding the metadata export issue, i see you are using the CLI version v2.0.4. The transforms feature is supported in versions 2.1 onwards so this should work once you update your CLI to the latest. Do let us know if you still face issues with this

@rikinsk rikinsk removed the c/cli Related to CLI label Jan 20, 2022
@robertjdominguez
Copy link
Contributor

Hey @ghardin1314, can you check these CLI tabs and confirm you're now seeing what you expect? Thanks 👍

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

No branches or pull requests

3 participants