Commit Graph

453 Commits

Author SHA1 Message Date
Varun Dey
95fcd44a45 Check worker status before calling success callback
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10070
GitOrigin-RevId: e25c9fb5b89c4463766eca0909120d57b2b4c14f
2023-08-08 08:04:14 +00:00
Luca Restagno
a3bf146a00 Improve support for array data types
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9984
GitOrigin-RevId: 4bf77be7f039b809fa10dd57d2a8405a106c7534
2023-08-07 15:48:16 +00:00
Vijay Prasanna
4fd38a030e console: remove feature flag for GDC UI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10072
GitOrigin-RevId: 6352e3a18572eae6317c025dcab203e808c7192a
2023-08-07 14:43:00 +00:00
Matthew Goodwin
d729993dea console: Fix incorrect EE License behavior in Native Queries
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10064
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
GitOrigin-RevId: 8db3ffe28cfb3f6ea244bf811582d2b5bad41fc9
2023-08-07 10:38:53 +00:00
Luca Restagno
84d19037a5 Revert back to the old naming convention for suggested relationships
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10055
GitOrigin-RevId: 9b97af1418342899c82792a988688409040b70af
2023-08-07 09:41:03 +00:00
Matthew Goodwin
c30508b6e3 console: new nav tree component updates
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10051
GitOrigin-RevId: 77e95c6806f059327f51bbd854ab6575dcca2e7f
2023-08-04 19:01:34 +00:00
Matthew Goodwin
603fb42def console: fix storybook performance and stability issues due to console type addon
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10007
GitOrigin-RevId: d78a161f7f5696162409c2757c594fa0c74cfd1c
2023-08-04 16:40:13 +00:00
Matthew Goodwin
82c7797dbb console: table tracking gardening
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10053
GitOrigin-RevId: 36e4fd0c60409e60a4c5f2fb83891590feed43d1
2023-08-04 15:58:43 +00:00
Matthew Goodwin
150874356d console: add synchronous way to get feature flags
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10052
GitOrigin-RevId: 3514dadc8cedef4b6e9008e3b8f50bceeb996e3b
2023-08-04 14:55:10 +00:00
Vijay Prasanna
2b5d8ff3ef console: add support for improved function tracking in the new tracking UI for postgres/mssql
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10006
GitOrigin-RevId: 7fa873d92c5151695a28e0762859c8e222a3e0cd
2023-08-04 11:22:18 +00:00
Daniele Cammareri
c12c8e974c feat: improve remote schema relationships UX
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9947
GitOrigin-RevId: 9434ad4f80ad2b4926a4e18fb7d8abf336b2bd83
2023-08-04 09:57:21 +00:00
Vijay Prasanna
4fa4644cfd console: allow useCreateTableRelationships hook to work even if some DC-agent capabilities are not reachable
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10038
GitOrigin-RevId: 432d15cc72600cbc5d710fb299a9ee87e30fcea2
2023-08-04 07:34:22 +00:00
Matthew Goodwin
2fedf7fe8d console: editing logical models & gardening work
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10008
Co-authored-by: Julian <118911427+julian-mayorga@users.noreply.github.com>
GitOrigin-RevId: 14c8b833700e67f680d70c3b0226b4d984880913
2023-08-03 21:06:57 +00:00
Julian
c4ddb0e1f5 Display only local relationships in permissions builder
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9996
GitOrigin-RevId: 8ce5c5546370fe41d6d1eb9a89bcd9ae92ecf974
2023-08-03 14:00:26 +00:00
Julian
5453617cd1 Permission tests
They cover the basic scenario of creating permissions.

We need to increase the amount of tests covering happy paths to prevent regressions, so this is a step forward in that direction.

This does not change logic in any way.

Adds data-testid when needed
Remove broken stories
Updates mocks
Pointing this against https://github.com/hasura/graphql-engine-mono/pull/9974 because it's based off of it. I recommend reviewing them together since they're related.

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

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10000
GitOrigin-RevId: 6b452684e029669b9094796bf04bd09c24d00a8f
2023-08-03 12:40:22 +00:00
Daniele Cammareri
6df45b37bf fix: fix "Create Rest endpoint" feature for edge cases
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10025
GitOrigin-RevId: e47e15797863ed461e2b6d10d51b3195894fefe8
2023-08-03 10:24:16 +00:00
Luca Restagno
24e19ac113 Fix Remote Relationship relation visualization
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10030
GitOrigin-RevId: 02f26c9670bb8203ebb0750a01367ada3f4c477f
2023-08-02 16:10:54 +00:00
Vijay Prasanna
b3a5d19919 console: improvements to the stored procedure UI (error handling, empty states, prompts)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10016
GitOrigin-RevId: b44c73f9fcdfa9d51c98c5131bda02c802172dee
2023-08-02 05:31:53 +00:00
Luca Restagno
6a352555f7 Fix default value for array columns
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9969
GitOrigin-RevId: 26b0af011501d49d26ab0e4657bc7d76af23e307
2023-08-01 09:50:54 +00:00
Matthew Goodwin
51c1faec08 console: Fix react query decorator cache invalidation strategy
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9998
GitOrigin-RevId: 53343f6f55ff2d7354759ec81b9c66a01d893256
2023-07-31 18:14:35 +00:00
Matthew Goodwin
4290c87861 console: upgrade typescript to 5.x
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9997
GitOrigin-RevId: 0730212c3f1fdab134be0d097f3e4364e3aa4e85
2023-07-31 16:07:46 +00:00
Nicolas Inchauspe
3f5e38ac5a Console should show a clear warning when a connection string is stored in metadata
[DSF-459]: https://hasurahq.atlassian.net/browse/DSF-459?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9874
GitOrigin-RevId: dbe1f785d70af0d34e37764bef5c994db58b83fa
2023-07-31 14:26:11 +00:00
Nicolas Inchauspe
fcefba5349 console: propose materialized views for tracking for postgres datasource
[DSF-497]: https://hasurahq.atlassian.net/browse/DSF-497?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9983
GitOrigin-RevId: 6c9f252d51f0f2006673947401980b96ec2f9316
2023-07-31 08:19:57 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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