Commit Graph

3676 Commits

Author SHA1 Message Date
Philip Lykke Carlsen
4f6831d76e Defining the MSSQL update schema using said components
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2923
GitOrigin-RevId: 732988f666f00b3c5eebf6089f9887ee5d679c11
2021-11-26 13:48:09 +00:00
Matt Hardman
6451fba595 console: create permissions table components
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2840
GitOrigin-RevId: a6dbc4d7e3278006465b44cfc4392afec1f9d426
2021-11-26 12:32:04 +00:00
Antoine Leblanc
e3d5c0217f Rename tables in metadata tests to avoid conflicts.
### Description

Tests are not run the same way locally and on CI, which means that tests that work on CI can fail locally. In this case, the setup for each test is creating and dropping a table named `author`; a lot of the tests were also creating a table named `author` in source `pg1`. If `pg1` is the same as the default source, which is the case locally, then all of those tests fail, while the tests that use a default `pg1` such as CI would succeed.

This PR fixes this by renaming `author` to `author_local` where appropriate.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2982
GitOrigin-RevId: 5bc0149bc5f6cb27de9864afaded8af071ade454
2021-11-26 11:40:23 +00:00
Abhijeet Khangarot
0f07f944ba console: request transformations for events
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2498
Co-authored-by: Sooraj <8408875+soorajshankar@users.noreply.github.com>
GitOrigin-RevId: d1c331fb989e247ed807167eefa92b226fe4afb9
2021-11-26 08:50:44 +00:00
Philip Lykke Carlsen
63ee663626 Excise query tags from backend schema
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2960
GitOrigin-RevId: ff6418609117abc8e0410c0897f2af9779cecf16
2021-11-25 21:08:54 +00:00
hasura-bot
169902f88a docs: fix typo in config examples page
GITHUB_PR_NUMBER: 7634
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7634

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2489
Co-authored-by: thephenix4 <69722745+thephenix4@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 246da4575afa583ce44fc858ac1a1053a730cf26
2021-11-25 13:40:28 +00:00
hasura-bot
4f827429d3 community: fix type in event-triggers.md
GITHUB_PR_NUMBER: 7321
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7321

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/1958
Co-authored-by: Tobias Mühl <3341826+tobiasmuehl@users.noreply.github.com>
GitOrigin-RevId: 742341c2c8cac8b68d9886826a89bd867ddda02b
2021-11-25 13:20:30 +00:00
hasura-bot
2bd79ead05 community: fix typo in auth boilerplate
GITHUB_PR_NUMBER: 7633
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7633

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2488
Co-authored-by: thephenix4 <69722745+thephenix4@users.noreply.github.com>
GitOrigin-RevId: 87db71c93cd071ef23ed0f877158ecd9a33d454d
2021-11-25 13:04:16 +00:00
hasura-bot
ee8ccebaca changelog: update Relay dead link
GITHUB_PR_NUMBER: 7637
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7637

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2491
Co-authored-by: wenzdey <56051809+wenzdey@users.noreply.github.com>
GitOrigin-RevId: 7a9b42f8e04c38b0e94b529b59ea9e70aae5fa87
2021-11-25 12:46:50 +00:00
hasura-bot
1519b66c4c docs: add note on computed fields not being part of event trigger payload
GITHUB_PR_NUMBER: 7816
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7816

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2888
Co-authored-by: Vildan Softic <2861414+zewa666@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 816574a4228a396ebc8bcdfe1a6acd9d7be87bba
2021-11-25 12:39:21 +00:00
hasura-bot
a3076a3f64 docs: remove duplicate text
GITHUB_PR_NUMBER: 7485
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7485

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2264
Co-authored-by: Brian Childress <2747820+brian-childress@users.noreply.github.com>
GitOrigin-RevId: 0648792cfd46a5e545564a309834031a269a290e
2021-11-25 11:59:04 +00:00
Gil Mizrahi
f1cbe4e72b pass MSSQL_SA_PASSWORD to mssql container, and add MSSQL_HOST
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2969
GitOrigin-RevId: 42e4cdf36306148ea34ea19fd42ce5048a38dbbc
2021-11-25 10:23:53 +00:00
Abby Sassel
3166010ac1 server: belatedly address #2889 feedback
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2945
GitOrigin-RevId: 8ccb6479391c2b38af6a4c9ac209e29d4e26f65c
2021-11-24 21:40:44 +00:00
Kirill Zaborsky
a2afe4116b BigQuery remote joins
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2874
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
GitOrigin-RevId: 24b0304716795a28038629775238996c28b312a3
2021-11-24 16:22:55 +00:00
Rikin Kachhia
536605fb99 docs: add Hasura Cloud caveat in configuring metadata db example
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2954
GitOrigin-RevId: 1ea35da4241b53100cdcdc2631fc6b41cccf8861
2021-11-24 12:29:47 +00:00
Gil Mizrahi
6dae132fce Add instructions for compiling graphql-engine natively on M1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2049
GitOrigin-RevId: 9f10c26eef5382fb7b8e750ad272a5797b4cd6d8
2021-11-24 09:59:10 +00:00
kodiakhq[bot]
020198969f ci: fix up pro build scripts, optimize cabal/ghc build flags
Before these changes:

