Antoine Leblanc
27e68517e7
server: unify parsing Postgres scalars
...
GitOrigin-RevId: f2a938758cb82b432ec209b0fb453a1d8b206bee
2021-05-13 20:13:49 +00:00
Rikin Kachhia
1bfa53bb4d
docs: update upgrade to v2 guide
...
- add migrations transactionality behaviour change
- update migrated env var list
- add deprecated msg to env vars
- add order by behaviour change
GitOrigin-RevId: 48c0659ef2d7c69eac1fccba1d883dd9e60f939f
2021-05-13 16:53:12 +00:00
Antoine Leblanc
08d605baca
gardening: move RQL.Instances to Base and clean it
...
GitOrigin-RevId: 01fa4133a4002f891d213c1f913511ccfd3c1741
2021-05-13 13:18:33 +00:00
Abhijeet Singh Khangarot
f24caef627
console: add union types to remote schema permissions
...
GitOrigin-RevId: a2a8311bfee98d1d1285fe869ed2a5963f84440d
2021-05-12 16:19:22 +00:00
Aravind K P
2d126342f8
ci: move "install deps" in server test CI jobs to server image builder
...
GitOrigin-RevId: 8e4388a856b7bae4abcd3c9db289826e89128f8b
2021-05-12 15:25:30 +00:00
Praveen Durairaju
afc01448e1
docs: fix broken links to relay.dev
...
GitOrigin-RevId: bf6a149d30e42150aa198ab50edca0158217a4d9
2021-05-12 13:54:32 +00:00
Swann Moreau
04a87970f4
server: sanitise event trigger logs ( fix #1233 )
...
- sanitise the response field in event trigger and scheduled trigger logs, removing the body and the headers
- flatten the log structure to include the event id at `$.detail.event_id` instead of `$.detail.context.event_id`
the log format changes as follows:
```diff
diff --git a/log b/log
index 96127e0..1fb909a 100644
--- a/log
+++ b/log
@@ -1,48 +1,15 @@
{
"detail": {
- "context": {
- "event_id": "b9d4e627-6029-43f2-9d46-31c532b07070"
- },
+ "event_id": "adcc8dcd-2f32-4554-bd55-90c787aee137",
"request": {
"size": 416
},
"response": {
- "body": "{\n \"args\": {}, \n \"data\": \"{\\\"event\\\":{\\\"session_variables\\\":{\\\"x-hasura-role\\\":\\\"admin\\\"},\\\"op\\\":\\\"INSERT\\\",\\\"data\\\":{\\\"old\\\":null,\\\"new\\\":{\\\"name\\\":\\\"someotheranimal\\\",\\\"id\\\":3}},\\\"trace_context\\\":{\\\"trace_id\\\":\\\"e8237c03de151634\\\",\\\"span_id\\\":\\\"8c5f8952e9e06da8\\\"}},\\\"created_at\\\":\\\"2021-05-06T07:52:58.796611Z\\\",\\\"id>
- "headers": [
- {
- "name": "Date",
- "value": "Thu, 06 May 2021 07:53:00 GMT"
- },
- {
- "name": "Content-Type",
- "value": "application/json"
- },
- {
- "name": "Content-Length",
- "value": "1692"
- },
- {
- "name": "Connection",
- "value": "keep-alive"
- },
- {
- "name": "Server",
- "value": "gunicorn/19.9.0"
- },
- {
- "name": "Access-Control-Allow-Origin",
- "value": "*"
- },
- {
- "name": "Access-Control-Allow-Credentials",
- "value": "true"
- }
- ],
- "size": 1692,
+ "size": 1719,
"status": 200
}
},
"level": "info",
- "timestamp": "2021-05-06T13:23:00.376+0530",
+ "timestamp": "2021-05-06T13:25:14.481+0530",
"type": "event-trigger"
}
```
GitOrigin-RevId: d9622de366737da04dc6d9ff73238be16ec9305e
2021-05-12 12:10:53 +00:00
Ikechukwu Eze
726c3e07b3
console: fix browse rows sections failing on a table with custom name
...
Fixes browse rows sections failing on a table with custom name and also not exposing a table with custom name to GraphQL API
Resolves [#6849 ](https://github.com/hasura/graphql-engine/issues/6849 ) and also [#6647 ](https://github.com/hasura/graphql-engine/issues/6647 )
GitOrigin-RevId: 00be15c766a457efd75e15801f91d9f793450131
2021-05-12 09:21:41 +00:00
Aleksandra Sikora
8c21ca5d21
console: revert improve data/relationships e2e tests
...
The changes turned out to be flaky — tests were failing from time to time, and blocking other PRs from being merged.
Reverts hasura/graphql-engine-mono#1037
GitOrigin-RevId: 97d95156e8d348f2e89ec33e06ffaac9bf75a2f9
2021-05-12 07:37:45 +00:00
Naveen Naidu
27aa5b4781
pro: restrict GQL operations based on node limits
...
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 49268fcd36dd15e10c7b7c5fe91af93cd65cb4e2
2021-05-12 06:25:45 +00:00
Antoine Leblanc
4c8753afca
server: fix single char SQL generation ( fixes hasura/graphql-engine#6814 )
...
GitOrigin-RevId: cbbec459cf7b214d50a14e5ef09f2567356e6481
2021-05-11 23:28:30 +00:00
Antoine Leblanc
2152911e24
server: introduce Hasura.Base (take 2)
...
GitOrigin-RevId: 0dd10f1ccd338b1cf382ebff59b6ee7f209d39a1
2021-05-11 15:19:33 +00:00
Chris Done
56c094b299
Support query explain for MSSQL ( fixes #1024 )
...
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
Co-authored-by: Vamshi Surabhi <6562944+0x777@users.noreply.github.com>
GitOrigin-RevId: 5a57d7570884a5469a947742e4ab9290a0cff55f
2021-05-11 10:05:39 +00:00
hasura-bot
62f69a428a
Fix typo in debug logs
...
GITHUB_PR_NUMBER: 6882
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6882
Co-authored-by: Carl Patenaude-Poulin <1834919+lilred@users.noreply.github.com>
GitOrigin-RevId: 84188e6cc070de5d534d910b8932b16c355e63cf
2021-05-11 06:49:28 +00:00
Abhijeet Singh Khangarot
ad461d9285
console: hide bigquery from connect db form dropdown in cloud console
...
GitOrigin-RevId: e71b33ce2154e0584a773de49fa41c4e0c153d13
2021-05-10 23:19:35 +00:00
Abby Sassel
1e45580e7c
server/mssql: fix subscriptions ( fixes #6887 )
...
GitOrigin-RevId: 0d0184bd910400ea3a48a650fc61391fa8fd5518
2021-05-10 10:18:45 +00:00
Praveen Durairaju
97f84f5a71
docs: avoid discord redirect
...
GitOrigin-RevId: 0657951427b5bd6b45e9dbbbfd63d6caa3dee4a9
2021-05-07 14:23:50 +00:00
Aleksandra Sikora
c46b256fff
console/mssql: fix fetching information about primary key and unique key columns
...
GitOrigin-RevId: b2796d12223c60374c553f580acc08a02df71a88
2021-05-07 14:07:28 +00:00
Rikin Kachhia
21215dad1b
docs: update docker windows hostname
...
GitOrigin-RevId: c0d18b985225a3d921e734afe8448c41b820df4f
2021-05-07 13:02:40 +00:00
Antoine Leblanc
007bd338a6
server: remove unnecessary text decorations in BigQuery explain
...
GitOrigin-RevId: 55101cb3164490f52ef7c7be4c720d351e26b3d4
2021-05-07 11:41:31 +00:00
Ikechukwu Eze
d3887071af
console: improve data/relationships e2e tests
...
This is the first step in making our cypress test faster.
Will clean the comments up in the coming days
Running time imporves from ~7mins to ~83secs
GitOrigin-RevId: d8d2b23c5a46789a3828dac1c6652034bd0bfc1c
2021-05-06 10:20:44 +00:00
Karthikeyan Chinnakonda
d7ccf81526
server: fix bug when executing a custom function with a row type argument
...
GitOrigin-RevId: d3a1fa8c9f6b420f4c88eb60c92019c8d0fdc58d
2021-05-06 09:19:49 +00:00
Lyndon Maydwell
3fad5f6678
REST endpoint uuid param bugfix
...
GitOrigin-RevId: 56066b145576c1f536c420be3e537e8313e61099
2021-05-06 06:44:17 +00:00
hasura-bot
e5b8ae8639
server: support custom URI schemes in CORS config ( fix #5818 )
...
GITHUB_PR_NUMBER: 5940
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/5940
Co-authored-by: Carl Patenaude-Poulin <1834919+lilred@users.noreply.github.com>
Co-authored-by: Brandon Simmons <210815+jberryman@users.noreply.github.com>
GitOrigin-RevId: 8060a18a49baeb32e607f2695f16d6867aa1f78e
2021-05-06 00:53:14 +00:00
Antoine Leblanc
d22d26b39c
server: fix BigQuery's hack for explain.
...
GitOrigin-RevId: 6668e16dee1a6bb0b666cfe0b4727f2c4f3181fb
2021-05-05 16:20:54 +00:00
Sameer Kolhar
2b0b4ec3a4
console: improve functions permissions messages in case of missing table's select permissions
...
Co-authored-by: Aleksandra Sikora <9019397+beerose@users.noreply.github.com>
GitOrigin-RevId: 52007786113622c15bd719cbea6b041c27ebd675
2021-05-05 14:55:35 +00:00
Karthikeyan Chinnakonda
4702ba514a
pro server: disable GraphQL schema introspection for specified roles
...
GitOrigin-RevId: 36ceb1852bc7779092cfb59c92035dd9635b2e3f
2021-05-05 12:26:23 +00:00
Anon Ray
3adbbcd219
server: add EKG metrics for active subscriptions
...
GitOrigin-RevId: 348245eebf5c3ddaf975707a23125e1bb057fe34
2021-05-05 04:25:07 +00:00
Antoine Leblanc
fe22aa5407
ci: improve hlint messages
...
GitOrigin-RevId: 7547c2a08161989885b4e6c382c1e42cec809857
2021-05-04 21:52:55 +00:00
Antoine Leblanc
34fc92ea8c
server: fix validation of query variables ( fixes hasura/graphql-engine#6867 )
...
GitOrigin-RevId: 395bf986e0b823f9f18fb9f204e2056b2d2fd682
2021-05-04 17:58:43 +00:00
hasura-bot
20694a96f0
Minor grammar tweak on init command errors (exist -> exists)
...
GITHUB_PR_NUMBER: 6624
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6624
Co-authored-by: Zack Amiton <20943979+Nathansbud@users.noreply.github.com>
GitOrigin-RevId: e30d2187a980b7622a6e68c32608b68f2ccdd491
2021-05-04 16:36:50 +00:00
Aleksandra Sikora
dffe785543
console: read-only modify page for mssql
...
Co-authored-by: Sooraj <8408875+soorajshankar@users.noreply.github.com>
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: f3fe2e313b39310bac95e3118e6e14f645627769
2021-05-04 14:41:54 +00:00
hasura-bot
fef2529c41
docs: fix typo in inherited roles
...
GITHUB_PR_NUMBER: 6863
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6863
Co-authored-by: Brian Childress <2747820+brian-childress@users.noreply.github.com>
GitOrigin-RevId: e385e3899cf436d08b8f97a6f25dd573d02245b5
2021-05-04 13:33:50 +00:00
Vamshi Surabhi
3dfc50e3ac
console/mssql: do not use deprecated sysusers to fetch schema list
...
On certain MSSQL sources (Azure serverless databases), `sysusers` is not supported.
From [MSSQL docs](https://docs.microsoft.com/en-us/sql/relational-databases/system-compatibility-views/sys-sysusers-transact-sql?view=sql-server-ver15 ):
> This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead
Co-authored-by: Ikechukwu Eze <22247592+iykekings@users.noreply.github.com>
GitOrigin-RevId: 6d8a91afa66569cc30b7b83a0c7813a3850c4c9a
2021-05-04 12:41:40 +00:00
Aravind K P
eeafc06288
cli: update console assets buckets selection
...
GitOrigin-RevId: 524b4612cf059315fc3a6466857994b8909d5d67
2021-05-04 12:00:12 +00:00
Ikechukwu Eze
512c3008b6
console: filter out partitions from track table list and display partition info
...
### Description
Resolves #1128
### Changelist
- [x] Removed partitions from list of untracked tables (clean up awaits)
- [x] Display table definition at modify table like that of `psql \d+ tableName`
- [x] Fix broken console error when reloading console on `Modify` and `Relationships` tab for any other schema than default redirect schema.
- [x] Fetch table partition info only at /table/modify
### Screenshots
<img width="700" alt="Screenshot 2021-05-04 at 12 57 30" src="https://user-images.githubusercontent.com/9019397/116993856-4c6c2000-acd8-11eb-8a61-cd2b45d6e7ac.png ">
### Changelog
- [x] Console
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
Co-authored-by: Aleksandra Sikora <9019397+beerose@users.noreply.github.com>
GitOrigin-RevId: 3a6e527839daf52af101c2ce1803eefba600d29e
2021-05-04 11:20:31 +00:00
Vijay Prasanna
f015234ef6
console: fix allSourcesSchemas mapping when there are sources with no tables
...
**How to repro this bug:**
1. Create another source, in addition the existing `default source`
2. this new source has one or more tables while the `default` has none.
3. If you check the Redux State object, the `allSourcesSchemas` attribute has the wrong mapping of objects
```JSON
allSourcesSchemas:
default: {}
```
This results in the table_types not being mapped properly.
For example in the below screenshot, I have 2 db objects, one is a view and the other is a table. Since the `allSourcesSchemas` is not mapped properly, the table_type is not available to `DataSubSidebar.js`
![Screenshot 2021-05-04 at 11 22 27 AM](https://user-images.githubusercontent.com/11921040/116965274-065c8f80-accb-11eb-9a4f-c1fedced8e6a.png )
GitOrigin-RevId: d728f08306ce7a8770d7d08a6236b76cd379f140
2021-05-04 09:54:19 +00:00
Rakesh Emmadi
d362e0726e
server/mssql: fix MSSQL table metadata SQL, return empty array for no rows
...
GitOrigin-RevId: ea73e71365150916e1f517f29b812983770644e5
2021-05-03 12:08:11 +00:00
Aravind K P
2d88c4554c
cli: on m1 macs use darwin/amd64
builds in installation script
...
GitOrigin-RevId: 51078adaab957296c4efa9973f19daa9dec570b2
2021-05-03 08:00:44 +00:00
Aleksandra Sikora
99ec0aeab6
console: fix missing headers for get_event_invocations request
...
GitOrigin-RevId: 19d344d6b8b4a407c7f8fa787b95bc210b5bf84f
2021-04-29 17:54:26 +00:00
Tirumarai Selvan
eb38eee63a
tag release v2.0.0-alpha.10 ( #1256 )
...
GitOrigin-RevId: afe16e57e03cf2b790d47f8e44bbb63ae4405f8e
2021-04-29 11:17:50 +00:00
Anon Ray
7550761853
server: add active websocket connections to server metrics
...
GitOrigin-RevId: 5177d1c90ffd48c7e28f8ffb726753cb55c89b7f
2021-04-29 10:32:15 +00:00
Vishnu Bharathi
5b7a67851f
ci: fix pro migration and enable kodiak priority merge
...
GitOrigin-RevId: f003395846a3664c8ff527944cf9ee7c7d8e2914
2021-04-29 08:01:30 +00:00
Brandon Simmons
9c9bb43a53
server: restore proper batching behavior in event trigger processing ( #1237 )
...
This essentially restores the original code from c425b554b8
(https://github.com/hasura/graphql-engine/pull/4013 ). Prior to this
commit we would slurp messages as fast as possible from the database
(one thing c425b55
fixed).
Another thing broken as a consequence of the same logic was the
removeEventFromLockedEvents logic which unlocks in-flight events
(breaking at-least-once delivery)
Some archeology, post-c425b55:
- cc8e2ccc
erroneously attempted to refactor using `bracket`, resulting
in the same slurp-all-events behavior (since we don't ever wait for
processEvent to complete)
- at some point event processing within a batch is made serial, this
reported as a bug. See: https://github.com/hasura/graphql-engine/issues/5189
- in 0ef52292b5
(which I approved...) an `async` is added, again
causing the same issue...
GitOrigin-RevId: d8cbaab385267a4c3f1f173e268a385265980fb1
2021-04-29 04:02:05 +00:00
Lyndon Maydwell
507d3aac2c
Change schema sync env var to HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL
...
GitOrigin-RevId: 13ed047c9ff391e212c8a50dd13dd0adad666a9e
2021-04-28 22:27:21 +00:00
Swann Moreau
c834629afb
server: fix regression in query-log
generation
...
Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com>
GitOrigin-RevId: 74cc6bad2274dc1587f4d3b38e444857d079a4ac
2021-04-28 17:39:02 +00:00
Karthikeyan Chinnakonda
aca8964fdc
server: make postgres related ENV vars source specific
...
Co-authored-by: Tirumarai Selvan <8663570+tirumaraiselvan@users.noreply.github.com>
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
GitOrigin-RevId: 8ec3db00f00e9c28bf2dc0f47bd312a656c61a69
2021-04-28 16:50:14 +00:00
Vamshi Surabhi
1c668dac0e
server/mssql: fix aggregations
...
Aggregate fields - both the table and the relationship fields haven't been enabled till now. This PR fixes enables the aggregate fields and fixes an issue with root aggregate fields.
Co-authored-by: Chris Done <11019+chrisdone@users.noreply.github.com>
GitOrigin-RevId: a6d7ed9b45cda6af659a57576a8623c725a7372f
2021-04-28 11:06:26 +00:00
Karthikeyan Chinnakonda
bc1e131717
server: accept new env var HASURA_GRAPHQL_EVENTS_FETCH_BATCH_SIZE
...
GitOrigin-RevId: 62c463d3ee754ce9f05ba09afa8cd74ca807a96c
2021-04-27 17:23:46 +00:00
Vladimir Ciobanu
f50f61ab6a
server: fix one-to-one relationships
...
GitOrigin-RevId: e19f4dec04abbdcf4589d24031705e5c57ea1fbb
2021-04-27 13:45:45 +00:00