Commit Graph

1577 Commits

Author SHA1 Message Date
Samir Talwar
15ac52ded4 server: Fix the Analyze feature for SQL Server.
The "Analyze" feature for SQL Server only partially worked. It would show the SQL generated, but not the execution plan. This is because SQL Server doesn't support generating a plan for prepared statements with parameters.

To work around this, we restructure the query as one without parameters. Instead, we replace each parameter with a variable. We declare the variables but don't set values. We then plan _that_, which works.

We run all this in a single query because local variables only last for a single transaction/batch.

This feature does not work for stored procedures.

[NDAT-582]: https://hasurahq.atlassian.net/browse/NDAT-582?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10125
GitOrigin-RevId: a4b45b9b207456ff4fbd1b69b008e93f87346342
2023-08-17 12:51:57 +00:00
Amit
d6b0a9cdb1 Corrected typo - configure-alerts.mdx
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10124
GitOrigin-RevId: e285f7f57a0909a9bda95a23e22029569b60eae5
2023-08-17 02:11:10 +00:00
Sean Park-Ross
f54034ddf7 Docs: Add OpenTelemetry admonitions to cloud providers
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10099
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 03c2171031d78080064f19920931633863fc2620
2023-08-16 13:46:11 +00:00
Sean Park-Ross
a58e0c853a Docs: Fixes side nav in Jupyter doc
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10120
GitOrigin-RevId: 90c71f2e9e83ef2cec3a2d92e2e27a3a2ce5fce3
2023-08-16 09:09:05 +00:00
Rikin Kachhia
25a66a6ef5 docs: refactor logical models / native queries
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10090
GitOrigin-RevId: ead32b051c15f1d04742407b1844a57175497326
2023-08-16 06:08:43 +00:00
Rob Dominguez
9e3e56aea9 docs: update mssql analyze availability
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10112
GitOrigin-RevId: 1cca5259e79aa39a4dc7319db01b1698e296b6a2
2023-08-14 15:39:21 +00:00
Sean Park-Ross
aaa15ca924 Docs: AI section
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10107
GitOrigin-RevId: 2b6c90ad967dd8d8a63e304bfdb5a5a68130c00e
2023-08-14 07:46:33 +00:00
Krushan Bauva
d9283e1cac server: add dynamic labels to Prometheus metric hasura_websocket_messages_sent_bytes_total
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9920
GitOrigin-RevId: 7fb49f07d7914d08576dd0062fbea406b897e45e
2023-08-10 11:53:34 +00:00
Krushan Bauva
cb9996d9e5 server: add Prometheus metrics hasura_postgres_connection_init_time and hasura_postgres_pool_wait_time
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10032
GitOrigin-RevId: 696522090a252f8838c31da9ab92e6ed2b5cc5f8
2023-08-10 11:08:42 +00:00
Brandon Simmons
f6bbda77eb pro/server: add monitoring metrics for OTLP traces export
re. https://hasurahq.atlassian.net/browse/INFRA-832

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10080
Co-authored-by: Toan Nguyen  <1615675+hgiasac@users.noreply.github.com>
GitOrigin-RevId: 8de1c0a1703037cc9955da01f2593c2db15dc189
2023-08-10 10:35:14 +00:00
pranshi06
75f0629c5d server: change log level to error for triggers in Cloud
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9873
GitOrigin-RevId: 703a16da479d35908a9a8c2862884d11a3135731
2023-08-10 10:04:05 +00:00
Rob Dominguez
3ec1e5e2da docs: add alerting subdir for cloud monitoring
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9711
Co-authored-by: Toan Nguyen  <1615675+hgiasac@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: a77346d408530d6802fac49109499d0842defd4f
2023-08-09 10:08:33 +00:00
Rob Dominguez
378aba7588 docs: transform vectordb page into subdirectory
[DOCS-1197]: https://hasurahq.atlassian.net/browse/DOCS-1197?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10078
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: e1e218318c115c469b7e90cd4b2fbb4b2bbbd767
2023-08-09 10:03:02 +00:00
nevermore
3a8cc7faca docs: Hasura gateway plugin docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10081
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: a349bdf4b93fa63c06a776270bb07808f5420acd
2023-08-08 15:58:10 +00:00
Rob Dominguez
d6d4eff7ad docs: add google cloud sql server guide
[DOCS-1147]: https://hasurahq.atlassian.net/browse/DOCS-1147?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10010
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: bb501e4d3fdde4aff105399218543f0502aa3667
2023-08-08 11:52:07 +00:00
Rob Dominguez
6d3a426250 docs: add jupyter notebooks for data connectors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10009
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: c69c05b4502f3bb428ab7dfaba3e3252d18855bd
2023-08-07 17:22:20 +00:00
Rob Dominguez
657661dec9 docs: add note about billing pausing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10063
GitOrigin-RevId: 0610d50425772c95390e4bd9eea5d12ea8829f9d
2023-08-07 12:01:39 +00:00
Rob Dominguez
a2353f5a35 docs: backport hotfix ref change for images
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10066
GitOrigin-RevId: 96f224240adc8e9117ba484c786c956ba4944782
2023-08-07 07:38:01 +00:00
Sean Park-Ross
665af84248 Docs: Add AI Chatbot
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10060
GitOrigin-RevId: fec8f355952064b2d8aa4a3cb346f6b392c724f6
2023-08-04 15:00:36 +00:00
Rob Dominguez
a3a3ba6ecb docs: add update to cli migrations image
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10061
GitOrigin-RevId: a46234921594f8d443c20557d10feaf80123bf8d
2023-08-04 14:23:04 +00:00
Sooraj
cd3bf1c7e0 docs: add open telemetry changes to the docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10057
GitOrigin-RevId: 33ec00dfae21fb2ef245066a017747ee97e20dc1
2023-08-04 11:35:06 +00:00
pranshi06
7647456718 server: configuration to specify which Header to pick for JWT Authentication
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9942
GitOrigin-RevId: 4f18d29f07c213a001d43b88e3ce2991230e28e6
2023-08-04 10:37:40 +00:00
Samir Talwar
39686bd4ab docs: SQL Server Stored Procedures are in beta.
We missed this change in the documentation.

