Commit Graph

7508 Commits

Author SHA1 Message Date
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
Daniel Chambers
fa1441ac3b Enable inherited role redaction tests for Citus and Cockroach and fix DISTINCT ON for Cockroach
[GDC-1292]: https://hasurahq.atlassian.net/browse/GDC-1292?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9951
GitOrigin-RevId: b078006a14ebdc007576314405734734ad1944c4
2023-07-26 04:50:25 +00:00
Vijay Prasanna
1f11bd388f console: integrate useCreateTableRelationships and useSuggestedRelationships hooks in the relationships tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9939
GitOrigin-RevId: 71391115fe7403663c53dfbc0bec6e7b62019b50
2023-07-26 04:22:43 +00:00
kodiakhq[bot]
4d86cd3a62 Fix #9447 bad memory usage
A fix for #9447

Before this change, for the workload in the ticket, we saw a memory stay at around 4 GB an hour after the workload ended.  after this change we see both a lower memory high watermark, and also see memory come back to baseline at the end as we expect (after the `HASURA_GRAPHQL_PG_CONN_LIFETIME` and a subsequent `_idleStaleReaperThread` interval elapses).  But note the numbers given on any given machine may be slightly different, since the behavior depends on the version of glibc and processor speed (Since the test case depends on the server being overloaded).

