Tom Harding
63cc498619
Move PrimaryKeySpec
into the new test structure
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5182
GitOrigin-RevId: 26dafbf95ff6d2cf2f7d3e9d9eec2441f2ef02ce
2022-07-27 11:04:16 +00:00
Vishnu Bharathi
61bc9c498b
ci: tag release v2.9.0 and v2.10.0-beta.1
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5214
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 93adb002a5a7d9c3983738d9719e83918a571160
2022-07-27 10:16:23 +00:00
Tom Harding
bd1fde3d8b
Create and organise OffsetSpec
, remove LimitOffsetSpec
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5186
GitOrigin-RevId: 08687b3e77a6e8663cf0ec59e638aa917a334574
2022-07-27 09:46:55 +00:00
Tom Harding
04887f00de
Remove Test.OrderingSpec
, create Test.Queries.SortSpec
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5188
GitOrigin-RevId: 8d5ca048a838a29991ca4b4425ce0439c60f94b1
2022-07-27 09:08:20 +00:00
Tom Harding
9a55b50d0e
Remove the BasicFieldsSpec
module, reorganise its contents
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5189
GitOrigin-RevId: f68baca8cc5c0b52135141191bbbee5771d791e1
2022-07-27 08:33:59 +00:00
Naveen Naidu
b69182f4fe
server: delete hasura SQL triggers when tables are untracked
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5130
GitOrigin-RevId: c8bec0c5ac0eb9c576e86a218311b5c0503ee400
2022-07-27 07:58:11 +00:00
Lyndon Maydwell
607497f82f
Increase timeout for DC Agents
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5172
GitOrigin-RevId: 1d286447901e34a77518e062315b80f4f775eebf
2022-07-27 07:19:44 +00:00
Naveen Naidu
e4dad73adb
server/pro: log when rate limits and time limits are hit
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5170
GitOrigin-RevId: fe07b0bf48804c6b4af3d5887d853ffcfde6207d
2022-07-27 06:40:21 +00:00
David Overton
a6dca587d2
Update autodocodec
...
Updates to the latest version of autodocodec and uses the new features, in particular `discriminatedUnionCodec`.
This allows us to remove the `ValueWrapper*` types and `sumTypeCodec`. Sum types are now encoded as discriminated unions.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5155
GitOrigin-RevId: 20bfdc12b28d35db354c4a149b9175fab0b2b7d2
2022-07-27 05:28:47 +00:00
Samir Talwar
87456360ad
server: Move ErrorMessage
to its own package.
...
This is now the sole in-universe dependency of the schema parsers. As
such, we need to extract it as a library before we can extract the
schema parsers as a library.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5202
GitOrigin-RevId: fbe571855768e56dc8b8e259b8efe900de3ecc54
2022-07-27 04:38:12 +00:00
paritosh-08
12064dd24c
docs: apollo federation
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5146
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: dbd8f3bc08ff847b4925867623417b6a70361d5a
2022-07-27 04:05:08 +00:00
Samir Talwar
a471c5080b
Nix: Upgrade Python to the latest version.
...
There's no reason to pin it to v3.7. This wasn't causing the Docker
Compose issues; it's a dependency version issue.
We actually don't need to install `docker-compose` at all. It's now a
Docker plugin (and is bundled in Docker Desktop) since Docker Compose
v2. You can run it with `docker compose`.
This also fixes a bug in _dev.sh_ due to a moved `make` target.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5197
GitOrigin-RevId: 638b2eb39c99e7a990e7a6c66388831438aed45f
2022-07-26 16:47:18 +00:00
Matt Hardman
a71007566b
console: update relationships forms
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4955
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: e0e54a54293779c9e1d66d1aa4ad6b24b55e0ddc
2022-07-26 15:05:45 +00:00
Tom Harding
b1bf07db34
Absorb SelectSpec
into ObjectQueriesSpec
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5196
GitOrigin-RevId: ee1f2c53225904b63f3bd0c33aeecbdd5cb02f36
2022-07-26 14:18:58 +00:00
Tom Harding
307071840f
Add the basic limit query
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5183
GitOrigin-RevId: 76e1f59c3e5212f69b4b13e431627cfff141a8b5
2022-07-26 13:32:16 +00:00
Anon Ray
b59d53b0ea
multitenant/pro: add time limits to policies
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4464
GitOrigin-RevId: 31ad8e12c5727fea2dd69415b98ab2a937cd0d44
2022-07-26 12:42:49 +00:00
Sooraj
e243fccc62
console: create a hook to fetch table definition from URL
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5007
GitOrigin-RevId: f3232d966bd97e7cc6e249c40a753fa5072265b5
2022-07-26 12:07:25 +00:00
Matt Hardman
83882bf558
console: implement clone permissions
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4838
GitOrigin-RevId: 1cc7abc977c1296f1a2bccfcdead75fd20039d1a
2022-07-26 10:59:04 +00:00
Daniele Cammareri
b9010f1025
console: fix broken table relationship query on non-default schema
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5132
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: e034eb015405396e8359d9b81e0af4e73c3e0dd9
2022-07-26 10:25:30 +00:00
Tom Harding
5cca33611b
Remove redundant test
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5187
GitOrigin-RevId: 25d711ef42f431d3aa6874581580ce2dad53f3f1
2022-07-26 09:28:31 +00:00
Solomon
1e5b2b9fa5
Restructure Pro Parser modules to align with the OSS Parser
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5191
GitOrigin-RevId: 96b7d4c7e5a1b2d84664587bb43a79afcf29766f
2022-07-26 07:33:35 +00:00
Daniel Chambers
2b9c224170
server: Simplify FieldValue in Data Connector query responses for agents
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5149
GitOrigin-RevId: 4ed438fdd9887b0b4d23a98156e350deb3403465
2022-07-26 02:30:14 +00:00
Solomon
3bbd19f747
Add unit tests for Pro Env Var parsing
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5165
GitOrigin-RevId: ee6ce6aa28c773e6c249f61059f6399ada0b62e1
2022-07-26 00:43:26 +00:00
Samir Talwar
adca95a78d
server: Use make
to simplify tests-py venv generation.
...
Rather than a homebrewed approach, we can use `make` to figure out when
it's necessary to regenerate our venv.
This Makefile will regenerate _requirements.txt_ from
_requirements-top-level.txt_ when the latter is changed.
It will also regenerate the venv when _requirements.txt_ is changed
(i.e. changes are pulled, or it's regenerated as described above).
`make` uses file/directory timestamps to figure out what to rebuild.
This is probably more reliable than expecting people to update a version
number whenever they change a file.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5152
GitOrigin-RevId: 24b27d49bf6c4ba1d57ac38ea38ae278216c6d66
2022-07-25 20:05:49 +00:00
Tom Harding
15fa2f7b56
Remove HelloWorldSpec
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5178
GitOrigin-RevId: d8c48a01f452b632503ba7b90c9d549167e5c519
2022-07-25 18:07:08 +00:00
Luca Restagno
5f3e355a9f
console: common track table hook
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5040
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: d4c38f6baf785a8dafb96463c595d1dc33d63959
2022-07-25 17:10:07 +00:00
Samir Talwar
e1c7767d5e
Run both integration test suites against PostgresSQL v14 with Postgis.
...
Let's be consistent about this.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5177
GitOrigin-RevId: 75a48452984a0762e52ee251a98f086f2ae1b150
2022-07-25 16:37:54 +00:00
paritosh-08
95adde4ce2
server: support for Apollo federation
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4584
Co-authored-by: Auke Booij <164426+abooij@users.noreply.github.com>
GitOrigin-RevId: 0f60c263efb5fbaa25620dd8159e8cfda25a61b2
2022-07-25 15:54:41 +00:00
Tom Harding
73d8d35df3
Add the Schema.TableRelationshipsSpec
tests
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5133
GitOrigin-RevId: 29b749ffc1e47f0d64cc6334bedb265b75fa7aa2
2022-07-25 14:52:42 +00:00
Tom Harding
7b2bb262b8
Add the Queries.SimpleSpec
tests
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5138
GitOrigin-RevId: 1328772e5262f4cd4d931bfb40103fe619d39f83
2022-07-25 13:34:47 +00:00
Samir Talwar
33b19c327c
Replace Data.Text.Extended
with ErrorMessage
in a few more places.
...
Mostly in the schema parsers code, to reduce its exposure to the rest of
the codebase.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5088
GitOrigin-RevId: 752fcc10b4748b601e2e5313db326fe7f84febb4
2022-07-25 10:42:03 +00:00
Abby Sassel
77b4b395ef
server/bigquery: test row level permissions
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5115
GitOrigin-RevId: 8fa2261cefc3d2932542be6b07499b47df74e9d1
2022-07-25 09:53:14 +00:00
Abhijeet Khangarot
a4652848e1
console: improve storybook folder structure
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5167
GitOrigin-RevId: 384f86dda2ae7e759659a920aba2263cf36e0310
2022-07-25 08:47:07 +00:00
dsandip
c7a9589bdc
Update redis connection string sample
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5171
GitOrigin-RevId: 8d86b12bb1d45c0b7a166b8c9230c5db5c7db847
2022-07-25 07:37:49 +00:00
pranshi06
ba734fb0f3
server: refactor ActionWebhookResponse
type
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3796
GitOrigin-RevId: 671a586b12c721dc93d3ace7ab6f601898abccc0
2022-07-25 07:07:51 +00:00
awjchen
227e11d481
server: expose Prometheus metrics from Hasura Pro
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4972
GitOrigin-RevId: fadfcb0981cd9dfe0a316804ead87d7778ece1e9
2022-07-23 21:19:20 +00:00
Solomon
11e605ecd6
Bug Fix for missing --admin-secret result in final admin secret hashset
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5166
GitOrigin-RevId: 30dd5a5c7fdeef349afbb64e2342030ae8afdda4
2022-07-23 03:49:17 +00:00
Abby Sassel
f35039ff9b
server/docs: BigQuery Schema > Data Validation
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5126
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 0b58afa424813a4ee612dc10e1f58c02b779a191
2022-07-22 15:33:07 +00:00
Gil Mizrahi
ee15c804bc
server/postgres: prefix identifiers longer than 63 characters with their md5 hash
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5080
GitOrigin-RevId: 58e5e6aab136617d1bbfc6621c89942da358b04d
2022-07-22 15:29:02 +00:00
Tom Harding
ca218706be
Delete WhereSpec
, add FilterSearchSpec
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5151
GitOrigin-RevId: 97628540f82bcff7d7fe5acf54586df96acd78f4
2022-07-22 14:51:02 +00:00
Vijay Prasanna
a13655080f
fix (console): allow table customisation for BigQuery
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5148
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: 122d2d73d65a35126e8496a4f497adfd8059e76b
2022-07-22 12:49:04 +00:00
Samir Talwar
0e4d709285
Factor tool versions out into server/VERSIONS.json.
...
This helps us use the same versions locally as in CI. If you're using the Nix setup, it guarantees it.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5111
GitOrigin-RevId: 6e00cd7a78593df1e60fac37cc1195aba60e488f
2022-07-22 12:23:46 +00:00
Matt Hardman
3c2af43817
console: add new suggested relationships hook
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4877
Co-authored-by: mattwhaleblue <97981123+mattwhaleblue@users.noreply.github.com>
GitOrigin-RevId: d13cba6079b409cbd32f3085c816df6a9319b8ca
2022-07-22 11:47:46 +00:00
Samir Talwar
778b1bae2b
Fun improvements to Makefiles, with the intent of re-using test-infrastructure.mk.
...
I intend to use the Make targets around starting and stopping backend databases in order to wrap the Python integration tests in targets.
To that end, I have:
1. Factored out test infrastructure targets into _test-infrastructure.mk_.
2. Actually run the functions from _util.sh_; previously we were just running a bash script with no explicit commands. _util.sh_ must be `source`d and then you invoke the relevant function.
3. Run `docker-compose` through Nix if possible.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5136
GitOrigin-RevId: d7a01958045a82199c969ec3f88387d7d76d254b
2022-07-22 10:57:23 +00:00
Samir Talwar
89eafb1589
server: Re-freeze tests-py/requirements.txt.
...
I tried re-freezing _server/tests-py/requirements-top-level.txt_
recently, and discovered that it caused the tests to fail.
This pins a couple of dependencies so that we can safely re-freeze.
Specifically:
- `cryptography` is pinned at v3.*
- `graphene` is pinned at v2.*
- `PyJWT` is pinned at v2.3.*
- `websocket-client` is pinned at v0.56.0 (this was done in
_requirements.txt_ already, but that file is supposed to be
regenerated)
Upgrading `SQLAlchemy` required changing PostgreSQL URLs to use
"postgresql://" as the URL scheme, not "postgres://".
Updating `ruamel.yaml` caused a few tests to fail as we are passing
`ruamel.yaml.scalarstring.LiteralScalarString` values as header values.
This is fixed by explicitly converting header values to strings.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5120
GitOrigin-RevId: 9c12a3013c3d1f23dddbe781037663838b23f6f5
2022-07-22 10:25:33 +00:00
Daniel Chambers
2df835624d
server: Nodes field support in Data Connector aggregate queries [GDW-187]
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5108
GitOrigin-RevId: 2d707abab0ae429e30be620225c4c419b960aa3f
2022-07-22 09:47:32 +00:00
Varun Choudhary
b2cbd343bd
feature (console): Single Table Tracking Customization
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5122
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
GitOrigin-RevId: 8a630e44b6ae34925b59220920275055018e223f
2022-07-22 09:14:25 +00:00
Rob Dominguez
5811994469
Docs: Adds reverted docs changes for #5018
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5135
GitOrigin-RevId: a532fab7c2a7c931d51f1044e9f5f46a69201a5f
2022-07-22 06:44:19 +00:00
paritosh-08
c562fd41a4
server: fix desc
order_by
for dataconnector
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5144
GitOrigin-RevId: d17e765eaf8cda3630c6339b90aa90eeff5b5cea
2022-07-22 06:36:24 +00:00
Solomon
0109dd7fd4
Refactor/extract pro arg parser and add tests
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5142
GitOrigin-RevId: 724d5ad0e3f66fb5ba79f48946426ad4eddee37d
2022-07-21 23:37:10 +00:00