Commit Graph

1180 Commits

Author SHA1 Message Date
Daniele Cammareri
917d67154e docs: add import from openAPI doc
This PR adds the documentation for the Import Action from OpenAPI feature

<img width="959" alt="image" src="https://user-images.githubusercontent.com/5709409/207611375-913d4eb2-9af0-4ac5-82e8-0a0709ce3b1a.png">

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7276
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: 981ab2e3df7d00fabd6963eb97ee477ca7bd2c5d
2022-12-15 18:39:56 +00:00
Rob Dominguez
4d64644ae1 docs: add rules for tabs and include groupId prop
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7183
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 8647d3fcfd57c3419ef2be7864172d63861779c1
2022-12-15 16:09:53 +00:00
Sean Park-Ross
9006ddd2d7 Docs: Adds info about Monitoring > Operations enabling response body analysis and query variables
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7229
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 98b1ed714d99b0e474d990c9da007ec47b897b24
2022-12-14 13:47:01 +00:00
Rob Dominguez
e0113dca95 docs: update cli install instructions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7245
GitOrigin-RevId: 5c2274eb3b5e8187bd62a8ce2e5e62e4624a064f
2022-12-14 13:41:57 +00:00
hasura-bot
c190cbd344 Update neon.mdx
GITHUB_PR_NUMBER: 9274
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9274

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7197
Co-authored-by: danieltprice <10074684+danieltprice@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: e4c5f1c0f640f11ae095b01c12c666ad80a561ac
2022-12-14 12:11:20 +00:00
Marion Schleifer
5b38518a64 docs: update yarn version in docs wiki
## Description

Tim (Head of Security) made me aware that we're linking to an [old version of yarn](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable) in our [docs wiki](https://hasura.io/docs/wiki/contributions/#mise-en-place). This PR updates to the [most recent docs](https://yarnpkg.com/getting-started/install).

## Quick links

