Commit Graph

4489 Commits

Author SHA1 Message Date
Stefano Magni
fb1dc2e0ba console: improve actions E2E tests with rest connectors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4520
GitOrigin-RevId: 24d9176dc5f93747e4b3a12ed08171064e75900e
2022-06-28 05:40:36 +00:00
Lyndon Maydwell
ab8369bdcf PG SSL-cert maybe fields
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4767
GitOrigin-RevId: 042fa622c6f208cf72fee40acee28e87ebcf1f67
2022-06-28 01:26:03 +00:00
Jesse Hallett
2f3ae93ab0 server: initial set of DTO types for metadata
This implements an initial set of DTO types that represent serialized metadata. These new types come with codecs using autodocodec which are used to derive both JSON serialization, and OpenAPI documentation. This ensures that we can automatically generate API documentation that is guaranteed to match JSON produced by the server.

For the moment the new types are not used for anything except to generate an early version of an OpenAPI document. Because this is early work the DTO types for each metadata format version list top-level properties only with placeholders for the types of each top-level property. This early iteration demonstrates using a sum type in Haskell that maps to a tagged union in OpenAPI (using the `version` field value as a tag).

This work is experimental and incomplete! Please do not incorporate the generated OpenAPI documentation into essential workflows at this time.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4801
GitOrigin-RevId: d2f110a6237b73520cdba24667333ef14e8cdd3d
2022-06-27 16:33:31 +00:00
Gil Mizrahi
38b1c0d774 server/tests/bigquery: Expose internal error information + handle teardown robustly + retry on jobRateLimitExceeded error
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4810
Co-authored-by: Samir Talwar <47582+SamirTalwar@users.noreply.github.com>
GitOrigin-RevId: e8696491475a668976a0e86322b7a8772ed9f946
2022-06-27 14:33:42 +00:00
Rishichandra Wawhal
d70ba47f5f console: on clicking "Use Sample DB", toast helper text for the subsequent action
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4856
GitOrigin-RevId: 19ff9f46f1ba255980ff5e54e1a0669c5b111ba9
2022-06-27 12:22:15 +00:00
Rakesh Emmadi
7634be3216 server: fix dropping column from a table that has update permissions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4840
GitOrigin-RevId: cea142fe225315f4f4094f157d8a95df14273306
2022-06-27 10:02:23 +00:00
Lyndon Maydwell
3c33996e7d Data-Connectors SDK
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4332
GitOrigin-RevId: aa93b65e266d73c3b7b80fafd4e36da74428add4
2022-06-27 09:32:12 +00:00
hasura-bot
f4891d71c3 docs: add white space on auth webhook page
GITHUB_PR_NUMBER: 8628
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8628

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4853
Co-authored-by: J. G. Sebring <4135198+Sebring@users.noreply.github.com>
GitOrigin-RevId: d3f8194cc52a28dac15296a0e0742ed8eb05a837
2022-06-27 08:49:59 +00:00
hasura-bot
92f601587c cli: use 2-spaces indent for graphql query in metadata (fix #8469)
GITHUB_PR_NUMBER: 8519
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8519

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4544
Co-authored-by: Yudai Shinnoki <2777896+shinnoki@users.noreply.github.com>
Co-authored-by: Divi <32202683+imperfect-fourth@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 3d9f9d1bf940e528a1ad9fab67b6ae818927ffac
2022-06-27 05:27:19 +00:00
awjchen
1db8ca4700 server: build event triggers earlier in the schema cache
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4597
GitOrigin-RevId: 2eb1d16fe1790fd4092c608d62beefb467e546f4
2022-06-27 00:37:57 +00:00
Brandon Simmons
b704192268 server: GHC 9.2 changes compatible with 8.10 (#3550)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4841
Co-authored-by: awjchen <13142944+awjchen@users.noreply.github.com>
GitOrigin-RevId: ce47b1290fefb07f3f800c6c62120437c02086e5
2022-06-25 22:09:05 +00:00
Solomon
baf196daa6 [GDW-111] Mockable GDC Agent for integration testing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4802
GitOrigin-RevId: 36cdfcff4a864598a4d10e746ecdf93dae2b4c02
2022-06-25 19:06:54 +00:00
Samir Talwar
75c01223a8 server: Use plain assertions in pytest.
When pytest rewrites assertions to make them more useful, it also
truncates long assertion messages in the middle, often obscuring the
actual error.

Disabling this allows us to see the full message, which should hopefully
allow us to see the actual error.

In order to support this, we need to make sure that custom assertion
messages include the actual assertion information, as this will no
longer be rendered by pytest.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4835
GitOrigin-RevId: de6839a3b40d0edc7cb96e46625eebca0aaf0c95
2022-06-25 00:04:16 +00:00
Stefano Magni
5cfec727ec console: Remove the Pro Console E2E tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4511
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
GitOrigin-RevId: 916efec269f067ca628df739e0e7cb6cd26d20f2
2022-06-24 16:02:09 +00:00
Vishnu Bharathi
66105d6741 ci: build and publish multitenant docker image in cloud release pipeline
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4709
GitOrigin-RevId: 78c3a41fab37c20c674b55d8f5bd8a0a1f478115
2022-06-24 15:34:04 +00:00
Rishichandra Wawhal
b42bfe2c10 console, pro-console: allow trying sample read-only database in cloud console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4833
GitOrigin-RevId: edc0550336b1edc9cf8706753e3ac6b336fa6a2c
2022-06-24 14:34:03 +00:00
Stefano Magni
717cf4fa86 console: Refactor the Action With Transform E2E tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4519
GitOrigin-RevId: 1bcef6b5525e3bf361000ca1905e04cebe18542a
2022-06-24 13:38:34 +00:00
Sean Park-Ross
3f5a55ef18 Docs: fix broken link in cloud index
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4847
GitOrigin-RevId: 4e704e628e4fde039d59866d145601bdc7fe9cb9
2022-06-24 11:47:29 +00:00
surendran82
b9db8afbee docs: hasura con banner updated and thin banner stripe bg color updated
>

## Description ✍️
Hasura con banner updated and announcement banner background color change

->

- Docs

---

### Kodiak commit message
Information used by [Kodiak bot](https://kodiakhq.com/) while merging this PR.

#### Commit title
Same as the title of this pull request

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4846
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 78d922cd34204bf271359875d27eec1f0f789e8b
2022-06-24 10:19:36 +00:00
Shraddha Agrawal
6c5cd40763 docs: rehaul preview app docs & improve cloud api reference
>

## Description ✍️
->
This PR rehauls Hasura Cloud Preview App docs.

The changed components:

- removes the preview-app single page doc.
- adds a top level directory called `deployment`:
- within this, 3 pages are added:
  - index for preview apps
  - preview apps github action docs
  - preview apps API docs
- updates the API reference doc for preview api mutation/query with detailed information

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4779
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
Co-authored-by: Marion Schleifer <5722022+marionschleifer@users.noreply.github.com>
GitOrigin-RevId: f8dd0c713c3a76e7a95c598a78ea5cc8c2e7df8d
2022-06-24 08:53:30 +00:00
Daniel Chambers
7ec5e79bd1 AVRelationship Support for Data Connectors [GDW-123]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4735
GitOrigin-RevId: f23965a6c7ea8a0e6b25dbf9d3faeccec0ef6ec3
2022-06-24 06:59:52 +00:00
Rob Dominguez
639555b349 docs: updated auth diagrams to read database vs pg
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4775
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 6bd01bce992fca4eacc779fdb883ae7ed47ff08e
2022-06-23 15:44:05 +00:00
nevermore
a2ef9ebfff docs: Public GraphiQL docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4643
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
Co-authored-by: Marion Schleifer <5722022+marionschleifer@users.noreply.github.com>
GitOrigin-RevId: c390b30e14cc0212bdbe3a9280f4276310b7c568
2022-06-23 15:41:39 +00:00
Stefano Magni
899ea09d8b console: Refactor the Query Action E2E tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4513
GitOrigin-RevId: 72ef55a79cfca193d81c8998324f94b37e575438
2022-06-23 14:58:59 +00:00
Priya Sharma
59af87b28b docs : add debug steps for version check error in github integration
>

## Description ✍️

This PR updates the github integration docs to add steps for debugging the error `version check` under common errors.
->

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4816
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: c306e8eeb174402477ce43cc50774a5583077911
2022-06-23 13:40:00 +00:00
Karthikeyan Chinnakonda
db5d0b1d93 User facing docs for disabling root fields
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4616
Co-authored-by: Auke Booij <164426+abooij@users.noreply.github.com>
Co-authored-by: Marion Schleifer <5722022+marionschleifer@users.noreply.github.com>
GitOrigin-RevId: e4fc23245c6d4e53b8e355a858b2ab335348beba
2022-06-23 13:16:54 +00:00
Antoine Leblanc
664633fc4b Remove the source cache from the schema context
### Description

This PR removes the source cache from the schema context. :)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4830
GitOrigin-RevId: af312a22b70d042c5faf8d67c0cee254537be836
2022-06-23 11:43:17 +00:00
Antoine Leblanc
661a1b6560 Remove source cache requirement in action schema
### Description

This PR removes the need for the `SourceCache` when building the schema for the actions. To do so, it changes the way we represent custom types in the source cache. Instead of trying to reuse the same `ObjectTypeDefinition` and `TypeRelationship`. we now have separate `AnnotatedObjectType` and `AnnotatedRelationship`. When building them, at schema cache building time, we persist all the relevant source information, so that it's all available at schema building time.

This PR makes no attempt at re-using `RemoteRelationship` primitives, to avoid having to change the way async action queries are executed, and to avoid having to make complicated changes to how we parse and represent those relationships.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4813
GitOrigin-RevId: 3cc65c5a043c8d3da5f7214eed40c558c4349327
2022-06-23 10:52:32 +00:00
Sean Park-Ross
7a552d34da docs: wiki style section
**WIP**

## Description ✍️
Adding a style section to the documentation wiki.

This is a distillation and continuation of the notes started by @marionschleifer and @rikinsk at https://docs.google.com/document/d/1lD7IVEjtv5Sf9BaVqzefLywG-kNpuM40I84ThIUSmwg/edit

* _Everything is very much in a WIP stage._

* Everything is on one page for now, but if it warrants it, each sections could be broken out into separate parts under a main `style` section.

@robertjdominguez Please let me know your thoughts too.

**Anyone** please feel free to edit and push to this branch.

- Sean

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4642
Co-authored-by: parklifeio <33491775+parklifeio@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 48a26500114efcef22278d4e673ce0289bd7d7db
2022-06-23 09:45:35 +00:00
Rikin Kachhia
020e0bd841 docs: add hasuracon22 banner
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4826
GitOrigin-RevId: aea33ff304ab4fb228cb2cdfa978ea30fca2d918
2022-06-23 09:36:34 +00:00
hasura-bot
f23a8e4c42 docs: fix typo in event trigger docs
GITHUB_PR_NUMBER: 8616
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8616

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4829
Co-authored-by: Jonathan Schneider <9538230+jonaschn@users.noreply.github.com>
GitOrigin-RevId: a7e4e5844357e5a9a24a2b2833c3171137b59891
2022-06-23 09:33:07 +00:00
Samir Talwar
8db9b77c77 server: Reorganize quasi-quoted names.
Pretty much all quasi-quoted names in the server code base have ended up in `Hasura.GraphQL.Parser.Constants`. I'm now finding this unpleasant for two reasons:

1. I would like to factor out the parser code into its own Cabal package, and I don't want to have to expose all these names.
2. Most of them really have nothing to do with the parsers.

In order to remedy this, I have:

1. moved the names used by parser code to `Hasura.GraphQL.Parser.DirectiveName`, as they're all related to directives;
2. moved `Hasura.GraphQL.Parser.Constants` to `Hasura.Name`, changing the qualified import name from `G` to `Name`;
3. moved names only used in tests to the appropriate test case;
4. removed unused items from `Hasura.Name`; and
5. grouped related names.

Most of the changes are simply changing `G` to `Name`, which I find much more meaningful.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4777
GitOrigin-RevId: a77aa0aee137b2b5e6faec94495d3a9fbfa1348b
2022-06-23 09:15:31 +00:00
Daniel Chambers
d896cc4d95 Replace Haskell DC Reference Agent with TypeScript DC Reference Agent in HSpec tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4689
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
GitOrigin-RevId: 9dc6a2e373b3d7ab0bdce7ddcd7b7e6e5b1dc498
2022-06-23 08:09:46 +00:00
Varun Choudhary
866164357c console: support naming convention in source customization for postgres DB [CON-297]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4823
GitOrigin-RevId: a6a3bfcb9c7e16dd551d14dde3d424d07b8f1d15
2022-06-23 06:51:16 +00:00
Solomon
fbfa32207d Fixes asyncActionsFetchIntervalEnv help message.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4832
GitOrigin-RevId: 0acc9f5ab5eb4ba6ee2eb45d870a80df0be223c1
2022-06-23 05:07:13 +00:00
Solomon
cb10636177 Updates arg parser HGE header
## Description ✍️
The `--help` header was out of date. This PR updates it to match the description on github.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4831
GitOrigin-RevId: 449f71b2901318132e45445632b1a8af358c0afb
2022-06-23 01:28:30 +00:00
Abhijeet Khangarot
d704103d8b console: fix notifications not getting displayed on pro console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4795
GitOrigin-RevId: f23f89683729092ace107f00515a3b90573e8f03
2022-06-22 19:20:01 +00:00
Varun Choudhary
1082b6f54d console: update connection settings UI on connect db page [CON-273]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4803
GitOrigin-RevId: d16ae487426c96ef1593f93524172a55837e2291
2022-06-22 13:14:59 +00:00
Varun Choudhary
d8304fcbaa console: hide hdb_catalog from data section sidebar for SQL Server DB
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4804
GitOrigin-RevId: 3144e04fc69c691e760dc0c2c4735573bb0990c4
2022-06-22 13:14:49 +00:00
Antoine Leblanc
609cab89e6 Backend-agnostic custom scalars
### Description

This small clean-up PR makes one further step towards backend-agnostic actions: it makes all the code parsing custom types backend agnostic. Surprisingly, this could be done *without* the need to finish generalizing the column parser. The remaining sore point is async queries, that still target Postgres explicitly.

In theory, this is enough to start allowing non-Postgres scalars in custom types. In practice, however:
- no other backend exposes scalars in a way that would allow users to do that as of this PR;
- we currently have no strategy to avoid / detect scalar collisions across backends.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4691
GitOrigin-RevId: bfe63fb131e306663d4406697ce23c02736566c5
2022-06-22 13:14:40 +00:00
Daniel Harvey
d41a94b959 tooling: provide optional use_ghcup in .envrc
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4774
GitOrigin-RevId: 9b0877543dd23f2b5e2782f793ae927a78f1986e
2022-06-22 13:14:30 +00:00
Benoit Ranque
e6614db17b console: Hide timescaledb internal schema from data tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4439
Co-authored-by: Sooraj <8408875+soorajshankar@users.noreply.github.com>
GitOrigin-RevId: 49c746e8d23b87363462942d4823c7ab9de2744e
2022-06-22 07:38:38 +00:00
paritosh-08
98d899d4ba server: add update_source API and extend add_source to edit source customization
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4705
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
GitOrigin-RevId: d185f19c88c4030075522d001fdbc0bafa66db8f
2022-06-22 07:07:28 +00:00
Daniel Harvey
88ace749bc server: Fix a bunch of HLint suggestions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4738
GitOrigin-RevId: d0c0b13ac02ca80e51ae3d582f2e6917f76ad202
2022-06-21 11:12:42 +00:00
Vishnu Bharathi
6b71746afd ci: tag release v2.8.1 and v2.9.0-beta.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4805
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
Co-authored-by: Philip Lykke Carlsen <358550+plcplc@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 10c5557319c7f106c251c308efee6c135edc3fcd
2022-06-21 10:10:10 +00:00
Brandon Simmons
80cc53aaac server: vendor used bits of 'ip' package to cut dependencies
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4704
GitOrigin-RevId: 14759b410e99a1a97aa01b1139d9d61292301aff
2022-06-20 23:16:51 +00:00
Stefano Magni
1aa71145ba console: Unify the Mutation Action E2E tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4509
GitOrigin-RevId: e5b579988b426cb44575c9674056f4b2e539c165
2022-06-20 21:40:07 +00:00
Rob Dominguez
631ca80750 docs: db-guides' screenshots for cloud updated
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4612
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 43159907d6a15dd2c28845e88c830570071ca101
2022-06-20 14:10:11 +00:00
Rob Dominguez
dc2823e268 docs: all cloud screenshots updated
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4683
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: e7e5e0934ab844712260c72ce3129cb7caef77e2
2022-06-20 13:57:47 +00:00
Daniel Harvey
4cd4eda81c tooling: add test commands to Makefile
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4787
GitOrigin-RevId: 6fef3933dbc414ddc79f0f738e91e28bee4b8c4f
2022-06-20 13:34:05 +00:00