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

console: data sources support #5654

Closed
wants to merge 237 commits into from
Closed

Conversation

beerose
Copy link
Contributor

@beerose beerose commented Aug 24, 2020

Description

Todo:

  • data/utils
  • data/actions
  • data/constants
  • pgInfo
  • data/add
  • rawSql/utils
  • sqlUtils

Metadata separation:

  • 1. Fetching actions
  • 2. Fetching custom types
  • 3. Custom functions
  • 4. Custom functions definitions
  • 5. Tracked functions
  • 6. Trackable functions
  • 7. Non trackable functions
  • 8. Allowed queries
  • 9. Fetching roles
  • 10. Remote schemas:
  • 11. Remote relationships
  • 12. Fetching console opts from hdb_version. ← new api
  • 13. Tracked tables: hdb_table
  • 14. Tracked table relationships
  • 15. Events

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

  • Console

Resolve Conflicts:
	server/graphql-engine.cabal
	server/src-lib/Hasura/GraphQL/Schema/Action.hs
	server/src-lib/Hasura/RQL/DDL/EventTrigger.hs
	server/src-lib/Hasura/RQL/DDL/Metadata.hs
	server/src-lib/Hasura/RQL/DDL/Metadata/Generator.hs
	server/src-lib/Hasura/RQL/DDL/Metadata/Types.hs
	server/src-lib/Hasura/RQL/DDL/Permission.hs
	server/src-lib/Hasura/RQL/DDL/RemoteRelationship.hs
	server/src-lib/Hasura/RQL/DDL/RemoteSchema.hs
	server/src-lib/Hasura/RQL/DDL/Schema/Cache.hs
	server/src-lib/Hasura/RQL/DDL/Schema/Cache/Fields.hs
	server/src-lib/Hasura/RQL/DDL/Schema/Rename.hs
	server/src-lib/Hasura/RQL/DDL/Schema/Table.hs
	server/src-lib/Hasura/RQL/Types/Action.hs
	server/src-lib/Hasura/RQL/Types/RemoteRelationship.hs
	server/src-lib/Hasura/Server/App.hs
@netlify
Copy link

netlify bot commented Aug 26, 2020

Deploy preview for hasura-docs ready!

Built with commit f294195

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

@hasura-bot
Copy link
Contributor

Review app for commit 0bf4565 deployed to Heroku: https://hge-ci-pull-5654.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5654-0bf4565f

@hasura-bot
Copy link
Contributor

Review app for commit 0f4f6bd deployed to Heroku: https://hge-ci-pull-5654.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5654-0f4f6bd3

@hasura-bot
Copy link
Contributor

Review app for commit c25d67f deployed to Heroku: https://hge-ci-pull-5654.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5654-c25d67f7

@hasura-bot
Copy link
Contributor

Review app for commit e286263 deployed to Heroku: https://hge-ci-pull-5654.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5654-e2862630

@netlify
Copy link

netlify bot commented Aug 27, 2020

Deploy preview for hasura-docs ready!

Built with commit c9b41bc

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

@hasura-bot
Copy link
Contributor

Review app for commit 14a5916 deployed to Heroku: https://hge-ci-pull-5654.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5654-14a59164

@hasura-bot
Copy link
Contributor

Review app for commit e9a3257 deployed to Heroku: https://hge-ci-pull-5654.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5654-e9a32572

@hasura-bot
Copy link
Contributor

Review app for commit 86e2463 deployed to Heroku: https://hge-ci-pull-5654.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5654-86e24634

@hasura-bot
Copy link
Contributor

Review app for commit 2b879cd deployed to Heroku: https://hge-ci-pull-5654.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5654-2b879cd1

@hasura-bot
Copy link
Contributor

Review app for commit b1a19f3 deployed to Heroku: https://hge-ci-pull-5654.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5654-b1a19f3a

@hasura-bot
Copy link
Contributor

Review app for commit 6dc1147 deployed to Heroku: https://hge-ci-pull-5654.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5654-6dc11475

Aleksandra Sikora and others added 25 commits October 13, 2020 12:18
  - there won't be a listener thread always for every runHGEServer
Resolve Conflicts:
	server/src-lib/Hasura/App.hs
	server/src-lib/Hasura/Db.hs
	server/src-lib/Hasura/Eventing/EventTrigger.hs
	server/src-lib/Hasura/Eventing/ScheduledTrigger.hs
	server/src-lib/Hasura/GraphQL/Execute/Insert.hs
	server/src-lib/Hasura/GraphQL/Execute/Mutation.hs
	server/src-lib/Hasura/GraphQL/Execute/Prepare.hs
	server/src-lib/Hasura/GraphQL/Execute/Query.hs
	server/src-lib/Hasura/GraphQL/Schema.hs
	server/src-lib/Hasura/GraphQL/Transport/HTTP.hs
	server/src-lib/Hasura/GraphQL/Transport/WebSocket.hs
	server/src-lib/Hasura/RQL/DDL/EventTrigger.hs
	server/src-lib/Hasura/RQL/Types/EventTrigger.hs
	server/src-lib/Hasura/RQL/Types/SchemaCache.hs
	server/src-lib/Hasura/Server/App.hs
Comment on lines +47 to +49
console.log('fetch metadata');
// no sure yet, if this is the best place
// make it being triggered on each metadata update
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
console.log('fetch metadata');
// no sure yet, if this is the best place
// make it being triggered on each metadata update

Comment on lines +68 to +71
// if (!metadata.metadataObject AND logged in) {
// // todo: should be loading state or error message in case of metadata fetch fail
// return null;
// }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
// if (!metadata.metadataObject AND logged in) {
// // todo: should be loading state or error message in case of metadata fetch fail
// return null;
// }

@beerose
Copy link
Contributor Author

beerose commented Nov 2, 2020

Closing this PR, because it has server changes from #5797, and as per discussions on slack #5797 will be split into multiple PRs. I'll open a new Pr containing only console changes.

@beerose beerose closed this Nov 2, 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.

None yet

7 participants