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

Update ent and arango source model generation. #1594

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

jeffmendoza
Copy link
Member

Source name can have Tag or Commit but not both. The model marks these as optional which results in go structs with pointers. The backends should only fill the pointers if the field is valid.

The generated go structs do have "omitempty" in the json annotation, so I believe the gql results still look correct without this change. This does clean up the expected test data. All the backends will need to be consistent to have the same expected testdata.

PR Checklist

  • All commits have a Developer Certificate of Origin (DCO) -- they are generated using -s flag to git commit.
  • All new changes are covered by tests
  • If GraphQL schema is changed, make generate has been run
  • If collectsub protobuf has been changed, make proto has been run
  • All CI checks are passing (tests and formatting)
  • All dependent PRs have already been merged

Source name can have Tag or Commit but not both. The model marks these as
optional which results in go structs with pointers. The backends should only
fill the pointers if the field is valid.

Signed-off-by: Jeff Mendoza <jlm@jlm.name>
Signed-off-by: Jeff Mendoza <jlm@jlm.name>
Signed-off-by: Jeff Mendoza <jlm@jlm.name>
@kodiakhq kodiakhq bot merged commit 7144c45 into guacsec:main Dec 20, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants