Commit Graph

5598 Commits

Author SHA1 Message Date
Erik Magnusson
d16924f50f console: refactored browse rows to refetch on every table name change
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6800
GitOrigin-RevId: 139ab75efff584baf1619bde46dc55e7e6d3250f
2022-11-09 10:06:54 +00:00
Samir Talwar
8be01ae9aa server/api-tests: Use setupTablesAction everywhere.
This removes calls to `setup` and `teardown` in favor of `setupTablesAction`.

Because this action untracks and drops tables (at least until we figure out how to make throwaway databases), the teardown phase can fail. I have added a wrapper which logs and discards exceptions as a workaround for now.

In the future, when we can simply drop the database, it will probably be sensible to catch "table already untracked" exceptions specifically and let them slide, while still failing on all other exceptions.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6769
GitOrigin-RevId: 12cb8f81dd6aced892fe83c49b9a0bdbef8cc1ac
2022-11-09 09:36:43 +00:00
Luca Restagno
c43c89eccf console: fix modify tab visibility when insert is selected
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6790
GitOrigin-RevId: cc133f83719abac485977e2b171f874ebb76493a
2022-11-09 08:50:56 +00:00
Gil Mizrahi
75ffa94b17 enable citus and cockroach streaming subscriptions and extend test
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6711
GitOrigin-RevId: 10e012132bcef27b1ed35a654f349c6d74d72e1d
2022-11-09 07:23:37 +00:00
Daniel Chambers
431311e74e Add support for ordering by related tables and aggregates to the SQLite agent [GDC-313]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6773
GitOrigin-RevId: 9cca50511aa9e8ef7c4e2a20f280be0fa51aab85
2022-11-09 06:06:58 +00:00
Solomon
1ff7d3535f Refactor DataConnector FixtureName constructors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6756
GitOrigin-RevId: 5f736a891ad15d4707f6a9d88037cbc89a4c00e5
2022-11-09 05:09:04 +00:00
Matthew Goodwin
063500d750 replace athena with Amazon Athena for agent name in ddl
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6793
Co-authored-by: Matt Hardman <28978422+mattshardman@users.noreply.github.com>
GitOrigin-RevId: 649570e03f34291dca7e4cb731ef109b53877dee
2022-11-08 23:17:35 +00:00
Stef Moreno
4cd6eaf868 docs: remove best practice references
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6752
GitOrigin-RevId: 7d8a631ac540946846957fe50ce2c2464a0a1755
2022-11-08 21:21:09 +00:00
Daniel Harvey
2d8e6372e9 [server/tests] - fresh CockroachDB per test
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6788
GitOrigin-RevId: 71e1f0840de101796d2ebeec240a4f0075640a68
2022-11-08 18:59:17 +00:00
Sean Park-Ross
09c6c9b6a4 Docs: Fix a missing image in the Athena PR
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6787
GitOrigin-RevId: 856c045a32aa6e0903e49b935156bf22a0ac2999
2022-11-08 17:11:27 +00:00
pranshi06
7b7845f697 server: add jwk-refresh-log type to default enabled logs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6775
GitOrigin-RevId: 23fbeceb91e51380ccf0bb5830a4471d8964a3f5
2022-11-08 16:48:44 +00:00
Luca Restagno
ed8e81270e Console: fix export to CSV and JSON when no filter conditions are present
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6780
GitOrigin-RevId: 09c737c170b1427e0f3ba758f85b921b7b53eab3
2022-11-08 15:49:59 +00:00
Stefano Magni
90f6cde701 console: Fix the broken GraphiQL REST button (close #9189)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6779
GitOrigin-RevId: 94db764b17e5c7700a1ec501b5f6d4417f3af4f0
2022-11-08 15:04:57 +00:00
Mohd Bilal
b3f783d1b8 cli: refactor metadata apply and metadata clear commands to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6702
GitOrigin-RevId: fe2cbe9eccadc0191f524d407d0c3f0e0d17ae11
2022-11-08 14:25:47 +00:00
Mohd Bilal
7ba2409fb8 cli: refactor metadata inconsistency status and metadata reload to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6722
GitOrigin-RevId: 2dece53c8575627ffe98155261161a07f2195cef
2022-11-08 13:53:17 +00:00
Mohd Bilal
bdd30540b9 cli: refactor metadata inconsistency list and metadata inconsistency drop commands to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6720
GitOrigin-RevId: 1927535edc12fb1008b1050625f815036485151b
2022-11-08 13:05:31 +00:00
Rikin Kachhia
d2e5fa60a2 docs: update ms sql server m1 mac support warning
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6515
GitOrigin-RevId: d07e73ab2456f22d0672273ae3669da69b8a9037
2022-11-08 12:28:30 +00:00
Aravind K P
2f92abbda9 cli: port commands/scripts to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6733
GitOrigin-RevId: 57a65c6ea5175d54c2943e238a321a1219b7aa9b
2022-11-08 12:23:15 +00:00
Daniel Harvey
48bb73ecb4 [server/tests] create new Postgres DB for each test
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6741
GitOrigin-RevId: 0fa10ff8e3ab0ca9c36b1146ebf70434836f2531
2022-11-08 11:44:13 +00:00
Mohd Bilal
46d7bb97f1 cli: refactor metadata command to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6725
GitOrigin-RevId: 20110c7eee19de9090a9128023be3a6dcb6f2578
2022-11-08 10:56:18 +00:00
Mohd Bilal
7db823b8d9 cli: refactor plugins install and plugins list to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6728
GitOrigin-RevId: 742f8308b48332b3cb80ab7b05767eb8c10d8e84
2022-11-08 10:27:33 +00:00
Mohd Bilal
be8b46d37a cli: refactor plugins uninstall and plugins upgrade commands to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6736
GitOrigin-RevId: d155a2abce4dd8094ff071a8d05af4174a96f3b9
2022-11-08 09:58:45 +00:00
Mohd Bilal
ce251d7a28 cli: refactor plugins command to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6737
GitOrigin-RevId: a0636dcaa03ba43cadcdad84e4e688f8e35dfda8
2022-11-08 09:19:52 +00:00
pranshi06
fd6aa0a266 server: add jwk-refresh-log as configurable log type
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6705
GitOrigin-RevId: 1f6f45ce555cefc24836a2fc5363660e351fa13b
2022-11-08 07:37:50 +00:00
Adron Hall
4d041ffd20 docs: adding amazon athena connector beta - first draft.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6534
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: Brandon Martin <40686+codedmart@users.noreply.github.com>
GitOrigin-RevId: fb316b24896bd46dbd8c5d6d1b4cdcd938f2f504
2022-11-08 03:55:46 +00:00
kodiakhq[bot]
3a76c57adf Some inlining and bang patterns to improve memory residency
Just forcing some of the most numerous thunks (with -hi profiling), it
seems some of these were retaining significant amount of data

this can follow merge of, or supersede #6679

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6710
GitOrigin-RevId: d0566ee288841e264637231a7f238946aa2e3564
2022-11-08 03:55:38 +00:00
Puru Gupta
a4eb5ad95d server: improve DX for heroku integration
## Description ✍️
This PR aims to improve the developer experience when using a heroku postgres instance as source database. Better error messages and relevant documentation are added as a part of this PR.

## Changelog ✍️

__Component__ : server

__Type__: enhancement

__Product__: community-edition

### Short Changelog

Improve DX for heroku integration

### Related Issues ✍
https://hasurahq.atlassian.net/browse/GS-202

### Steps to test and verify ✍
- Add a new heroku postgres instance as DB source in Hasura
- Try adding an event trigger
- Improved error message will be emitted:
```json
{
    "arguments": [],
    "error": {
        "description": null,
        "exec_status": "FatalError",
        "hint": null,
        "message": "pgcrypto can only be created in heroku_ext schema. Hint: You can set \"extensions_schema\" to provide the schema to install the extensions. Refer to the documentation here: https://hasura.io/docs/latest/deployment/postgres-requirements/#pgcrypto-in-pg-search-path",
        "status_code": "P0001"
    },
    "prepared": false,
    "statement": "CREATE EXTENSION IF NOT EXISTS pgcrypto SCHEMA public"
}
```

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6630
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>
GitOrigin-RevId: a46d7c129a4e0378b7f33445f9bda11e0bddbd74
2022-11-08 03:55:30 +00:00
Shraddha Agrawal
4f0ee2a648 docs: add Hasura Cloud Billing estimation docs
This PR adds user facing docs that explain how we calculate billing for our customers. It details which operations count in data passthrough based on which we charge customers.

Solves Jira issue: https://hasurahq.atlassian.net/browse/CPS-177

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6229
Co-authored-by: aayshasura <109507451+aayshasura@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: a0f0bcd5ee3f07b5e77c7c3768f55481f1aa6687
2022-11-08 03:55:23 +00:00
hasura-bot
78c36392eb docs: add guide on performance tuning (fix #4805)
GITHUB_PR_NUMBER: 9052
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9052

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6163
Co-authored-by: Aniketh Varma <55805574+aniketh-varma@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 0e9fac8795211e211aa9909d4f18dcfdc261f1b9
2022-11-08 03:55:15 +00:00
Naveen Naidu
0961e4fd74 docs: mssql event trigger docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4321
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
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>
GitOrigin-RevId: 9cba9e90465e95bf587469554f508f272391cb0f
2022-11-08 03:55:07 +00:00
Aravind K P
3da905c851 cli: port commands/docs command to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6745
GitOrigin-RevId: 609368683839c092bc88bf946e4a0f1d246a3256
2022-11-08 03:54:59 +00:00
Samir Talwar
9ab4eb3994 server/api-tests: Only export spec from all test modules.
This ensures that tests don't accidentally share setup/teardown code.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6755
GitOrigin-RevId: 51551dfbc0668fcd884e7055ee3790c6f465bbf8
2022-11-08 03:54:52 +00:00
Aravind K P
584c2ae6c4 cli: port commands/deploy to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6731
GitOrigin-RevId: 9017fd936ba256aea62a86e238127fb227b497db
2022-11-08 03:54:44 +00:00
Aravind K P
6cce5ed190 cli: port commands/console to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6730
GitOrigin-RevId: 231741d701c81bbf0de9eaba411226aa4ae0282f
2022-11-08 03:54:37 +00:00
Mohd Bilal
82ceb0886b cli: refactor actions and actions use-codegen to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6740
GitOrigin-RevId: fa5283ff3dbabf1ad1279408e05cd9b2dfe3a2d9
2022-11-08 03:54:29 +00:00
Mohd Bilal
91ae5f0518 cli: refactor actions codegen and actions create commands to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6738
GitOrigin-RevId: 6fc4f17651a200b98c5698ea4c9948ba370bbb43
2022-11-08 03:54:21 +00:00
Mohd Bilal
6dbd905055 cli: refactor seed apply and seed create command to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6742
GitOrigin-RevId: dbe1f047fc840b221ccfd9bc732bffe575bca310
2022-11-08 03:54:13 +00:00
Abby Sassel
0cfab171eb NDAT-192 Cleanup CockroachDB Docker image reference post-release
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6762
GitOrigin-RevId: 655be8b1158b6bb4bc7ccd73cf6d890506c9b6f6
2022-11-08 03:54:06 +00:00
Mohd Bilal
fe81275445 cli: completion.go refactored to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6750
GitOrigin-RevId: 19c9cfe8a98e9f44bee7d3aa24d4b8987dc77b42
2022-11-08 03:53:58 +00:00
Mohd Bilal
c1058fac70 cli: update and version commands updated to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6746
GitOrigin-RevId: d8271cdb890eecc861c33d765b3a364e904bee38
2022-11-08 03:53:51 +00:00
Mohd Bilal
6f537c1417 cli: refactor seed command to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6743
GitOrigin-RevId: 05c04cd8fd8dd90f25e28266b1a40e965f3f99f4
2022-11-08 03:53:43 +00:00
Vijay Prasanna
0e92fcec76 refactor (console)[WIP]: move the new metadata types into its own feature folder
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6601
GitOrigin-RevId: 9b8227ecdda9ed51cb1b41c30436792f7ac8ba61
2022-11-08 03:53:35 +00:00
Divi
a509544440 ci: v2.15.0 catalog version update
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6760
GitOrigin-RevId: 87e4318f5cc7960a6e7032c5f2805cbe38564bf0
2022-11-08 03:53:27 +00:00
Samir Talwar
bf355864b5 git: Add the Ormolu reformatting to the blame-ignore list.
Run the following to enable this:

```
git config --local blame.ignoreRevsFile .git-blame-ignore-revs
```

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6753
GitOrigin-RevId: bcc244f01d55502dddd60bba64fccd4c34487f9b
2022-11-08 03:53:18 +00:00
nevermore
33a44ae14a console: Change Experiment Client to a React Query based approach
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6595
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
GitOrigin-RevId: afb52cbbb16a37b88d6e6d651b331412185bdb88
2022-11-07 07:26:13 +00:00
awjchen
ebb28ad4c9 pro-server: add support for exporting traces over OTLP
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5862
GitOrigin-RevId: fd80a59a1459095716f94cea7b2e54f9b5d19a98
2022-11-07 06:56:08 +00:00
awjchen
3e6840e4fa server: more adjustments to metadata sync logging
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6718
GitOrigin-RevId: 8cab5e6b39b1fa85e42fa176f3fb589c5da2c081
2022-11-05 22:38:22 +00:00
Jesse Hallett
de6e5d71b0 server: codecs for table, function, and remote relationship types
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6608
GitOrigin-RevId: 9c91edec06e49b8d44960e322459ba7a05f26b5a
2022-11-04 21:44:41 +00:00
awjchen
8d6b39602a server: remove excessive metadata sync log line
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6715
GitOrigin-RevId: 564ae127b20638b15a6a0e407976ed4d90c81b4a
2022-11-04 19:42:17 +00:00
Vijay Prasanna
c447044020 fix (console): view database launches wrong route
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6747
GitOrigin-RevId: bc59aacff64bedd5a97ee03c0ff8783f0bd42b15
2022-11-04 19:07:54 +00:00