Commit Graph

8062 Commits

Author SHA1 Message Date
Daniel Harvey
681ce9dcae add just update-golden-files-local command (#351)
V3_GIT_ORIGIN_REV_ID: 428d47af17949396037e4942ddcb2267801e56dc
2024-03-15 13:06:16 +00:00
Daniel Harvey
c754f273eb add support for argument presets in commands (#340)
V3_GIT_ORIGIN_REV_ID: 9d7401e5c629040fda7824966588af7f39e4a14c
2024-03-15 11:00:24 +00:00
Puru Gupta
a86d2d0450 add support for async span with parent context (#341)
V3_GIT_ORIGIN_REV_ID: f24ff08407a4f00787dfb76a72f9de072b5a02a2
2024-03-15 09:26:30 +00:00
Brandon Simmons
267d7fe751 server: add the ability to force refresh of dynamic db connection str…
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10713
GitOrigin-RevId: 7aa286141a27c11609614349cad05041e55b2a0f
2024-03-14 22:50:20 +00:00
gneeri
5af867d4e0 added parameter quoting for native queries in Snowflake
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10716
GitOrigin-RevId: 87c61866c5bff10439e2b82e29cd9e3df2f337e0
2024-03-14 15:46:17 +00:00
Rakesh Emmadi
083f321feb server: improve recreateTriggerIfNeeded arrow function
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10724
GitOrigin-RevId: dc8e42da21801cc9a2f49e1c126d26b6d5f2e766
2024-03-14 08:19:52 +00:00
Vishnu Bharathi
801e423fbb ci: tag release v2.38.0-beta.1 and update base image
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10721
GitOrigin-RevId: 8d4ee4fd86814890eb103b7416b819e7e64d1a3b
2024-03-13 13:55:57 +00:00
Rob Dominguez
6470d90b03 Docs: add note to new relic integration
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10722
GitOrigin-RevId: 8410efb22438572ca7b0ba4b6c0cd8f11f5b0bc1
2024-03-13 12:59:17 +00:00
Tom Harding
ee225734f1 Run mutations sequentially (#347)
V3_GIT_ORIGIN_REV_ID: 805e0d008954617e85ad6e1688f8016a85748bb5
2024-03-13 12:27:18 +00:00
Sean Park-Ross
8924812bc1 Docs: Updates to chat bot
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10719
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: b2bfdba1e082b21b035be209ab5b5702ab74d2bc
2024-03-13 11:19:48 +00:00
Daniel Harvey
797aa43080 run clippy in watch command (#346)
V3_GIT_ORIGIN_REV_ID: 2cf4796a45aa1acc0846ebd6293ccf218356b5bf
2024-03-13 11:14:54 +00:00
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