Commit Graph

4581 Commits

Author SHA1 Message Date
Philip Lykke Carlsen
6a15d3ea5f Fix zendesk-5146. Add check for empty columns in unique constraints g…
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4764
GitOrigin-RevId: 79e62f1ea2639ec81a48f5f71b58eaadf4fe6482
2022-06-17 07:49:20 +00:00
Sooraj
b099ee5d66 console: add new table relationships tab to console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4582
Co-authored-by: Matt Hardman <28978422+mattshardman@users.noreply.github.com>
GitOrigin-RevId: 3b362076a60b2dee73ee84945de23a0e7c1bcef0
2022-06-16 18:11:38 +00:00
Daniel Harvey
921ada70e9 tooling: Opt-in shared tooling
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4753
GitOrigin-RevId: 3fc3324e584210e57e5acb9d8361d4e5b3caf26a
2022-06-16 17:12:35 +00:00
Stefano Magni
d769800086 console: Halt collecting the E2E tests code coverage CON-203
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4510
GitOrigin-RevId: 2fff40627278e6e8eb48bc4d466ce499e7669ca7
2022-06-16 16:18:26 +00:00
Erik Magnusson
21f9a614d2 fix: fixed isolated solution to failed bootstrap migration dropdown
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4740
GitOrigin-RevId: 2244e9834d3e979a0ffc1c6ed0774dd72cfa301e
2022-06-16 15:38:51 +00:00
Daniel Harvey
2bb1aa543c server: runParse returns QErr
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4759
GitOrigin-RevId: c0bfe928e4cdb457b374df197b82c3882ae4410e
2022-06-16 12:22:30 +00:00
Daniel Harvey
0f97c27115 Replace ParseT with Parse
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4724
GitOrigin-RevId: d742bc876ca11dbbe7e3f02bbdf9bf9c2440cbe6
2022-06-16 11:12:10 +00:00
Evie Ciobanu
8f0b3f6d06 server: build/run unit tests faster
This aims to support loading up a `ghci repl` with both the `graphql-engine` library and the unit tests. This is currently not officially supported by cabal, but it uses a hack, which is why I added a flag. See the updated documentation for more info.