They'll be in GA soon.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10046
GitOrigin-RevId: 6e27926ce03c4805af07809326a8db65466dac22
2023-08-03 15:27:08 +00:00
Rob Dominguez
aa2f84068c docs: restore disable_postgres_arrays in experimental features list
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10035
GitOrigin-RevId: c1ee2cd8f066df9a001065a521f41247bd8e32b2
2023-08-03 11:10:04 +00:00
Rikin Kachhia
8c6f823f7b ci: update latest stable release as v2.31.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10034
GitOrigin-RevId: fe686e39e40ad8bb7fe3ec9a097b60ed88c2fc53
2023-08-02 16:37:45 +00:00
Rob Dominguez
729040830f docs: update data connector docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10022
GitOrigin-RevId: f5e11acf80a10749a5c8d1baf07908259d9a7518
2023-08-01 20:17:57 +00:00
Rob Dominguez
a87552db67 docs: resolve prettier issues
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10019
GitOrigin-RevId: 7bcbb14b924a2736341cf5dce212c48a09cf1c7e
2023-08-01 18:01:46 +00:00
Rob Dominguez
e7c1444010 docs: fix apollo federation console steps
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10018
GitOrigin-RevId: f9c96660cbe69c0c7dcb5ad9c26b7bc01e2bdbe8
2023-08-01 15:49:46 +00:00
Rob Dominguez
69396a8f64 docs: add admonition for creating seed data
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10017
GitOrigin-RevId: b414a4603ff65f9eaa499f4c4fbf43a522af0cc0
2023-08-01 15:23:12 +00:00
Rob Dominguez
8129868c32 docs: add google cloud sql mysql guide
[DOCS-1146]: https://hasurahq.atlassian.net/browse/DOCS-1146?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9948
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: af33c629da433c775453db08d4c4240ce98a324e
2023-08-01 11:43:02 +00:00
Sean Park-Ross
662607dadf Docs: Update unauthenticated access documentation with detailed steps and restructure content.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10003
GitOrigin-RevId: 5b181e248f80102796437961df15af7afb1c0cce
2023-07-31 11:48:07 +00:00
Rob Dominguez
0abf4368ae docs: deprecate coud otel docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9993
GitOrigin-RevId: 2e3840e75f8e0bf56366809d06907562bb1e32b3
2023-07-31 11:00:29 +00:00
hasura-bot
46f4f412e0 docs: fix typo in data validations using hasura permissions section
GITHUB_PR_NUMBER: 9804
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9804

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10001
Co-authored-by: Jakub Trochim <57753436+jtrochim2@users.noreply.github.com>
GitOrigin-RevId: 63d36cc6e1a8cb367661d40a1a9aae548d9b4039
2023-07-30 00:17:05 +00:00
Vishnu Bharathi
d303ebc266 docs: add section about container security
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9995
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: a18ac49144c1207bf86f9b37e1cabee8186e8e39
2023-07-28 15:51:00 +00:00
Rob Dominguez
bbdb7aae08 docs: update billing owner ux
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9992
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 4b6236f2f9a749eafeac4984ad13a34005829756
2023-07-28 14:43:21 +00:00
Rob Dominguez
a5b540f709 docs: add recipe for coupon expiration
[DOCS-1125]: https://hasurahq.atlassian.net/browse/DOCS-1125?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9959
GitOrigin-RevId: c95393d6ebb914f87043e20645aff99a75948520
2023-07-28 13:13:20 +00:00
Krushan Bauva
94a2b6348a server: add Prometheus metric hasura_websocket_message_write_time and fix hasura_websocket_message_queue_time
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9879
GitOrigin-RevId: 9dd82d01faa367fa67950a7f5f55a61fc396b27f
2023-07-28 11:38:57 +00:00
Marion Schleifer
102fc81fd1 docs: backport hotfix fix typo
`optimise_permission_filters` -> `optimize_permission_filters`

