Commit Graph

8101 Commits

Author SHA1 Message Date
Rakesh Emmadi
1e91ac1f41 add a roundtrip test for metadata serialization (#343)
V3_GIT_ORIGIN_REV_ID: e6195bcd2fcdfa472ac40a11acf81938d7aa6205
2024-03-13 10:17:06 +00:00
paritosh-08
b44711aaa5 revert copy traces to stdout (38fd62f) (#345)
V3_GIT_ORIGIN_REV_ID: c9ee70e9201026378a96d1205a2a566c211230d1
2024-03-13 09:32:11 +00:00
Jesse Hallett
c50ad27037 update dev-auth-webhook lockfile (#344)
V3_GIT_ORIGIN_REV_ID: 279110b4bb1605baa36a2770e5ec0d1530944ed5
2024-03-13 08:25:10 +00:00
Daniel Harvey
6b283f7032 add just local-watch command (#339)
V3_GIT_ORIGIN_REV_ID: af7b9083fcde703010a6096d8db65ceade80f58c
2024-03-12 15:27:28 +00:00
Rob Dominguez
d1d83aafba Docs: update mariadb min req
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10718
GitOrigin-RevId: d2dd5e00db200a2a39477c3a81c0ce365637b4c5
2024-03-12 12:17:10 +00:00
hasura-bot
39e24189f3 prevent console crash when using native queries in an array relationship
GITHUB_PR_NUMBER: 10163
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/10163

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10717
Co-authored-by: Alec Flett <135340+alecf@users.noreply.github.com>
GitOrigin-RevId: a21c22dfddd5cbbd03bd43676b47e5dd0f9f38e6
2024-03-12 09:19:09 +00:00
Abhinav Gupta
8489a4b9b0 implement serialization for opendd types (#342)
V3_GIT_ORIGIN_REV_ID: e7bd868bf53e6960498c0ec764f9ee4f7ea70ff8
2024-03-12 03:01:19 +00:00
Anon Ray
441b81b96e add boolean expression types to the metadata (#331)
Co-authored-by: Abhinav Gupta <abhinav@hasura.io>
Co-authored-by: Abhinav Gupta <127770473+abhinav-hasura@users.noreply.github.com>
V3_GIT_ORIGIN_REV_ID: 86e90978132e9e87c4c20ec25902be11ffb0a56c
2024-03-12 00:29:28 +00:00
Rakesh Emmadi
f5c9a6f291 Custom deserializer for OpenDd objects (#313)
V3_GIT_ORIGIN_REV_ID: 4c7a9380e517ac8e7ac1bd44dbe879918bd0d9a2
2024-03-11 12:17:50 +00:00
paritosh-08
c04ae5994c support input coercion (#325)
Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
Co-authored-by: Samir Talwar <samir.talwar@hasura.io>
V3_GIT_ORIGIN_REV_ID: 7578b836c0491db1d1cbf5bf876b0ed5d1fc910e
2024-03-11 10:54:28 +00:00
Jesse Hallett
b255495378 copy traces to stdout (#327)
Outputs traces to stdout in addition to exporting via otlp. Stdout contains one JSON object per line, with a single span resource in each output line. This will make it quite a bit easier for me to get a quick look at what is going on in the engine during local development.

The first commit makes the change using the existing opentelemetry crate versions. The second commit upgrades the opentelemetry dependencies. I thought I would include that just because I went to the trouble of figuring out how to do that upgrade.

The JSON output is noisy, but can be formatted nicely with some shell functions. For example in nushell I use these functions to process the opentelemetry data coming via docker-compose or arion-compose log output:

```nu
# Get log output from arion/docker-compose services with JSON parsing. If an
# argument is given filters to logs from the given service
def logs [
  service?: string@docker_compose_services
  --file (-f): string = "./arion-compose.nix" # Use FILE instead of the default ./arion-compose.nix
] {
  let args = [$service] | compact
  let input = if ($file | path exists) {
    arion --file $file logs ...$args
  } else {
    docker-compose logs ...$args
  }
  $input
    | lines
    | parse -r '^(?<service>\S+)\s*\|\s*(?<log>.*)$'
    | where {|it| is_json $it.log}
    | update log {|it| $it.log | from json }
    | flatten
}

# Gets log output from a given docker-compose service, and extracts and formats
# relevant opentelemetry data
def otel [
  service: string@docker_compose_services
  --file (-f): string = "./arion-compose.nix" # Use FILE instead of the default ./arion-compose.nix
] {
  logs $service -f $file | get resourceSpans | each {|it| $it.scopeSpans.0.spans.0 | select name attributes status }
}

# Helper to provide autocompletion for inputs to the logs command
def docker_compose_services [] {
  let compose_file = if ("arion-compose.nix" | path exists) {
    arion cat | from json
  } else if ("docker-compose.yaml" | path exists) {
    open docker-compose.yaml
  } else {
    return []
  }
  $compose_file | get services | columns
}

# Helper for the logs command
def is_json [input: string] {
  ($input | from json | describe) =~ '^(record|table|list)'
}
```

V3_GIT_ORIGIN_REV_ID: 38fd62f321a363a52b03d661b66d4dd49ac922de
2024-03-07 21:26:50 +00:00
Gil Mizrahi
bb34a9ae66 Replace the nodejs dev-auth-webhook with a rust one to improve performance (#336)
Co-authored-by: Samir Talwar <samir@functional.computer>
V3_GIT_ORIGIN_REV_ID: 37eb6ad3fc93f4f9beca6568d60a581edca45a71
2024-03-07 14:18:25 +00:00
Samir Talwar
f869e7a8af Use ndc-spec v0.1.0. (#337)
V3_GIT_ORIGIN_REV_ID: ef97a6a0692e7c0741de96f0848d414d9b172106
2024-03-07 13:19:55 +00:00
Jesse Hallett
a7ccadbcd9 listen for sigterm to avoid 10-second shutdown delay (#328)
V3_GIT_ORIGIN_REV_ID: c2a1eb358d139df6234730851beadfff30f29f16
2024-03-07 00:24:22 +00:00
Samir Talwar
078b0d3487 Get the Nix build working. (#335)
V3_GIT_ORIGIN_REV_ID: e70e2a42b2445b4bcf4e9ee7db771b475c32d2f9
2024-03-06 17:51:17 +00:00
Samir Talwar
dea588255b Set the crate properties once, to improve the Nix build. (#334)
V3_GIT_ORIGIN_REV_ID: ec5f3d968306a64ad5c63df324ca5c524838c598
2024-03-06 17:15:13 +00:00
Daniel Harvey
353b0d1ca6 basic Nix flake for deps (#333)
Co-authored-by: Samir Talwar <samir.talwar@hasura.io>
V3_GIT_ORIGIN_REV_ID: 013207c169f31db363b7cfb072570c5b8246ba60
2024-03-06 11:39:19 +00:00
Meet Zaveri
0ecfacb0e3 docs: added cloud EE badge to event triggers observability section
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10526
GitOrigin-RevId: 0800c7f6e0892126bc4e5ea680961fa04b3473f1
2024-03-04 13:02:32 +00:00
hasura-bot
0d8bbb559e Update reference.mdx
GITHUB_PR_NUMBER: 10150
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/10150

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10712
Co-authored-by: Tuan (Tony) T. <5226413+tuanalumi@users.noreply.github.com>
GitOrigin-RevId: a545b2e88cd1c204939007e355ba8f2725e05a8f
2024-03-03 16:20:24 +00:00
Abhinav Gupta
f9a77428d0 [V3ENGINE-13] Fix NDC IR generation for functions / procedures (#330)
V3_GIT_ORIGIN_REV_ID: f579e9fb7a413adb24481bfc04feee7d661aa534
2024-02-29 05:30:27 +00:00
Vishnu Bharathi
9e0864c6e3 ci: tag release v2.37.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10706
GitOrigin-RevId: 2247e9dcf10600e7525a501e8216d59e9d1e124d
2024-02-28 09:43:28 +00:00
Varun Choudhary
b201806739 console: revert changes for 10691
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10701
GitOrigin-RevId: d6537f2ef7a1aeb55236e47dc9c4726a5ae3b578
2024-02-28 06:13:01 +00:00
Sean Park-Ross
e0448db42c Docs: Update variable query example to show multiple variables in one request
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10699
GitOrigin-RevId: c2f594e06a73116fc5f49c86c6155bb5c989b24e
2024-02-27 19:29:34 +00:00
Samir Talwar
d21d8277c8 Stop publishing arm64 images. (#329)
Co-authored-by: Paritosh <paritosh@hasura.io>
V3_GIT_ORIGIN_REV_ID: d41a19cb58afb69843d7450d884d1e69b585fcfa
2024-02-27 10:36:02 +00:00
paritosh-08
5c9033a66a add health endpoint (#326)
V3_GIT_ORIGIN_REV_ID: c2868238d43045e65b30df4dff4bc909a4999a17
2024-02-27 09:15:29 +00:00
David Overton
64bb9c873d Nested selections (#255)
Co-authored-by: Abhinav Gupta <127770473+abhinav-hasura@users.noreply.github.com>
Co-authored-by: Brandon Martin <brandon@codedmart.com>
V3_GIT_ORIGIN_REV_ID: 4f4674c5bad551afa7ed718ae78c281b6f571a62
2024-02-23 19:11:10 +00:00
Rob Dominguez
af0a457c0c Docs: Remove availability admonition
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10696
GitOrigin-RevId: 88c324b36f582bab8ba60148ad5f6b8b44a230de
2024-02-23 18:28:07 +00:00
Abhinav Gupta
4f1276dac1 add a test for opendd object mapped to ndc scalar (#324)
V3_GIT_ORIGIN_REV_ID: 7972eda702c43c2a121c1333ae32c4252b1b44d2
2024-02-23 18:07:01 +00:00
Gil Mizrahi
8071b11194 fix relationship collection of filter and order by clauses (#323)
This fixes a bug with collection_relationships not being populated by relationships constructed from where and/or order by clauses.

We fix this by not only collecting relationships from field selection, but also considering relationships introduced by order by and where clauses.

V3_GIT_ORIGIN_REV_ID: c612ceed8b3831257ca2c7d23ec9ed23261efedf
2024-02-23 08:30:17 +00:00
pranshi06
d4740a08a1 server: fix behaviour of error field for query and subscription in asynchronous actions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10685
GitOrigin-RevId: a0deb276814b63c784a820964d3dbb320ffedae9
2024-02-22 14:21:18 +00:00
Brandon Martin
040607e593 Update openAPIKey to openAIKey
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10694
GitOrigin-RevId: 82636e56213ec20f9b586d7d131aa8ed98162c86
2024-02-21 15:54:23 +00:00
Rob Dominguez
38d22c02f6 Docs: Fix ms-sql refs for snowflake logical models
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10693
GitOrigin-RevId: 9d567512d9cd978c4ab55b669c2a0cf647726d55
2024-02-21 15:26:17 +00:00
paritosh-08
a351d3fa84 update ndc-spec to rc.18 (#316)
Co-authored-by: Daniel Chambers <daniel@hasura.io>
Co-authored-by: Abhinav Gupta <127770473+abhinav-hasura@users.noreply.github.com>
Co-authored-by: Abhinav Gupta <abhinav@hasura.io>
V3_GIT_ORIGIN_REV_ID: 0f36da2472c44a1e403bc2fa10ebbc377daeba0d
2024-02-21 12:23:41 +00:00
Varun Choudhary
d4daaa3c53 console: render monitoring tab if isAdminSecretSet is true for server mode
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10691
GitOrigin-RevId: f18a86952202e3cd7f019dae1b3f20705153a492
2024-02-21 11:06:02 +00:00
hasura-bot
906482c0e7 Documents an example of array-based session variables
GITHUB_PR_NUMBER: 10125
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/10125

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10673
Co-authored-by: Marco Pegoraro <427569+marcopeg@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 343c85e0de4f5f98a34777f81f9bc3c62a4e84cd
2024-02-20 20:25:56 +00:00
Naveen Naidu
acd3f33bb5 server: add hasura_postgres_max_connection prometheus metric
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10669
GitOrigin-RevId: 6d6607a6dd520866d1aa556bab1007afd1793a01
2024-02-20 06:01:04 +00:00
Tristen Harr
973035dbbb Tristenharr/docs/add community cloud run deployment guide
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10690
GitOrigin-RevId: 05e8b337ad3928283134780175e663301b001b32
2024-02-19 23:02:27 +00:00
Tristen Harr
895d87aaa3 Tristenharr/docs/add community cloud run deployment guide
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10689
GitOrigin-RevId: 110492882afa0d8644244ec0a6df56ca98816660
2024-02-19 19:30:09 +00:00
Rob Dominguez
3ff7b62e87 Docs: Remove note about stored procedures for custom functions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10686
GitOrigin-RevId: 66d7265cf88dedffd0da38565be685a1875d7512
2024-02-19 19:08:37 +00:00
Tristen Harr
bf56524fb0 docs: fix --max-instances to --min-instances
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10687
GitOrigin-RevId: 7809fee4a5f09a2e99c5c59ed531606df0d2a5b5
2024-02-19 17:23:48 +00:00
surendran82
760afee0c9 docs: HasuraCon 2024 cfp form announcement banner updates
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10682
GitOrigin-RevId: 2859064a62c8896e402d87b36e584b9fdbc1f71e
2024-02-14 13:45:54 +00:00
Vijay Prasanna
10805c93ba console (fix): rollback graphiql package update
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10670
GitOrigin-RevId: d0a72e34aae6c0824868c0bc6239640f0cb6f5f9
2024-02-07 09:54:07 +00:00
Brandon Simmons
7b3ce7d927 server: don't use 'auto-update' for log timestamp cache/refresh
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10662
GitOrigin-RevId: abefec7649098cfb6e4cc906210bc709c25301b0
2024-02-06 22:07:58 +00:00
Abhinav Gupta
dfd2e940b1 Make schema field mandatory in ConnectorLink (#315)
V3_GIT_ORIGIN_REV_ID: 5d782bc8dec8630b5b63821b61ecec615f0ed47f
2024-02-05 23:11:45 +00:00
Abhinav Gupta
339cc34d06 [RFC] Boolean expression types in OpenDD (#311)
V3_GIT_ORIGIN_REV_ID: 73241ca9f4324d1978aaa1e64426fa1a642a3b1f
2024-02-05 22:01:02 +00:00
Abhinav Gupta
6581657f8b Improve schema / capabilities structure in ConnectorLink (#314)
V3_GIT_ORIGIN_REV_ID: 4a5b5d1870637461c2c4b7d50da80cf0ca74847b
2024-02-05 21:14:53 +00:00
Sean Park-Ross
0fbbca1b05 Remove HasuraCon Banner in CustomDocItem
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10667
GitOrigin-RevId: d0039b9d8f6940b1709068dceb29cb5682b0b2e8
2024-02-05 12:51:47 +00:00
Rob Dominguez
6831a0adcb Refactor HAUSRA_GRAPHQL_DATABASE_URL refs
[DOCS-1060]: https://hasurahq.atlassian.net/browse/DOCS-1060?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10634
GitOrigin-RevId: bc35c1cc85a49f376ce58aae65f12a73ebc1e136
2024-02-02 10:18:44 +00:00
Rob Dominguez
2ecf9ab6fb Docs: add notes for Helm charts
[DOCS-1731]: https://hasurahq.atlassian.net/browse/DOCS-1731?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10664
GitOrigin-RevId: af3d56b1c7dfdd1bf11bc37bbc0f5f044f980350
2024-02-02 10:05:14 +00:00
Abhinav Gupta
19259546a9 rename asc / desc enum values to PascalCase (#310)
V3_GIT_ORIGIN_REV_ID: 57bda06f5ebb4640410edf4d2756a3a588609fab
2024-02-02 01:15:09 +00:00