Commit Graph

7690 Commits

Author SHA1 Message Date
Vijay Prasanna
430274a3bb console: fix extra subtitle in native query
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9994
GitOrigin-RevId: 229aa560676bee74121421c188df8a7db0795287
2023-07-31 06:31:51 +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
Julian
a3deb5eff0 Group Permission editors into the same folder
This will make it easier to make changes and reuse code on the future.

They were grouped together by only the storybook title.

Now they are on the same folder, which is `frontend/libs/console/legacy-ce/src/lib/Permissions`.

Since now they are together, removed the title to all storybook stories.

Important: I did not make any behavior changes. Only moved code around. I need this for a separate PR but I thought it was good to create this isolated PR with non behavioral changes so it's easy to review (it has a lot of files changed).

Jira ticket: https://hasurahq.atlassian.net/browse/DSF-496

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9974
GitOrigin-RevId: 940020d06e0144eac95c614f84aea122852396b9
2023-07-28 19:13:28 +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
Samir Talwar
1a052dd44b server: Avoid partial fields wherever possible.
This turns on the `partial-fields` warning, which yells at you if you try and create fields on sum types that end up being partial functions. These are dangerous; we had a bug because we introduced a new case to a data type, making the field accessors partial, and leading to a crash in certain cases.

This means that we have introduced a few wrappers in various places where the field names are useful, but we want to avoid partial matches.

Unfortunately this can be turned off by prefixing the field name with an underscore. Ideally we would try and avoid exporting any field names with underscores, but lenses make this hard. I have removed some underscores for the areas in which we've seen this break in the past.

We will have to be vigilant.

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

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9991
GitOrigin-RevId: fd69b1ef999682969f3507f0e97513f983da4da6
2023-07-28 10:54:24 +00:00
Nicolas Inchauspe
d2192eca9d console: fix query filter and sort validation
[DSF-488]: https://hasurahq.atlassian.net/browse/DSF-488?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9965
GitOrigin-RevId: d3fe971677033dcd3296e8f75896a57658197a8c
2023-07-28 10:02:29 +00:00
Vijay Prasanna
3aa56fc05f console: remove comments that contain internal doc links
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9978
GitOrigin-RevId: f16e82fe466039665abef1f633a82236f6288a43
2023-07-28 08:20:25 +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
Philip Lykke Carlsen
bda6aadca8 fix(mssql): Properly record the schema of referenced columns
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9985
GitOrigin-RevId: 0262c414a6421b79d5b8c0fc47b17c8efed22c6c
2023-07-27 15:06:47 +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
Daniel Harvey
37726b088c chore(server): use 'double precision' instead of numeric
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9972
GitOrigin-RevId: 0a6a06081a7c5a3618b6c7252c6697da97c6efc2
2023-07-26 16:39:33 +00:00
Philip Lykke Carlsen
cf2d205937 Fix(Sqlserver): Apply Column Redaction to order_by and _where
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9971
GitOrigin-RevId: 04cae8163af2d002a2d5aea73fb45088fc0eaea4
2023-07-26 16:05:00 +00:00
Daniel Harvey
9bd52c0a89 chore: remove Postgres data connector
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9970
GitOrigin-RevId: 5ebae21a19c50c305ee661052f629a367af05d57
2023-07-26 15:24:00 +00:00
Daniel Harvey
88a2bf1b7d Changed return type of computed field to numeric
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9968
GitOrigin-RevId: 94a1d1d354488577089e0d3e027f3ee1bc53095d
2023-07-26 14:45:26 +00:00
Vijay Prasanna
929773d5b4 console: modify getTableColumns SQL for postgres DAL method to include materialized views
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9966
GitOrigin-RevId: 16fc6f7bd1c1308e27511fa6387b51564c0b9dbf
2023-07-26 14:18:55 +00:00
Puru Gupta
b3a128065f server: add tenant policy to enable/disable otel exporter
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9928
Co-authored-by: Brandon Simmons <210815+jberryman@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>
GitOrigin-RevId: 56c6903691353875f87bf417c332ac89cdda1279
2023-07-26 12:50:10 +00:00
Daniel Chambers
bae14c70d4 Fix inherited roles leaking supposedly-hidden data via aggregation predicates for Postgres
[GDC-1292]: https://hasurahq.atlassian.net/browse/GDC-1292?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9961
GitOrigin-RevId: cffe2fda2f4dbc7929fc1aaac3887b7d12c4b467
2023-07-26 12:07:34 +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
Vishnu Bharathi
2693447b25 ci: tag release v2.31.0-beta.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9967
GitOrigin-RevId: 65796e0792be252a7e3e5496688715f146f4b751
2023-07-26 11:06:59 +00:00
Julian
c00fd3d735 Permission comment cache fixes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9955
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 8efac3be27525069998556489451f2afc2eed44b
2023-07-26 10:49:16 +00:00
Luca Restagno
cf214f087d console: show array pg data types in the drop down while creating/modifying columns
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9930
GitOrigin-RevId: 32c1a2ab7ea90b06303fa0e499788a2b37bccd0b
2023-07-26 10:12:37 +00:00
Samir Talwar
580ae13fc1 server: Upgrade ODBC to correct some error reporting.
The ODBC library inserts `CAST(? AS NVARCHAR(MAX))` instead of just `?` when working with text, to ensure that a text parameter is always interpreted as the same type. This was introduced in https://github.com/fpco/odbc/pull/44 to fix a different bug in HGE.

However, this is not reflected in the returned query in case of an error, which can be very confusing for the reader.

This change fixes the renderer so that the query is generated in the same way when parameterized and when rendered for error messages.

The associated changes are at 43b07813d6.

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

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9949
GitOrigin-RevId: 465bab3fccab00d41390b96d4e8ea39f5b140a61
2023-07-26 09:29:12 +00:00
Philip Lykke Carlsen
483409c26b Fix(Sqlserver): Apply Column Redaction to aggregations
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9956
GitOrigin-RevId: ed7a734fabcaaead85999a25223a61f0cba7807c
2023-07-26 08:53:56 +00:00
hasura-bot
790523556f RFC: Input Validations (for mutations)
GITHUB_PR_NUMBER: 9463
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9463

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8096
Co-authored-by: Tirumarai Selvan <8663570+tirumaraiselvan@users.noreply.github.com>
GitOrigin-RevId: 81ae4a849fa4c336bdce75f29126d66297139f00
2023-07-26 08:21:07 +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
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