这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@scriptonist
Copy link
Contributor

Description

Document what's inside the metadata.yaml file exported by hasura metadata export command.

What component does this PR affect?

  • Server
  • Console
  • CLI
  • Docs
  • Community Content
  • Build System

Requires changes from other components? If yes, please mark the components:

  • Server
  • Console
  • CLI
  • Docs
  • Community Content
  • Build System

Related Issue

Fixes #400

Solution and Design

Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Docs update
  • Community content

Checklist:

  • I have read the contributing guide and my code conforms to the guidelines.
  • This change requires a change in the documentation.
  • I have updated the documentation accordingly.
  • I have added required tests.

@CLAassistant
Copy link

CLAassistant commented Oct 6, 2018

CLA assistant check
All committers have signed the CLA.

@hasura-bot
Copy link
Contributor

Beep boop! 🤖

Hey @scriptonist!

Thanks for your PR! ✨

I can't wait to merge it 🤞 🛠️, but I don't have the permissions to do so. ❌

One of my human 👩 friends will review the changes 📝 and get back to you as soon as possible. 🕐

Stay awesome! 😎

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-661.herokuapp.com

@shahidhk shahidhk added the c/cli Related to CLI label Oct 8, 2018
Copy link
Member

@shahidhk shahidhk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @scriptonist 🙏 😄

Should have been more explicit on the issue that it is for exhaustively documenting the contents of metadata file at docs.hasura.io. Not on the CLI 😄.

The CLI can have a link to the documentation page once its ready. But the current info is not particularly helpful.

Maybe you can update the PR to remove the file contents and talk about the file location and some generic info? Something like:

Export Hasura metadata and save it in migrations/metadata.yaml file.
The output is a yaml file which captures all the metadata required 
by GraphQL Engine. This includes info about tables that are tracked,
permission rules, relationships and event triggers that are defined 
on those tables.

This can be added as the Long description property of the command, leaving the example as

# Export metadata and save it in migrations/metadata.yaml file:
hasura metadata export

@scriptonist
Copy link
Contributor Author

Thanks @shahidhk 🙏 for the feedback, I was also pretty unsure about the change. On inspection I felt like the change was to be made to command help and docs will be generated for the same.
Anyways I've made the changes that you requested 👍 , please do take a look and provide feedback.

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-661.herokuapp.com

@shahidhk shahidhk changed the title Document contents of metadata.yaml (Close #400) update help for metadata export command Oct 8, 2018
@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-661.herokuapp.com

@shahidhk shahidhk merged commit de2ceea into hasura:master Oct 8, 2018
@hasura-bot
Copy link
Contributor

Beep boop! 🤖

Whoa! 🎉 🎉 💃

GIF

Awesome work @scriptonist! 💪 🏆 All of us at Hasura ❤️ what you did.

We would love to send you some swag! 👕 Please allow us to do so by filling this form.

If you have any questions, ask us on our Discord & Twitter!

Thanks again 🤗

@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-661.herokuapp.com is deleted

hasura-bot pushed a commit that referenced this pull request Jun 4, 2024
1. Always name the struct when calling `default()`.
2. Sort construction according to the definitions.
3. Approve allowing `struct_field_names` because it doesn't seem to be
helpful.
4. Enable `manual_string_new`; nothing seems to be triggering it now.

V3_GIT_ORIGIN_REV_ID: 868742114b0bf27bc3ea03cdf1e63a0f710ebe33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/cli Related to CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

document the yaml file generated by metadata export command

4 participants