Commit Graph

7717 Commits

Author SHA1 Message Date
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
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
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
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
Daniel Chambers
68f7d6e9a4 Add inherited roles data redaction support to the Data Connector API
[GDC-1292]: https://hasurahq.atlassian.net/browse/GDC-1292?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10023
GitOrigin-RevId: d6947dd89dc59fce3f68b786192c59e731826c60
2023-08-03 06:10:53 +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
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
Philip Lykke Carlsen
2cb66592c3 fix: Apply naming conventions in more places
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9988
GitOrigin-RevId: e74797306a6a131b9b038a20cc6e40befb33ab77
2023-08-02 13:47:21 +00:00
ananya-2410
f617b68b8b ci: tag release v2.31.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10026
GitOrigin-RevId: bf6d87df602029cd55b014f6c729c462739ffeb2
2023-08-02 08:54: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
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
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
Daniel Harvey
6aae78c8e1 chore(server): add track/untrack stored procedure metadata commands to bulk_atomic
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10013
GitOrigin-RevId: 3843e379e08bcb65e65110fc8217acc05cf7640a
2023-08-01 08:15:28 +00:00
David Overton
23d40fc500 Nested where
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9940
GitOrigin-RevId: c2115f1de4f647c4b559c98183c6260a1f5674dd
2023-08-01 05:41:36 +00:00
Daniel Chambers
374bbd1937 Fix inherited roles leaking supposedly-hidden data via native queries in Postgres
[GDC-1292]: https://hasurahq.atlassian.net/browse/GDC-1292?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9980
GitOrigin-RevId: 48174a559453d802991b475caf337808d2462356
2023-08-01 02:29:19 +00:00
Daniel Chambers
7b2647e4e9 Fix inherited roles leaking supposedly-hidden data via streaming subscriptions for Postgres
[GDC-1292]: https://hasurahq.atlassian.net/browse/GDC-1292?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9977
GitOrigin-RevId: 56da6f97477095a1930cd29ff87ba5c3832d59f4
2023-08-01 01:47:44 +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
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
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
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