Also see

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4739
GitOrigin-RevId: 5e7b15855a7a829ed76b5830be1efc9146d25da6
2022-06-16 10:39:24 +00:00
Daniel Harvey
249cbb914e server: Replace ValidationT with ExceptT in ParseT (close #3641)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4712
GitOrigin-RevId: 6acfd8dc2276962d333c68ac85a7a729e87b6d2d
2022-06-16 09:54:09 +00:00
Vishnu Bharathi
3458dafca4 ci: update centos image and skip test oss cli with last release job
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4749
GitOrigin-RevId: c4fc317336f7580851711379fc1802eb141e72e8
2022-06-16 08:52:48 +00:00
David Overton
5c7489cc23 Flesh out capabilities types
>

## Description ✍️
->

Fleshes out the Capabilities types used by Data Connector agents.

### Related Issues ✍
->

https://hasurahq.atlassian.net/browse/GDW-85

### Solution and Design ✍
>

Capabilities are divided into sections for queries, mutation, subscriptions, filtering and relationships:
```haskell
data Capabilities = Capabilities
  { cQueries :: Maybe QueryCapabilities,
    cMutations :: Maybe MutationCapabilities,
    cSubscriptions :: Maybe SubscriptionCapabilities,
    cFiltering :: Maybe FilteringCapabilities,
    cRelationships :: Maybe RelationshipCapabilities
  }
```

Each section is optional. If the section is absent it means the the related capabilities are not supported by the agent.
The types for each section can contain additional details about exactly what is supported. E.g.
```haskell
data QueryCapabilities = QueryCapabilities
  { qcSupportsPrimaryKeys :: Bool
  }
```

These are currently mostly empty, but will be filled in later.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4671
GitOrigin-RevId: 3d48570266bfce5e177a543a0ed6f63a7b450f0b
2022-06-16 08:31:07 +00:00
Tom Harding
16213a9b77 Remove resolveUnpreparedValue
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4743
GitOrigin-RevId: 1d532ac2475e292e587581ac840d056e3b96a951
2022-06-15 18:17:23 +00:00
Naveen Naidu
2526dd0114 server: fix create event trigger failure on tables with MSSQL reserved keywords as name
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4648
GitOrigin-RevId: 5e3eb614350b047f2e2384fea9b234bf0ad9d47f
2022-06-15 17:11:44 +00:00
Rakesh Emmadi
b4534c1177 server/bigquery: apply LIMIT to computed field subqueries
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4694
GitOrigin-RevId: 9a0b7dd4afa5257b12b9e0e02e26b2ca6d283c9d
2022-06-15 16:31:46 +00:00
Divi
c668aa1158 cli: improve error reporting in metadata apply command
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4454
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: ae66bdfdc140c1a2a7747fb0ff2acd6f7b577d3f
2022-06-15 15:45:38 +00:00
Abhijeet Khangarot
132dffe4cf console: add support for mssql event triggers
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4558
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 003710bc198caaf32a0c982d59aee9046d92aaf8
2022-06-15 14:56:37 +00:00
SidharthBihary
5be7dc7ad7 docs: Minor update to include traces in the context of logs and metrics in Metrics/Integration section, rectify typo
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4737
GitOrigin-RevId: 900564cc2f41c0cb09e788bc6f75b7e8a6f3f45e
2022-06-15 14:18:51 +00:00
Vishnu Bharathi
f96b5462ff ci: tag release v2.8.0 and v2.8.0-pro.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4732
GitOrigin-RevId: cc258aff48eed06ab2b2086f71c5e5220f608038
2022-06-15 13:59:02 +00:00
Sandeep Raj Kumar
36e6283931 docs: cloud OpenTelemetry integration
>

## Description ✍️
Add docs for the OpenTelemetry Exporter Integration feature that is going to be added to EE and Cloud.

### Related Issues ✍
Issue [3698](https://github.com/hasura/lux/issues/3698)
RFC - https://github.com/hasura/lux/pull/3831
implementation PR - [4000](https://github.com/hasura/lux/pull/4000)
->

## Affected components ✍️

-  Docs

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4608
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: c1a7914cc40cfe05213418fa6555f4198e92eca3
2022-06-15 13:32:08 +00:00
Abby Sassel
732ce2848f server/docs: remove references to distinct_on in MSSQL docs
we don't yet support this. from discussion at https://hasurahq.slack.com/archives/C01RZPEPF0W/p1655211910120289.

[docs preview](https://1316cb95.hasura-docs-mono.pages.dev/docs/latest/graphql/core/databases/ms-sql-server/queries/index/#auto-generated-query-field-schema)

github issue to implement the feature itself, to be prioritised separately: https://github.com/hasura/graphql-engine-mono/issues/4719

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4721
GitOrigin-RevId: b4bdb662c8a2045aef351064e5fdb2e16f4b7244
2022-06-15 12:44:17 +00:00
Divi
b50aecdae4 cli: fix perfomance regression with large metadata in metadata apply
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4661
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 48050e899592878c47c382281605a0c8666ddc8b
2022-06-15 12:39:43 +00:00
Auke Booij
26e39b130e server: avoid some imports in Hasura.GraphQL.Parser.Class
This avoids an import of `Hasura.GraphQL.Parser.Internal.Types`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4713
GitOrigin-RevId: d878465966207622af997979d424e7a25a6e1cac
2022-06-15 11:54:06 +00:00
Luca Restagno
31fb04e201 console: GQL field customization while adding databases
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4703
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: 885d7f9c459a0eb1e01f534a859465552ae76343
2022-06-15 11:09:40 +00:00
Samir Talwar
f72d8f09d9 Makefile: Run ormolu --check and shellcheck as part of linting.
In the interest of having a single command to run before committing in order to check for basic errors, I propose `make lint-changed`.

This enhances `make lint` and `make lint-changed` to run `ormolu` and `shellcheck`, in line with CI.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4727
GitOrigin-RevId: 05c860a86ce40b0f52c6aa2d333c0af23aea070e
2022-06-15 10:27:10 +00:00
Samir Talwar
1f2f9a8f94 server: Fix up the instructions on testing against BigQuery.
This improves the experience of testing against BigQuery in a few ways:

1.  There is an explicit instruction to create a dataset, which was not
    documented.
2.  The verification script uses the environment variables, just like the
    tests.
3.  The verification script passes the correct content type headers.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4706
GitOrigin-RevId: 15b5bd28b1762c130c0ec09d6babe8c08e05ab15
2022-06-15 09:45:19 +00:00
Tom Harding
0f553cf1a3 Remove Data.Set.Extended
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4698
GitOrigin-RevId: 06104ea4c67301f058bb24fd395707bb69721954
2022-06-15 09:02:23 +00:00
Gil Mizrahi
5dd3f71539 server/telemetry: support multiple sources
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4493
GitOrigin-RevId: 3b34ea0aa6f78fa43c8d372d8b61d49191632eff
2022-06-15 08:03:31 +00:00
Daniel Harvey
9ee4d248cb Update MacOS setup instructions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4715
GitOrigin-RevId: 9b2634084cfffecef5bde3645fd1dceaced8960e
2022-06-15 07:08:23 +00:00
paritosh-08
0dd6e69131 server: fix incorrectly ignoring the experimental feature naming_convention
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4728
GitOrigin-RevId: 5ed2406ec15d3fbbd3d8a31f28da5c217810804a
2022-06-15 05:21:15 +00:00
Daniel Harvey
66ac7ea1aa tooling: use nvm to manage NodeJS version in monorepo
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4714
GitOrigin-RevId: 2392cea36e4c5c34beab09bbffc8bdb57e35193a
2022-06-14 17:52:05 +00:00
Jesse Hallett
f14891c64b docs: add info to server error message when env var missing in webhook preview
When a user changes request options in a custom action through the
console that triggers a request to the server to test webhook transform
options, and to show a preview of the result. If the action uses an
environment variable in its webhook URL, and there is no mock value for
that variable in the action's sample context then the user will see an
error. This change expands the error message to explain what caused the
error, and how to fix it.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4556
GitOrigin-RevId: 75b19bae17aac982c2bdfbd4417bd55923889f2f
2022-06-14 16:25:41 +00:00
Samir Talwar
ed1dc00bb8 Add Makefile targets to run hlint on all and changed files.
* `make lint-hs` will lint all files.
* `make lint-hs-changed` will lint all modified files on this branch.
* `make lint` will delegate to `make lint-hs`.
* `make lint-changed` will delegate to `make lint-hs-changed`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4720
GitOrigin-RevId: d872f5b672b1d06100cd9fdaa5e60dc8bb5cae86
2022-06-14 15:21:36 +00:00
Sean Park-Ross
8e69fde547 docs: restructure cron trigger create section
## Description ✍️
Tiny fix for Cron Trigger casing @rikinsk identified earlier.

edit: restructured the create cronn section

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4666
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 356426d76d64a907d0ca6c2b8c762ac3f2f3fc4b
2022-06-14 14:21:37 +00:00
Vijay Prasanna
888126ecb4 fix (console): breaking modify tab for mssql
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4718
GitOrigin-RevId: 1a350c756fbac73c334546f4a3adbcc27ed1b73c
2022-06-14 14:15:33 +00:00
Naveen Naidu
134544135d docs: update mssql read replica docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4664
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 90d23b6094e7fdaa24fddd0690830ba5019cb2c3
2022-06-14 13:28:52 +00:00
Aravind K P
cde3ab7612 cli: add support for multiple admin secrets in pro cli migrations image
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4604
GitOrigin-RevId: 70ff26a72f55007aa04a083c3506b4f4a957b240
2022-06-14 11:14:56 +00:00
paritosh-08
620de6ee42 server: add default naming convention to TenantConfig
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4710
GitOrigin-RevId: c989bed76fb22eef13304b0d8ef02b53dd70fd59
2022-06-14 09:18:20 +00:00
Daniel Chambers
0723925ffc Expose the entire official Chinook dataset through the DC Reference agent and use it in the tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4688
GitOrigin-RevId: f87b2e23be69aed3cc7f95e814f9426db174dc9b
2022-06-13 20:59:48 +00:00
Philip Lykke Carlsen
8510cbfe87 Remove redundant strict data declartions
We already enable `-XStrictData` in `graphql-engine.cabal`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4699
GitOrigin-RevId: c5c17ed75319da794d5a1655ac9b069f0fa68dea
2022-06-13 13:18:17 +00:00
Tom Harding
2c3b483a08 Remove partial NonEmpty.fromList calls (closes #3865)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4665
GitOrigin-RevId: 637c61a1612c4e31aabc247b07a836d16454c470
2022-06-13 11:20:53 +00:00
Erik Magnusson
40ba20f7f7 console: migrate events to tailwind
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4552
GitOrigin-RevId: 7b4d54ec00c3ed7e8c48a3a6f0c4569ee38966e5
2022-06-13 09:25:07 +00:00
Rikin Kachhia
7d8fa3a5ee console: add support for computed fields with session arg in permission builder
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4417
GitOrigin-RevId: 5fc528c9a3ab87a885ad2b85c3b2bde557ab6a22
2022-06-13 06:53:14 +00:00
Solomon
97ae14a43a [GDW-93] Fix "conflicting definitions" when using both DC backend and PG backend
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4686
GitOrigin-RevId: 254e2ad5d951f73a799e55b1dbcfaa0097054122
2022-06-10 04:00:07 +00:00
Brandon Simmons
bf3657d0a2 Fix up for scripts/cabal-freeze-update.sh
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4685
GitOrigin-RevId: abae6aed0ae56a67d4c6bbb59598920bfcdc5e8e
2022-06-09 19:52:38 +00:00
Tom Harding
e22eb1afea Weeding (2/?)
## Description

Following on from #4572, this removes more dead code as identified by Weeder. Comments and thoughts similarly welcome!

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4587
GitOrigin-RevId: 73aa6a5a2833ee41d29b71fcd0a72ed19822ca73
2022-06-09 16:40:49 +00:00
Rakesh Emmadi
fbc98bcc25 server/bigquery: add a reference to github ticket for computed field limit issue
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4658
GitOrigin-RevId: cc4e1165682d484408ef22fcedd16bc793f4d918
2022-06-09 15:36:34 +00:00
paritosh-08
4a611febaf docs: naming convention docs rectification
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4681
GitOrigin-RevId: 49c6a2f3e8c5afc10ab0c62b1bca4079a3867978
2022-06-09 13:51:31 +00:00
Miguel Fernández
ac42db645a docs: replace images for project suspension to reflect new copy
Tracked in https://github.com/hasura/lux/issues/3904
Together with https://github.com/hasura/lux/pull/4568

This is to replace deactivated -> hibernated in the copy of the project card, to make project hibernation more palatable to users

cc @vaishnavigvs

>

## Description ✍️
->

### Related Issues ✍

Tracked in https://github.com/hasura/lux/issues/3904
Together with https://github.com/hasura/lux/pull/4568

### Kodiak commit message
Change copy of docs page for project hibernation

#### Commit title

Replace images to reflect new copy on project hibernation documentation page

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4660
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 5cdcd7b7ac847cb537faf9f62863d621e51c4348
2022-06-09 12:27:53 +00:00
Aravind K P
df0d55e508 docs: update hasura config reference for multiple admin secrets
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4678
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: de94e26749c034cd63ceebfcb0c2cde983a3a0d5
2022-06-09 11:08:51 +00:00
hasura-bot
e19573b43a Format Connection string so it is more visible
GITHUB_PR_NUMBER: 8555
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8555

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4633
Co-authored-by: Jonathan Marbutt <1386587+jmarbutt@users.noreply.github.com>
GitOrigin-RevId: ddfaf76096b4f17db0d71f113c9ea4e3a7cdebdc
2022-06-09 10:54:38 +00:00