This might also help some users commenting in https://github.com/hasura/graphql-engine/issues/9592

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9823
GitOrigin-RevId: 5650aa42d10d46c418c21686983a982d69011884
2023-07-25 11:24:57 +00:00
Nicolas Inchauspe
82011af6ed Fix and improvement on the pagination for tracked table in the new UI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9890
GitOrigin-RevId: ff1bb64321721718378de6447be9c9cc98e34c32
2023-07-25 10:41:33 +00:00
Daniel Harvey
78323ed1a1 chore(server): permissions for inline logical models
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9835
GitOrigin-RevId: b36a4d5a8e0d4156a2d26803c7d046570f7afefa
2023-07-25 10:11:35 +00:00
Vijay Prasanna
5681b2edff console: fix issue with edit postgres connection when SSL settings are partially filled
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9950
GitOrigin-RevId: c32eedcd9849e46207ef8125debe0c71af1922bd
2023-07-25 09:47:33 +00:00
Nicolas Inchauspe
74a0165205 console: add autocomplete off to api explorer headers editor inputs
[DSF-483]: https://hasurahq.atlassian.net/browse/DSF-483?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9924
GitOrigin-RevId: 93d7351610b4e72ce4147018a368667cda625f61
2023-07-25 09:20:49 +00:00
Julian
1b026af1cd Track Mongo collections using Logical Models
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9688
GitOrigin-RevId: 5523a8be0c7f4fc22cd9f3ec29527f7a714de932
2023-07-24 20:21:17 +00:00
Julian
8572f59011 Permission comments
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9862
GitOrigin-RevId: cd855e584ea7bcd7b89b09e119c7b748394bfbf0
2023-07-24 19:10:36 +00:00
Julian
8bbb1bec34 Fix permission form's submit cache behavior and bug when setting relationships
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9894
GitOrigin-RevId: 68587edeb5e3a923f52154d597c8002428645326
2023-07-24 18:01:37 +00:00
Vijay Prasanna
a833379b86 console (feature): add template and timeout props to the GDC connect UI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9883
GitOrigin-RevId: 5370b18bcab90919b94c99bd0c74c260b515a6d8
2023-07-24 15:27:30 +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
Auke Booij
dad9a80dac server: null forwarding feature flag
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9861
Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 46153d68adf1acc707dc451555055600b006629e
2023-07-21 15:12:32 +00:00
Vijay Prasanna
a2e15d9ae6 console (fix): use bulk_keep_going if remote rels are present
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9934
GitOrigin-RevId: 30285a2862c79de6ef57695a6739a442485b4ad2
2023-07-21 14:23:51 +00:00
Rikin Kachhia
4c66d648c7 docs: add prettier
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9923
GitOrigin-RevId: 94038efe5768b63f38dfb447bc315ae5f7185c43
2023-07-21 12:52:40 +00:00
Vishnu Bharathi
b7a6bce19e ci: tag release v2.30.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9933
GitOrigin-RevId: 62a8e988dc2c8fae65c6306b27a8261eb3230b14
2023-07-21 12:46:33 +00:00
Rikin Kachhia
84cbb9e5e1 ci: update latest stable release as v2.30.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9904
GitOrigin-RevId: bc0301dcdd2fe0edd3f0cfc55331b9c46d359acf
2023-07-21 08:04:03 +00:00
Daniel Chambers
592e2329d0 Fix inherited roles leaking supposedly-hidden data via filtering for Postgres
[GDC-1292]: https://hasurahq.atlassian.net/browse/GDC-1292?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9916
GitOrigin-RevId: 39f6f1aa21421dda6573bbae561c62ced3400034
2023-07-20 23:29:01 +00:00
Rob Dominguez
025785b876 docs: backport cloud badge for cli plugins
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9910
GitOrigin-RevId: abc3c2ac271183abf09c1b2c03723053319d7692
2023-07-20 18:01:32 +00:00
nevermore
d798f74a6e console: Schema Registry email alerts bug fix
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9925
GitOrigin-RevId: 9b38a3ce347ed6d82c00303508fca0b0b9156706
2023-07-20 16:31:00 +00:00
Nicolas Inchauspe
b0c200d21b console: prevent local storage save when SQL query > 5000 characters
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9921
GitOrigin-RevId: 9d7fee122bc06639461dd2484921c4e65f852816
2023-07-20 14:17:44 +00:00
Rikin Kachhia
161569dd40 docs: refactor sidebar link
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9922
GitOrigin-RevId: 21a1a62b354ad7eac4fd0daaceb2a565bfc444ae
2023-07-20 12:48:27 +00:00
Tom Harding
05cfb65b54 Log Postgres Source Names in Connection Errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9869
GitOrigin-RevId: 916758e7f1037cc67035894298e55771f9aa2d9f
2023-07-20 11:20:09 +00:00
Puru Gupta
b5cd05cebd server: add tests for invalid auth when using graphql-ws protocol
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9905
GitOrigin-RevId: 394849866b33039ee9c2bdfc3c33ba13b88f03fa
2023-07-20 10:44:47 +00:00
Anon Ray
a2276b8171 server: update cabal freeze file
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9912
GitOrigin-RevId: 3173e14070f74e452c779a8fe318335e91af883c
2023-07-20 09:49:12 +00:00
Shraddha Agrawal
9fea8ea5b9 docs: add instructions for adding a new connector in metadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9870
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: f146037a7bc8b058559d6cb60e187ff2c397775d
2023-07-20 08:38:21 +00:00
nevermore
7a3b3aa59b console: Gt 652 email and slack alerts for schema registry
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9764
GitOrigin-RevId: 4b42eb2066c5903b114ddcee3dadaa7ca7afc244
2023-07-20 08:22:57 +00:00
Daniel Chambers
7120ae7a44 Fixed incorrect capabilities example in Data Connector agent documentation
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9915
GitOrigin-RevId: 487d0b8fecff5dadac796a942389dc6f28987a4d
2023-07-20 06:53:22 +00:00
Matthew Goodwin
9f89096809 console: fix stale data in permission ui
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9908
GitOrigin-RevId: 0c8cffde4c4285fa3d39d1c7a34a4d9234877820
2023-07-19 18:23:03 +00:00
Nicolas Inchauspe
a92bebed75 Fix adding default values while create table (SQL server) fails
[DSF-446]: https://hasurahq.atlassian.net/browse/DSF-446?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9855
GitOrigin-RevId: 997beda03cb6aec1c954a419fd6628cf277c0610
2023-07-19 17:51:42 +00:00
Toan Nguyen
622af8c53e community: add a observability boilerplate folder
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9880
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 44b32ffaabce63a74e07f0654904b7c5f22e4b24
2023-07-19 17:51:31 +00:00
Luca Restagno
38b3c5258d Add support for Graphql Customizations in Browse Rows
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9845
Co-authored-by: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com>
GitOrigin-RevId: c9daa739437df20daa3db7ba912dd898274e7303
2023-07-19 14:54:49 +00:00
Sandeep Raj Kumar
47a2eaf686 Add hasura connector plugins docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9872
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 3095dc3f892001ccc053a592b4d4f1572773a4d7
2023-07-19 12:38:15 +00:00
Matthew Goodwin
1451e0ecea storybook: remove random words to fix chromatic issues
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9893
GitOrigin-RevId: d4cff0bef85d057ca896d385f2bd6d8904208293
2023-07-19 09:30:56 +00:00
Daniele Cammareri
a9468f620d fix: mssql support for create rest endpoint feature
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9876
GitOrigin-RevId: f3a027a872e70c8c94b6b6b081644c30bcfc72cb
2023-07-19 08:47:39 +00:00
Divi
4f6ef10e17 ci: tag release v2.30.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9901
GitOrigin-RevId: c23ed2593edb25cfc688b23207de3430b6447f8f
2023-07-19 07:44:47 +00:00
ananya-2410
b4fd94eb82 ci: tag release v2.29.2
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9899
GitOrigin-RevId: 08f7c6841f8ff5087de242310f313a7851c438c8
2023-07-19 06:51:06 +00:00
Philip Lykke Carlsen
462abadb8c feat(SqlServer): Configuration option to disable the connection pool
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9834
Co-authored-by: Samir Talwar <47582+SamirTalwar@users.noreply.github.com>
GitOrigin-RevId: 6b7f8bd660ddda0cae3a5457267f5af4906ff65a
2023-07-18 18:41:10 +00:00
Rob Dominguez
58ce99e63a docs: augment existing pg note for metadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9892
GitOrigin-RevId: d7219cb3ae8334a4418e437967926a26d6e169b5
2023-07-18 17:00:35 +00:00
Rob Dominguez
49659cd6ed docs: add ref from unauthenticated access docs to env var config
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9888
GitOrigin-RevId: a7274c3b78c76fd319ab9207866e8e62fcd43b30
2023-07-18 15:47:26 +00:00
Matthew Goodwin
5d9d91dbfd console: use the refactored suggested relationships component for GDC
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9878
GitOrigin-RevId: 1dcefbf82791fe1bbedb1a7bb132ef4484425781
2023-07-18 14:46:42 +00:00
Daniel Chambers
2f3defe3a9 Refactor inherited roles data redaction types
[GDC-1292]: https://hasurahq.atlassian.net/browse/GDC-1292?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9882
GitOrigin-RevId: cffb0643202ee18abdc90887fd0306fe0835c44e
2023-07-18 13:50:32 +00:00
Daniel Chambers
a86345421f Fix inherited roles issue with ordering
[GDC-1292]: https://hasurahq.atlassian.net/browse/GDC-1292?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9868
GitOrigin-RevId: 0c2b50ec1a2d179a4f79b6c795bf8fecb7ad7c9f
2023-07-18 13:09:42 +00:00
Auke Booij
9a09af4f20 server: don't forward absent variable values as nulls
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9871
GitOrigin-RevId: 71191f89d7de36ff1fad0e29e8f1f07a9ddca9f7
2023-07-18 12:36:30 +00:00
Rob Dominguez
e05657a620 docs: add sched trigger recipe for review request email
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9837
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 4fc073589a50db37cdd02f6d0932d537c9cd7edc
2023-07-18 12:09:09 +00:00
paritosh-08
b1a7a64466 server: add new fields in schema registry payload
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9769
GitOrigin-RevId: c38797bab390fc8f388bf9c64250044949d94060
2023-07-18 12:03:17 +00:00