NB: [hotfix commit](4bb6b3301c) in `graphql-engine`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9987
GitOrigin-RevId: c86959b19b9176ae1c50bd86d6859acf9ea0e173
2023-07-27 19:25:40 +00:00
nevermore
05d2450a39 docs: add docs for slack alerts for schema registry
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9943
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: 2b46bb69118a3854bcb66979b325f79b36bac58c
2023-07-27 14:10:32 +00:00
Sean Park-Ross
6ef8f9a446 docs: Scheduled Triggers Abandoned Cart recipe
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9953
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: a30bf2226929d8d034f6e6e129681320615ed649
2023-07-27 13:28:25 +00:00
Rob Dominguez
a95a3222f5 docs: add recipe for daily summary email
[DOCS-1124]: https://hasurahq.atlassian.net/browse/DOCS-1124?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9926
GitOrigin-RevId: 32821023c9f01e34e7b9e65830b00f389c3915d3
2023-07-27 12:43:24 +00:00
Rob Dominguez
ecfec66e41 docs: backport hotfix for downgrade
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9975
GitOrigin-RevId: 9dddb64746197c08dc8cdab369960331eb1bff80
2023-07-26 20:10:55 +00:00
Rob Dominguez
62aff83ccd docs: add note for downgrading catalog version
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9957
GitOrigin-RevId: 2449dc2aa2ed2550e1ba9738b6c795082b07cc8f
2023-07-26 17:03:29 +00:00
Rob Dominguez
d1cdacca60 docs: update GCP names for Google branding
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9944
GitOrigin-RevId: ad7da698ad30fec1146120ac82351781486888e6
2023-07-26 11:23:51 +00:00
Tirumarai Selvan
9f7c841711 add more details to event delivery
Add some important details to ET execution architecture

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9952
GitOrigin-RevId: 331e2f1fd03e810f5a47da0a666dbc209542b11a
2023-07-26 11:14:11 +00:00
Varun Choudhary
059c3e3876 console: fix headers for mutation input validation
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9898
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 4e1a36b498c65a6ad9bcbe98a1dd9e87f288ac06
2023-07-26 06:39:15 +00:00
Brandon Simmons
f0441a3d61 INFRA-833: OpenTelemetry exporter for metrics
I scratched out some changes to support this in the front end, mostly to test it easily,   maybe this can be used without much rework (validation seems to work correctly, but the tests need to be extended and probably fixed):

<img width="648" alt="fd" src="https://github.com/hasura/graphql-engine-mono/assets/68095256/e5873a90-ef83-43c3-9d54-cfc0a693baca">

-------

## Fake OTel collector for testing

ChatGPT spit this out, and it's what I used to test, if it's useful to others:

``` python
from flask import Flask, request
from opentelemetry.proto.collector.trace.v1.trace_service_pb2 import ExportTraceServiceRequest
from opentelemetry.proto.collector.metrics.v1.metrics_service_pb2 import ExportMetricsServiceRequest
import google.protobuf.json_format as json_format

app = Flask(__name__)

@app.route("/v1/traces", methods=["POST"])
def handle_traces():
    if request.method == 'POST':
        binary_trace = request.get_data()
        trace_request = ExportTraceServiceRequest()
        trace_request.ParseFromString(binary_trace)
        print("Received trace data:\n")
        print(json_format.MessageToJson(trace_request, indent=2, preserving_proto_field_name=True))
        return "Trace data received", 200

@app.route("/v1/metrics", methods=["POST"])
def handle_metrics():
    if request.method == 'POST':
        binary_metric = request.get_data()
        metric_request = ExportMetricsServiceRequest()
        metric_request.ParseFromString(binary_metric)
        print("Received metrics data:\n")
        print(json_format.MessageToJson(metric_request, indent=2, preserving_proto_field_name=True))
        return "Metrics data received", 200

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=8080)
```

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9552
Co-authored-by: Puru Gupta <32328846+purugupta99@users.noreply.github.com>
Co-authored-by: Toan Nguyen  <1615675+hgiasac@users.noreply.github.com>
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
Co-authored-by: Daniele Cammareri <5709409+dancamma@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: f340bfc5c135a7bb24735b524d015e05db422fd2
2023-07-26 05:22:17 +00:00
Rob Dominguez
8b0a4a117b docs: improve logical model and native queries docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9592
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 5825d652bf765c6e8845856971e766ca43f86433
2023-07-24 15:01:13 +00:00
Rob Dominguez
f2454b9854 docs: backport hotfix for nested sidebar rules
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9935
GitOrigin-RevId: c4390f818725af06fcf9c0e7eef1790da4b88268
2023-07-24 13:44:04 +00:00
Varun Choudhary
6b449fe7d3 docs: updated restified endpoints docs
This PR updates the docs on restified endpoints.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9867
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>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 94b9ea60352e2ba6b096ef2686b5bfd38ff53d41
2023-07-21 16:45:34 +00:00