[docs/wiki/contributions](https://ae91bccf.hasura-docs-mono.pages.dev/docs/wiki/contributions/#mise-en-place)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7239
GitOrigin-RevId: f48ef559a6f56dde0f35a444a8e3c92c8454b170
2022-12-13 13:11:08 +00:00
Rob Dominguez
5d4337778e docs: fix cloud db links
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7244
GitOrigin-RevId: 351b0fcd2544c7b4b018b435698499d7540a4d57
2022-12-13 08:20:34 +00:00
timothy-hasura
08a1165a7b docs: update security disclosures page with bug bounty information
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7215
Co-authored-by: Marion Schleifer <5722022+marionschleifer@users.noreply.github.com>
GitOrigin-RevId: 00da79b7fd2b315ab8f361eb82136856fb8d2f55
2022-12-10 09:36:27 +00:00
pranshi06
8dab7df169 server: fix error in metadata APIs with inconsistency
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6669
Co-authored-by: Tirumarai Selvan <8663570+tirumaraiselvan@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 1b004074b41ccb6512123cdb1707b39792e97927
2022-12-08 16:04:55 +00:00
Gil Mizrahi
f5ea45060a docs: cockroachdb and citus support subscriptions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7194
GitOrigin-RevId: 48550ec78541a0ac1c834cef2ca83195636951ce
2022-12-07 14:02:21 +00:00
Rob Dominguez
6446c798ab docs: remove heroku one-click and references
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7164
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: e0fb2af227f323f82a401c81135a18f813cb3ce3
2022-12-06 18:08:19 +00:00
Adron Hall
bb5c935e59 Adding snowflake
## Description

First draft of the Snowflake getting started documentation.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6936
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: Brandon Martin <40686+codedmart@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 8500e81111f3200634ee9183d710718f0463f419
2022-12-06 16:01:36 +00:00
paritosh-08
3d4c66041f server: add event_processing_time metric
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6987
GitOrigin-RevId: 4f5948a225b18e2db59572482d2a608117fbb7d0
2022-12-06 15:11:04 +00:00
Rob Dominguez
adf565fe3d docs: make cloud db guides agnostic
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7127
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 7ea4fc8829216308878085577412b4a9b8c5942e
2022-12-06 00:13:02 +00:00
Rob Dominguez
9e20658b9e docs: reintroduce regression tests for pro cli and restructure subdirectory
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7081
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 29f8f061e86d2be6c2db0a9f297fe6c5a704404d
2022-12-02 18:37:11 +00:00
Rob Dominguez
0cc4693def docs: add ha multi region docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7096
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: bcb5e70dac234920c27dcf34e13f84fa2bc992d7
2022-12-02 14:26:45 +00:00
Puru Gupta
5c8bd8abd9 docs: update docs around webhook based authentication for websocket connection
## Description

This PR updates the doc around webhook based authentication for websocket connections explaining how exactly `Cache-Control` and `Expires` headers function.

## Changelog ✍️

__Component__ : server

__Type__: bugfix

__Product__: community-edition

### Short Changelog

update docs around webhook based authentication for websocket connection

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7135
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: ab873c394aad3a94d1a3affa483363f28ab77693
2022-12-02 13:25:06 +00:00
Manas Agarwal
e008e113d3 Docs update for prometheus metrics addition of Postgres connections
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7090
GitOrigin-RevId: b5837af1960bfdb7c203b1d45b6548be1dfc31fe
2022-12-01 15:19:14 +00:00
Sean Park-Ross
6c2419c572 Docs: Updates Docusaurus to 2.2
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7110
GitOrigin-RevId: 1a2936c4b9bb49134f94bad821780cdfe9ff54a7
2022-12-01 14:59:59 +00:00
hasura-bot
24a117787b install manifests: update to Postgres 14
GITHUB_PR_NUMBER: 8754
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8754

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5367
Co-authored-by: arjunyel <11153289+arjunyel@users.noreply.github.com>
GitOrigin-RevId: ed4eff00c5a35f115c390fc44ac50b16f95d7fb4
2022-12-01 04:45:04 +00:00
Abby Sassel
74e30b8b0b Server/tests: Scalar Computed Fields > Postgres
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7094
GitOrigin-RevId: f5e632adc99ffa628a09d6703d2fdba9d2ade53e
2022-11-30 11:02:53 +00:00
Rob Dominguez
29e3a0eb1b docs: restructure cli section
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6971
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 161396ef07386d6032232bb3e9926b7520f1b5ba
2022-11-29 23:39:12 +00:00
Puru Gupta
698190894f server: use kriti template to generate query param from list
## Description ✍️
This PR adds support to generate query params directly using a kriti template which can be used to flatten a list of parameter arguments as well.

### Changes in the Metadata API
Earlier the `query_params` key inside `request_transform` used to take in an object of key/value pairs where the `key` represents the query parameter name and `value` points to the value of the parameter or a kriti template which could be resolved to the value.

With this PR, we provide the user with more freedom to generate the complete query string using kriti template. The  `query_params` can now take in a string as well which will be a kriti template. This new change needs to be incorporated on the console and CLI metadata import/export as well.
- [x] CLI: Compatible, no changes required
- [ ] Console

## Changelog ✍️

__Component__ : server

__Type__: feature

__Product__: community-edition

### Short Changelog

use kriti template to generate query param from list of arguments

### Related Issues ✍
https://hasurahq.atlassian.net/browse/GS-243

### Solution and Design ✍
We use a kriti template to generate the complete query parameter string.

| Query Template | Output |
|---|---|
| `{{ concat ([concat({{ range _, x := [\"apple\", \"banana\"] }} \"tags={{x}}&\" {{ end }}), \"flag=smthng\"]) }}`| `tags=apple&tags=banana&flag=smthng`  |
| `{{ concat ([\"tags=\", concat({{ range _, x := $body.input }} \"{{x}},\" {{ end }})]) }}` | `tags=apple%2Cbanana%2C` |

### Steps to test and verify ✍
- start HGE and make the following request to `http://localhost:8080/v1/metadata`:
```json
{
    "type": "test_webhook_transform",
    "args": {
        "webhook_url": "http://localhost:3000",
        "body": {
            "action": {
                "name": "actionName"
            },
            "input": ["apple", "banana"]
        },
        "request_transform": {
            "version": 2,
            "url": "{{$base_url}}",
            "query_params": "{{ concat ([concat({{ range _, x := $body.input }} \"tags={{x}}&\" {{ end }}), \"flag=smthng\"]) }}",
            "template_engine": "Kriti"
        }
    }
}
```
- you should receive the following as output:
```json
{
    "body": {
        "action": {
            "name": "actionName"
        },
        "input": [
            "apple",
            "banana"
        ]
    },
    "headers": [],
    "method": "GET",
    "webhook_url": "http://localhost:3000?tags=apple&tags=banana&flag=smthng"
}
```

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6961
Co-authored-by: Tirumarai Selvan <8663570+tirumaraiselvan@users.noreply.github.com>
GitOrigin-RevId: 712ba038f03009edc3e8eb0435e723304943399a
2022-11-29 20:27:41 +00:00
Karthikeyan Chinnakonda
32a316aef7 server: provide an option to enable event triggers on logically replicated tables
## Description ✍️
This PR introduces a new feature to enable/disable event triggers during logical replication of table data for PostgreSQL and MS-SQL data sources. We introduce a new field `trigger_on_replication` in the `*_create_event_trigger` metadata API. By default the event triggers will not fire for logical data replication.

## Changelog ✍️

__Component__ : server

__Type__: feature

__Product__: community-edition

### Short Changelog

Add option to enable/disable event triggers on logically replicated tables

### Related Issues ✍

https://github.com/hasura/graphql-engine/issues/8814
https://hasurahq.atlassian.net/browse/GS-252

### Solution and Design
- By default, triggers do **not** fire when the session mode is `replica` in Postgres, so if the `triggerOnReplication` is set to `true` for an event trigger we run the query `ALTER TABLE #{tableTxt} ENABLE ALWAYS TRIGGER #{triggerNameTxt};` so that the trigger fires always irrespective of the `session_replication_role`
- By default, triggers do fire in case of replication in MS-SQL, so if the `triggerOnReplication` is set to `false` for an event trigger we add a clause `NOT FOR REPLICATION` to the the SQL when the trigger is created/altered, which sets the `is_not_for_replication` for the trigger as `true` and it does not fire during logical replication.

### Steps to test and verify ✍
- Run hspec integration tests for HGE

## Server checklist ✍

### Metadata ✍

Does this PR add a new Metadata feature?
-  Yes
  - Does `export_metadata`/`replace_metadata` supports the new metadata added?
    - 

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6953
Co-authored-by: Puru Gupta <32328846+purugupta99@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 92731328a2bbdcad2302c829f26f9acb33c36135
2022-11-29 17:43:13 +00:00
Varun Choudhary
b74c2952dd console: enable naming convention check to enable/disable naming convention carded radio button
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6897
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 9dba07b1febf44fe10426e6c383cc8f3e0b799a6
2022-11-28 07:36:27 +00:00
Rahul Agarwal
5f2490b26c Adding features to the enterprise listing docs page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7048
Co-authored-by: Tirumarai Selvan <8663570+tirumaraiselvan@users.noreply.github.com>
Co-authored-by: Marion Schleifer <5722022+marionschleifer@users.noreply.github.com>
GitOrigin-RevId: 916a20213a137d2f797648d12c6976351d67e59d
2022-11-25 15:49:13 +00:00
Tirumarai Selvan
4662d75bc6 revamp elastic connection pool docs
Restructure elastic connection pool docs to remove internal details and describe connection pooling benefits.

[Rendered](https://tiru-elastic-connection-pool.hasura-docs-mono.pages.dev/docs/latest/databases/connect-db/cloud-connection-pooling/)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6960
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 10c0ebfe1313fcf0c25631e6103978ce774502f8
2022-11-24 15:18:13 +00:00
hasura-bot
0df52d8497 docs: fix streaming subscription example (close #9241)
GITHUB_PR_NUMBER: 9242
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9242

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6984
Co-authored-by: Jeff Lambert <11539524+jflambert@users.noreply.github.com>
GitOrigin-RevId: ed0965a016e3957ecc91184595478741e1cc7b25
2022-11-24 14:33:03 +00:00
Kailash Sudhakar
458ce8b384 Build configs for preview builds through GKE
Build configs for preview builds through GKE

## Description ✍️

Moving the docs preview builds from Cloudflare to "websitecloud" Google Cloud Project which is currently handling the staging and production deployments:

The preview triggers are expected to be called only on changes to the docs folder

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6999
GitOrigin-RevId: 1699fe7677ebc03b8ce6338394e91d8e848640c3
2022-11-23 14:18:37 +00:00
Shahidh K Muhammed
e495c788b2 docs: update security team's email address
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6968
GitOrigin-RevId: d65596d0b5b6a36f4b2b35db4a50c3b6d0a91c72
2022-11-23 10:32:19 +00:00
Sean Park-Ross
26a5946622 Docs: Docusaurus update fixes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6998
GitOrigin-RevId: 2b60acba07f8c0bdce116ec44986efcaa3f4587d
2022-11-23 07:54:19 +00:00
Abby Sassel
2b639406ca Misc docs compatibility updates
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6956
GitOrigin-RevId: 4f8db44a62efc1e0b7998e43a301424648928c0b
2022-11-21 15:46:44 +00:00
Abby Sassel
0343bfc9a7 Server/Test and document Azure Cosmos DB support
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6943
GitOrigin-RevId: 7fba24a0b711c1c54b93a944f97b2da8e202a2fd
2022-11-21 14:37:59 +00:00
paritosh-08
0cc66d0f31 docs: add event trigger metrics
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6898
GitOrigin-RevId: f16577e2d964937287e1cbbd582467e908e9fd69
2022-11-21 08:27:28 +00:00
Adron Hall
91e483123d Reordered the prereq for getting started with Athena.
## Description

Reordering the flow so that things are presented in the order in which a user would arrive at the particular step.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6935
GitOrigin-RevId: 5c04bc4142f3417cfb2eab0d057d0e264adf3f6b
2022-11-18 16:47:12 +00:00
Sean Park-Ross
619cc552f0 Updates Docusaurus to 2.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6390
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
Co-authored-by: surendran82 <26085612+surendran82@users.noreply.github.com>
GitOrigin-RevId: ca59e788e7d16bf74389c00a51db18604350b483
2022-11-18 16:02:38 +00:00
Stef Moreno
387a73b11f docs: link to DB matrix to individual DB sections
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6909
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: ab49f8aa5c15da285cfab7e67baffaae52d83cad
2022-11-18 00:13:54 +00:00
Abby Sassel
7df9dc5832 NDAT-295 Cleanup Tests.Subscriptions structure
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6882
GitOrigin-RevId: 854d30dc0a1859c08f082df4d3c375325c59cf9c
2022-11-16 13:24:15 +00:00
hasura-bot
1af1a52480 docs: update upgrade-ce-to-ee.mdx
GITHUB_PR_NUMBER: 9212
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9212

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6887
Co-authored-by: Chris Toth <97546117+chris-hasura@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 41b7567b9f439e25284301be34c70ece43265740
2022-11-15 22:39:49 +00:00
Rob Dominguez
1269652cbc docs: remove mysql docs and all references
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6716
GitOrigin-RevId: 3a7ed0e4c8d723a8c10938176a0fab269760e785
2022-11-15 17:35:04 +00:00
Sean Park-Ross
a7584ccd79 Docs: Wiki add Hasura features and headings info
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6848
GitOrigin-RevId: ac23388362bcb118f9ee4d8d539adb161835070f
2022-11-15 16:18:39 +00:00
Rakesh Emmadi
2e9c93bed1 docs: elastic connection pooling in cloud
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6072
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: f8da61285ab5d6318f1e691c8f77b4ed1f1ce77c
2022-11-15 13:24:55 +00:00
Abby Sassel
b7a09a42c1 NDAT-293 Update feature matrix with features tested in api-tests suite
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6855
GitOrigin-RevId: 37f8193b8528f90955d55d2812f6f45afca054c8
2022-11-14 14:37:30 +00:00
Harish Nair
4b90c8219a docs: add note on partial unique index support
>

## Description ✍️

Hasura currently does not support the use of partial unique indexes in upsert mutation as can be seen in [this issue](https://github.com/hasura/graphql-engine-mono/issues/4165). Call out this fact in the documentation.

## Affected components ✍️

-  Docs

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5019
GitOrigin-RevId: adfb19acfe3f920bcc5865ae4424c3ce148c5b7c
2022-11-10 18:01:29 +00:00
Rob Dominguez
4e621fa48a docs: resolve docker networking after guides restructure
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6823
GitOrigin-RevId: 7588f2b73a699565b38a6ac9ef58a708a4ad40e4
2022-11-10 16:32:01 +00:00
hasura-bot
a9b980a705 Fix typo
GITHUB_PR_NUMBER: 9143
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9143

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6816
Co-authored-by: Rowland I. Ekemezie <15085641+rowlandekemezie@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: ae727cb8526d5377997e94582dd49a4833fcdbe1
2022-11-09 22:18:32 +00:00
Rob Dominguez
05df0c73f6 docs: fix link from hotfix on deployment
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6810
GitOrigin-RevId: 26259ee3c1458c460caab7135a7a4f3f8f4600d1
2022-11-09 15:43:06 +00:00
Adron Hall
027cf7c0fb Adding Experimental feature flag and URI path for docker compose files.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6797
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: ce1a6ee81b41b4fbcc5f1d08de0de42e4ed67438
2022-11-09 12:33:36 +00:00
Stef Moreno
4cd6eaf868 docs: remove best practice references
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6752
GitOrigin-RevId: 7d8a631ac540946846957fe50ce2c2464a0a1755
2022-11-08 21:21:09 +00:00
Sean Park-Ross
09c6c9b6a4 Docs: Fix a missing image in the Athena PR
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6787
GitOrigin-RevId: 856c045a32aa6e0903e49b935156bf22a0ac2999
2022-11-08 17:11:27 +00:00