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

server: metadata separation: reorganize metadata types #6103

Merged
merged 22 commits into from
Nov 3, 2020

Conversation

abooij
Copy link
Contributor

@abooij abooij commented Oct 29, 2020

Description

This is an incremental PR towards #5797. It refactors metadata types that will be used to incrementally modify the metadata.

It also adds a big type class in Hasura.Class that will be used as a general interface for providing a metadata API. We may want to discuss this type class in some more detail, to decide whether it follows a design pattern we'd like to include in our code base, or if it needs further thought. This change will be made in subsequent incremental PR.

Although this PR adds types that can hold new metadata, the intention is that it does not change what metadata actually gets stored. Any new style metadata code included should not be used. However, we should check this carefully.

Changelog

  • CHANGELOG.md is updated with user-facing content relevant to this PR. If no changelog is required, then add the no-changelog-required label.

Affected components

  • Server

Related Issues

Solution and Design

Steps to test and verify

Limitations, known bugs & workarounds

Server checklist

Catalog upgrade

Does this PR change Hasura Catalog version?

  • No

Metadata

Does this PR add a new Metadata feature?

  • No

GraphQL

  • No new GraphQL schema is generated

Breaking changes

  • No Breaking changes

@netlify
Copy link

netlify bot commented Oct 29, 2020

Deploy preview for hasura-docs ready!

Built with commit 9ce7e15

https://deploy-preview-6103--hasura-docs.netlify.app

@abooij abooij marked this pull request as ready for review October 30, 2020 15:14
@@ -72,86 +72,12 @@ runClearMetadata _ = do
buildSchemaCacheStrict
return successMsg

applyQP1
Copy link
Member

Choose a reason for hiding this comment

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

The logic this function does has been moved to parseJSON of the Metadata type. See parseListAsMap function.

Copy link
Member

@rakeshkky rakeshkky left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@nicuveo nicuveo left a comment

Choose a reason for hiding this comment

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

LGTM, only a few nits.

server/src-lib/Hasura/RQL/Types/Permission.hs Outdated Show resolved Hide resolved
@kodiakhq kodiakhq bot merged commit 3bcde3d into hasura:master Nov 3, 2020
scriptonist pushed a commit to scriptonist/graphql-engine that referenced this pull request Nov 8, 2020
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.

4 participants