**pro build:** 52min
**oss build**: 62min

After:

**pro build:** 25min
**oss build**: 23min

This decreases overall CI wall-clock time from 1:50:00 to 1:15:00.

Despite bumping the instance size for OSS builds this should (back-of-envelope) **_cut_ CI costs** for haskell build stuff by ~33%

Future work will:

- cache library dependency build products: saves further ~8 min (build and wallclock)
- use the oss lib build products in pro as well: saves further ~5min server time (i.e. saves money for same build time)
- maybe cache the rest of `dist-newstyle`: savings depend on the diff (at most 4.5 min; is this even worthwhile?)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2937
GitOrigin-RevId: a1faceaf1adfc1701e634a887f2cdabacab5cddd
2021-11-24 08:20:14 +00:00
Chris Done
926da74819 Auto-launch graphql-engine (close hasura/graphql-engine#7801, hasura/graphql-engine#7827 )
Dupe of https://github.com/hasura/graphql-engine-mono/pull/2853 with branch renamed so it doesn't break a tool.

prev pr: https://github.com/hasura/graphql-engine-mono/pull/2911

next pr: https://github.com/hasura/graphql-engine-mono/pull/2922

This implements https://github.com/hasura/graphql-engine/issues/7801

Some points to keep in mind for review:

* How state is passed to the tests. Do we like how this works?
   * I quite like it, with the opaque type [`State`](68f33051ca/server/tests-hspec/Harness/State.hs (L17)), we can avoid churn when adding things.
   * The [setup/teardown](68f33051ca/server/tests-hspec/Spec.hs (L19-L31)) seems clean.
   * By using hspec's own means to pass and denote context, we avoid "getting new ideas" for how to structure the tests -- we use a standard. Hopefully, that means the tests' structure rarely change.
* The various flags passed in the [ServeOptions](68f33051ca/server/tests-hspec/Harness/Constants.hs (L123)) - if there are any causes for concern, raise them here. My thinking is that, there are lots. I've picked some "sane" defaults (mostly empty). The tests pass. I think as we add more complex tests, these flags will be scrutinised and updated as needed. I think it's valuable that all flags are explicitly listed here, though.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2921
GitOrigin-RevId: 2c2e70bf784ef571a48509a7e5006fd0f48773b5
2021-11-23 18:16:15 +00:00
Chris Parks
a79886bcda Use left join instead of lateral join to fetch foreign key constraints
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2939
GitOrigin-RevId: ed42b885e6e08e653b0888e0eb2012041361a41f
2021-11-23 15:19:49 +00:00
Solomon
2bbc3e5d26 Bumps the Kriti Pin to 0.2.2
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2891
Co-authored-by: Lyndon Maydwell <92299+sordina@users.noreply.github.com>
GitOrigin-RevId: 2517fc3efdf6708177d6163db023c67a7f7e2ec5
2021-11-22 12:23:23 +00:00
Rakesh Emmadi
4f32324759 server/mssql: refine and generalize mssql OUTPUT clause and temporary table syntax AST
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2931
GitOrigin-RevId: e6aef494a096ca119597dc92bcaf9f16e644a72a
2021-11-22 09:12:45 +00:00
Gil Mizrahi
69ae2a565f adding server/documentation/tips.md
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2920
GitOrigin-RevId: 769133fd546b4f1eb544193e6cdb3cb292bde3ad
2021-11-21 06:29:58 +00:00
Gil Mizrahi
39002bc572 Parse session variables to their correct type in mssql
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2908
GitOrigin-RevId: d9d8811e0d0658f6396a7c94bce9b7d2deb5245e
2021-11-20 09:03:44 +00:00
Gil Mizrahi
0e65932355 server/mssql support delete mutations (close hasura/graphql-engine#7626)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2691
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
GitOrigin-RevId: 8b66cc30e8e036ee56a5267c1d2f308155951ae9
2021-11-19 17:06:01 +00:00
Abby Sassel
a7195155ab Add MySQL basic tests (close hasura/graphql-engine#7753)
dupe of @chrisdone's work https://github.com/hasura/graphql-engine-mono/pull/2852 with a branch rename

prev pr: https://github.com/hasura/graphql-engine-mono/pull/2901

next PR: https://github.com/hasura/graphql-engine-mono/pull/2921

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2911
Co-authored-by: Chris Done <11019+chrisdone@users.noreply.github.com>
GitOrigin-RevId: 81130e100c220a235d9869c89e90d63515e35f74
2021-11-19 15:14:46 +00:00
hasura-bot
4933c7cf0a Do not check name of unique key constraint when suggesting autorelations (closes #7525)
GITHUB_PR_NUMBER: 7529
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7529

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2321
Co-authored-by: BenoitRanque <25712958+BenoitRanque@users.noreply.github.com>
GitOrigin-RevId: a715e63f6804e87166c915b58aab87e2bcf28d31
2021-11-19 11:26:41 +00:00
Rishichandra Wawhal
fc7bc6a672 cloud-docs: explain arguments in preview app creation api reference
## Description ✍️
Adds minor fixes and improvements to the preview-apps doc in cloud docs.

## Changelog ✍️

-  `no-changelog-required` label added

## Affected components ✍️

-  Docs

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2834
GitOrigin-RevId: 248402addca23c90de89417c60184412e457d995
2021-11-19 10:03:18 +00:00
Rikin Kachhia
b6cb186cfd docs: add update note for large event/cron logs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2136
GitOrigin-RevId: a6c6185d1c093151757d2c0632aef07ca4c38209
2021-11-19 09:36:45 +00:00
Vishnu Bharathi
2b459ed125 ci: add release graphql-engine-heroku pipeline
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2832
GitOrigin-RevId: 33436bf1a4dd81fca2326c57505545ae713cee68
2021-11-19 07:36:12 +00:00
Philip Lykke Carlsen
84027dad04 Breaking up the Postgres implementation of the update-schema into reusable components
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2889
GitOrigin-RevId: 49c5d59a6f817832f11b1773b078aa24cc650ab5
2021-11-18 18:03:57 +00:00
David Overton
f7e13cb7c9 Skip test if databases are not distinct
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2890
GitOrigin-RevId: 3728c6c5d3e1e12bcff2726a9ee5238dcd3b004b
2021-11-17 23:59:28 +00:00
Abby Sassel
1f14781d15 Create integration testing environment (close hasura/graphql-engine#7752)
dupe of @chrisdone's work https://github.com/hasura/graphql-engine-mono/pull/2829 with a branch rename

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2901
Co-authored-by: Chris Done <11019+chrisdone@users.noreply.github.com>
GitOrigin-RevId: 8381e53a18242b75d7e17b18a2ba3b2d99dd1322
2021-11-17 19:51:47 +00:00
Robert
9d185ffa03 server: make /healthz action clearer
This is effectively a no-op, the `Left err` case can't actually happen.

- removes some unused logic
- refactors the /healthz endpoint to be clearer
- that includes logging the full QErr if checkMetadataHealth fails,
  but it actually can't because the existing Postgres implementation
  just lifts

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2849
GitOrigin-RevId: ac8abf51b6d869ad4048419e36012137c86e5abd
2021-11-17 17:59:39 +00:00
Robert
783cd678b7 benchmarks: skip failing remote_schema suite
This skips the failing benchmark suite `remote_schema` while it's broken, #2883.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2884
GitOrigin-RevId: 629031d4926452a669f08c924e0be61bcd92f559
2021-11-17 13:00:45 +00:00
Praveen Durairaju
d4ca0bcc27 update assets link in readme
<!-- Thank you for ss in the Title above ^ -->

## Description ✍️
<!-- Please fill this se-->
<!-- Describe the changes from a user's perspective -->
This PR fixes a broken link in assets path for brand images.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2794
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 823035148e58c8806366dc2048d237e6cb733420
2021-11-17 10:54:30 +00:00
pranshi06
81bf0e5429 [pro, server] Multiple Admin Secrets
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2631
Co-authored-by: Solomon <24038+solomon-b@users.noreply.github.com>
GitOrigin-RevId: d89a38a9cd9ee7391ca5011b7a11c52e1668a31d
2021-11-17 07:33:33 +00:00
Ikechukwu Eze
7a6876d9e1 console: fix infinite redirect when there are no schemas in database
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2880
GitOrigin-RevId: 500f3964a05ffa00694b3bebd668da9c957508b4
2021-11-16 22:08:17 +00:00
jkachmar
3332e76e9f Updates cabal.project.dev to use 8.10.7
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2885
GitOrigin-RevId: 49cf6264bb1e615351813291541d89e9343e55cc
2021-11-16 17:03:08 +00:00
Matt Hardman
620f45debf Create new storybook components for Table Permissions Form
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2768
GitOrigin-RevId: f0250ebd1578fcf91449212bc0dab49de192a742
2021-11-16 14:36:48 +00:00
Lyndon Maydwell
7a913302ea Allow use of self signed for connections to lux logging and oauth flow
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2766
GitOrigin-RevId: 85ee7a7385047a209eeac7244cd05383e8ecde35
2021-11-16 08:15:25 +00:00
Alberto Francesco Motta
f2b8db9dcf Add RouteLoader component
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2804
GitOrigin-RevId: a41409896e154a75ce112e0a073e1091f3f0becb
2021-11-15 18:16:22 +00:00
Abby Sassel
8975513600 server/rfc: upserts on SQL Server
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2706
GitOrigin-RevId: ace98da6426e9d08dbe5ab10b2b16777101d61f5
2021-11-15 14:45:27 +00:00
jkachmar
576b07db28 ci,server: upgrades to GHC 8.10.7 and reworks server builder image
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2727
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
Co-authored-by: Swann Moreau <62569634+evertedsphere@users.noreply.github.com>
Co-authored-by: Robert <132113+robx@users.noreply.github.com>
GitOrigin-RevId: 0779ab7755fd4bdb7ed1551629b2c01d99c5ccf0
2021-11-15 13:22:39 +00:00
Kali Vara Purushotham Santhati
b312ca1596 ci: check lint errors before building oss-cli and pro-cli
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2665
GitOrigin-RevId: dac1c8f7137ff4826a3155fb78c99fc1341a8583
2021-11-15 11:04:25 +00:00
hasura-bot
52efcc208d cli: allow specifying api hostname in console command
GITHUB_PR_NUMBER: 7519
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7519

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2311
Co-authored-by: CJ Lazell <1819+cj@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: f5f2eb2ebf0eaa9f67f0f924003e839108e4034f
2021-11-15 07:16:37 +00:00
Sooraj
d867bb7303 console/actions: fix cypress tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2780
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 4ce4e24f122705fb808de0a32a2c09a30a0d78d4
2021-11-14 19:26:59 +00:00
Abby Sassel
aa38733d3b server/rfc: update haskell test suite RFC with discussion
Document open Qs and design decisions from the last week (with @chrisdone @aniketd @0x777 @jkachmar). Please let me know if I've misunderstood anything, otherwise I'll assume agreement and try to get notes merged eod tomorrow.

[Rendered](https://github.com/hasura/graphql-engine-mono/pull/2827/files#diff-413b62860d531837479c6dd82ec2b2d9124861dd86a0d3ab67c5eaf7bff6d781).

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2827
GitOrigin-RevId: 34116cc119463dc1d67d4430dafba77cbbd941d6
2021-11-11 18:30:36 +00:00
Anon Ray
b3464c9cb2 server: fix JSON path in error when parsing sources in metadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2839
GitOrigin-RevId: 9c46f289b28082bacb0a05a47ead643369d866d3
2021-11-11 15:56:36 +00:00
Nicolas Beaussart
59cc19e2d4 console: remove import order eslint rule
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2824
GitOrigin-RevId: cd17ab0fee72821e9379b518f152cd4cb0706105
2021-11-11 13:36:18 +00:00
Matt Hardman
7303dd739c console: fix flaky manage database test
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2553
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
Co-authored-by: Ikechukwu Eze <22247592+iykekings@users.noreply.github.com>
GitOrigin-RevId: b4ffb4ea1a14ce27e21a71a797efdde0b5affdd8
2021-11-11 12:16:05 +00:00