Rikin Kachhia
f7b379f677
docs: update docker guides with 2.0 changes
...
- update docker guides
- misc improvements
https://github.com/hasura/graphql-engine-mono/pull/1638
GitOrigin-RevId: 061aaa4f0da2752fe063be97ffce162653f23b8d
2021-06-23 11:21:55 +00:00
Tirumarai Selvan
1f2470289f
tag release v2.0.0
...
GitOrigin-RevId: ea05a42fdc33008ef177b3c459e1d148aa05f113
2021-06-23 08:35:05 +00:00
Rikin Kachhia
6c4dbe093c
docs: update getting started for 2.0
...
https://github.com/hasura/graphql-engine-mono/pull/1624
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 8507e5520d7fb3548899cac2e7dc497567e0282e
2021-06-23 08:10:12 +00:00
Rikin Kachhia
17d3882bbe
update install manifests to use metadata db url
...
https://github.com/hasura/graphql-engine-mono/pull/1623
GitOrigin-RevId: 77391d5cefb33ab7eb713804d78fccd9646328e3
2021-06-23 07:51:51 +00:00
Aravind K P
be7a100ebf
cli: set default value for metadata_directory
...
https://github.com/hasura/graphql-engine-mono/pull/1630
GitOrigin-RevId: bb18133041739d30f5b270c3f64aeb680e47c2cd
2021-06-23 06:34:19 +00:00
vaishnavigvs
f9a107ad56
docs: update sql server api reference
...
https://github.com/hasura/graphql-engine-mono/pull/1609
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: a6cae8da4e7d050ce77806ebd9ca6433c2f1241e
2021-06-22 22:42:19 +00:00
Solomon Bothwell
6c48babc95
Adds integration test for caching remote schema queries
...
https://github.com/hasura/graphql-engine-mono/pull/1613
GitOrigin-RevId: 54eb9dec54ed00079f10d057d41bb29e73d9f68e
2021-06-22 21:11:02 +00:00
Varun Choudhary
c2dd51b6c7
console: pass correct table name when cloning permission
...
Closes: https://github.com/hasura/graphql-engine/issues/6969
Description:
To reproduce the issue please visit the issue link.
This is happening because the request payload is using the current table name while cloning permission. This PR change makes the payload use the correct table name.
- [ ] `CHANGELOG.md` is updated with user-facing content relevant to this PR. If no changelog is required, then add the `no-changelog-required` label.
### Affected components
- [x] Console
- [x] CLI
https://github.com/hasura/graphql-engine-mono/pull/1505
GitOrigin-RevId: bfd8a67ccb55261a1bf47a9ede18e3e1cf3bff2c
2021-06-22 18:23:04 +00:00
Aravind K P
5099ef077b
docs: update migrations docs
...
- add a note about mapping database_url to an environment variable
- update migration file structure pages to reflect new changes.
https://github.com/hasura/graphql-engine-mono/pull/1629
GitOrigin-RevId: 2ca891aa4cacb7528159c8793b9f6ca470e1fa7d
2021-06-22 17:39:09 +00:00
Abhijeet Khangarot
c0fde4d1d5
console: hide postgres system schemas by default
...
>
### Description
We want to hide postgres system schemas like `pg_toast` and `pg_temp` and their variations (ex. `pg_toast_temp_35`) from showing up in console.
>
### Changelog
- [x] `CHANGELOG.md` is updated with user-facing content relevant to this PR. If no changelog is required, then add the `no-changelog-required` label.
### Affected components
- [x] Console
### Related Issues
->
https://github.com/hasura/graphql-engine/issues/6954
### Solution and Design
>
We can achieve this by updating the `schemaListSql` query for postgres datasources to filter out postgres system schemas.
### Steps to test and verify
>
1. Add a postgres datasource containing some system schemas
2. The system schemas should not show up in console
https://github.com/hasura/graphql-engine-mono/pull/1499
Co-authored-by: Aleksandra Sikora <9019397+beerose@users.noreply.github.com>
GitOrigin-RevId: 6a179b9d5cd4d061ae9fda17bf3824321cf7e96e
2021-06-22 15:24:20 +00:00
Abhijeet Khangarot
9255fcf173
console: wrap table name in quotes in add comment sql
...
>
Adding a table with a capital letter and a comment was causing SQL error, this PR fixes that issue. (in postgres and citus dbs)
### Description
>
### Changelog
- [x] `CHANGELOG.md` is updated with user-facing content relevant to this PR. If no changelog is required, then add the `no-changelog-required` label.
### Affected components
- [x] Console
https://github.com/hasura/graphql-engine-mono/pull/1617
GitOrigin-RevId: b8e911206af7ce950b5432dab98723e52992b905
2021-06-22 14:45:24 +00:00
Kali Vara Purushotham Santhati
59679babfa
cli: add server
flag to migrate delete
and modify the docs for resetting migrations
...
https://github.com/hasura/graphql-engine-mono/pull/1540
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 8aceb35c583d20b7dc7b16f257e20c83171008a2
2021-06-22 11:16:14 +00:00
hasura-bot
e640000a09
cli: skip compression for macos x64 binary
...
GITHUB_PR_NUMBER: 7096
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7096
https://github.com/hasura/graphql-engine-mono/pull/1628
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
GitOrigin-RevId: 7234dc7d6bb4f4f62437a77824ce7904d3029f24
2021-06-22 08:05:16 +00:00
Sameer Kolhar
608e4fbb20
server, console, docs: add update_remote_schema
API
...
https://github.com/hasura/graphql-engine-mono/pull/1546
GitOrigin-RevId: 142b0d0e0ffc35b2679c91c411868c45a8b8e221
2021-06-21 17:42:40 +00:00
Kali Vara Purushotham Santhati
a924720a3a
cli: add skip-execution
support for up
and down
flags in migrate apply
...
https://github.com/hasura/graphql-engine-mono/pull/1510
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 9f7b271bda08ecd156a6220e830063bbb36a4b36
2021-06-21 15:57:41 +00:00
Sooraj
03ecd0398b
console: improve console with read-only database
...
https://github.com/hasura/graphql-engine-mono/pull/1619
GitOrigin-RevId: 26da5b0d1b48d2158642c7efb5f1e99933a37624
2021-06-21 15:17:24 +00:00
Aravind K P
4517478ccc
cli: add support for citus sources
...
https://github.com/hasura/graphql-engine-mono/pull/1247
GitOrigin-RevId: 8383a37f71a4d45fe01c002eb229102f0dd38e9a
2021-06-21 14:35:00 +00:00
Kali Vara Purushotham Santhati
fbbd423d8b
cli: migrate create gives warning if database isn't connected to server
...
https://github.com/hasura/graphql-engine-mono/pull/1518
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: a9e836545922719bcbd6e8c9c027df6056d23cef
2021-06-21 13:55:09 +00:00
Sameer Kolhar
c425b77e2d
server: fix regression in action responses where aliased fields are dropped
...
https://github.com/hasura/graphql-engine-mono/pull/1612
GitOrigin-RevId: a031ec2e9fa15df6394382befd9a0db759ef5213
2021-06-21 12:12:07 +00:00
Ikechukwu Eze
6bb8df6a26
console: add citus support
...
### Description
Add console support for Citus DB
### Changelist
- [x] Add/Remove Citus Datasource
- [x] Track/Untrack tables
- [x] Create Relationships + Tracking suggested relationships
- [x] Permissions
- [x] Browse Rows (minimal)
- [x] Insert Row (using Mutations)
- [x] Filtering Shards and Partitions (partition details are not present in Modify tab, it should work once https://github.com/hasura/graphql-engine-mono/pull/1164 is merged)
- [x] Create Table
- [x] Fixes issue https://github.com/hasura/graphql-engine/issues/6926 for Citus.
### Known Issues
- Unable to create Functions from Raw SQL, server returns 400.
- Unable to run `ALTER` SQL commands, server returns 400.
### Screenshots
![Screenshot 2021-04-21 at 7 53 23 PM](https://user-images.githubusercontent.com/11921040/115569900-468b3d80-a2db-11eb-8374-e06d5d61b2e4.png )
### Setting up a Citus Source
- Link to [docker compose](https://github.com/citusdata/docker/blob/master/docker-compose.yml )
- Create an `.envfile` and add the following
```env
COORDINATOR_EXTERNAL_PORT=<port to expose citus master>
COMPOSE_PROJECT_NAME=test
```
- run `docker-compose --file docker-compose.yml --env-file .envfile up --scale worker=2 -d`. `worker` controls the number of citus worker nodes.
- Link to [sample data](http://docs.citusdata.com/en/v10.0/get_started/tutorial_multi_tenant.html#data-model-and-sample-data )
### Changelog
- [x] console: add citus support
https://github.com/hasura/graphql-engine-mono/pull/1184
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 2500a5d5f996a2904fe8b5c656d6f3f2db707db6
2021-06-21 06:47:18 +00:00
Aravind K P
acb69dc88c
cli: enrich errors in metadata subcommands
...
closes https://github.com/hasura/graphql-engine/issues/7020
https://github.com/hasura/graphql-engine-mono/pull/1511
GitOrigin-RevId: 3b7ec9e9dd00e904ecb2dd8fafe42f8078962aac
2021-06-18 17:39:26 +00:00
jkachmar
9b71a1d413
server: Updates 'pg-client-hs', fixes explicit conversions
...
Previous versions of 'pg-client-hs' provided a Template Haskell splice
'sqlFromFile' which returned compile-time embedded PostgreSQL queries.
Rather than returning a concrete 'Query', however, this function
returned the polymorphic 'IsString txt => txt' which allowed the caller
to implicitly convert the result to anything other type with some
'IsString' instance.
https://github.com/hasura/graphql-engine-mono/pull/1570
GitOrigin-RevId: fb4294439148ae8b2762138ece2d59e8e18ef5e0
2021-06-18 17:00:24 +00:00
Vishnu Bharathi
ee2c9cd4ad
cli: avoid race condition in cli-ext
...
https://github.com/hasura/graphql-engine-mono/pull/1610
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 87972a8a9c94252aa17a1f2304c048f66f6bdf2d
2021-06-18 16:14:27 +00:00
Philip Lykke Carlsen
cfab5fc987
Add support for collapsing nulls across all PG expressions ( close #1597 )
...
https://github.com/hasura/graphql-engine-mono/pull/1608
GitOrigin-RevId: 02b6fa0e941a27b3149c9dfb37e0758c94f2986e
2021-06-18 15:34:50 +00:00
hasura-bot
964c7f8de7
docs: update sql-server.md
...
GITHUB_PR_NUMBER: 7084
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7084
https://github.com/hasura/graphql-engine-mono/pull/1611
Co-authored-by: Tanmai Gopal <131160+coco98@users.noreply.github.com>
GitOrigin-RevId: f527463fd25799e88e0b5981391dc14de6f504fb
2021-06-18 13:30:57 +00:00
Vishnu Bharathi P
7c4de20cfe
Revert "Update sql-server.md"
...
This reverts commit 94c8fc79b2
.
2021-06-18 18:32:44 +05:30
Tanmai Gopal
94c8fc79b2
Update sql-server.md
2021-06-18 17:00:16 +05:30
Vijay Prasanna
fdcdc14c01
console: add default selected reference option to create table's foreign key editor
...
https://github.com/hasura/graphql-engine-mono/pull/1472
GitOrigin-RevId: e44f6bc6d819d049edd042ecd1e4e951a45f4ab8
2021-06-18 09:53:51 +00:00
Aravind K P
c7ac1ede3f
cli: add migrate
and metadata
packages
...
>
### Description
>
This PR adds two new packages which implement the CLI requirements specified in RFC:https://github.com/hasura/lux/blob/cloud/docs/rfcs/20210614_github_integration.md
1. `pkg/metadata`
![image](https://user-images.githubusercontent.com/8335904/122384828-b4757d80-cf89-11eb-9e21-ef116fb928e9.png )
2. `pkg/migrate`
![image](https://user-images.githubusercontent.com/8335904/122510554-68771700-d023-11eb-9f5d-046d2c0cf18a.png )
### Changelog
- [x] `CHANGELOG.md` is updated with user-facing content relevant to this PR. If no changelog is required, then add the `no-changelog-required` label.
### Affected components
- [x] CLI
https://github.com/hasura/graphql-engine-mono/pull/1598
GitOrigin-RevId: 0e2bce498386c5aae68dbca0fe383a6afff9d1a9
2021-06-18 06:25:14 +00:00
Antoine Leblanc
8a77386fcf
server: IR for DB-DB joins
...
### Description
This PR adds the required IR for DB to DB joins, based on @paf31 and @0x777 's `feature/db-to-db` branch.
To do so, it also refactors the IR to introduce a new type parameter, `r`, which is used to recursively constructs the `v` parameter of remote QueryDBs. When collecting remote joins, we replace `r` with `Const Void`, indicating at the type level that there cannot be any leftover remote join.
Furthermore, this PR refactors IR.Select for readability, moves some code from IR.Root to IR.Select to avoid having to deal with circular dependencies, and makes it compile by adding `error` in all new cases in the execution pipeline.
The diff doesn't make it clear, but most of Select.hs is actually unchanged. Declarations have just been reordered by topic, in the following order:
- type declarations
- instance declarations
- type aliases
- constructor functions
- traverse functions
https://github.com/hasura/graphql-engine-mono/pull/1580
Co-authored-by: Phil Freeman <630306+paf31@users.noreply.github.com>
GitOrigin-RevId: bbdcb4119cec8bb3fc32f1294f91b8dea0728721
2021-06-17 23:13:05 +00:00
Phil Freeman
456caa59e1
server: fix caching for queries using remote schema permissions
...
https://github.com/hasura/graphql-engine-mono/pull/1579
Co-authored-by: Solomon Bothwell <24038+ssbothwell@users.noreply.github.com>
GitOrigin-RevId: 8fdf33863d812f2ee4edee7eec34150a7dc03231
2021-06-17 19:16:59 +00:00
Sooraj
12045a827c
console/fix: changing primary key removes the existing PK when failing to create PK
...
https://github.com/hasura/graphql-engine-mono/pull/1509
GitOrigin-RevId: b4fec58f399b21125dcacf8083b01148778f97b0
2021-06-17 16:04:02 +00:00
Tanmai Gopal
0a69080189
Notes on Hasura & SQL Server support
...
https://github.com/hasura/graphql-engine-mono/pull/1600
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 1a31786c5737c5003e3158c01695c33ed7831fdc
2021-06-17 14:36:46 +00:00
Philip Lykke Carlsen
73e5c6ce47
Generalize set_table_customization to other backends ( close #1501 )
...
https://github.com/hasura/graphql-engine-mono/pull/1591
GitOrigin-RevId: 42332798160a3a3b18404345390b235db1dd81a1
2021-06-17 13:22:54 +00:00
Rikin Kachhia
835900cf30
docs: add MS SQL server docs ( #1568 )
...
* copy pg -> mssql
* .
* .
* Removes features that are not compatible in schema/index.rst
* delete extra files
* fix refs
* update sidebar link
* mssql schema updates
* Optimised images with calibre/image-actions
* schema updates clear
* MSSQL Queries
* removed distinct queries & aggregate nodes
* updated table basics blank api
* Adds a getting started guide for Hasura Cloud and with Docker for SQL
Server
* fix stuff
Co-authored-by: Tanmai Gopal <tanmaig@hasura.io>
Co-authored-by: VaishnaviGVS <vaishnavi@hasura.io>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: d0869ee48e459054c54d3ed3523c32bf4994ddba
2021-06-17 11:47:45 +00:00
hasura-bot
bad2d4190d
console: catch api error, fix console getting stuck on loading screen ( close #5774 )
...
GITHUB_PR_NUMBER: 5837
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/5837
https://github.com/hasura/graphql-engine-mono/pull/856
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
GitOrigin-RevId: 2a878ea9de0b21cf998b7a49dbfc6d99c143168e
2021-06-17 11:03:24 +00:00
Kali Vara Purushotham Santhati
a70e6089c8
cli: show only differences in metadata on metadata diff
...
https://github.com/hasura/graphql-engine-mono/pull/461
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 626bdfd8d1d05996153cd9676f1695ea796b00d9
2021-06-17 10:16:17 +00:00
Abhijeet Khangarot
240738cf60
console: fix routes for hasura cloud console
...
https://github.com/hasura/graphql-engine-mono/pull/1560
GitOrigin-RevId: 83d1825ad7ee74fd7a941376925d7e26c788baf5
2021-06-17 09:34:13 +00:00
Solomon Bothwell
99e7e3b7b4
Implement refresh parameter for Cached Directive
...
https://github.com/hasura/graphql-engine-mono/pull/1523
Co-authored-by: Phil Freeman <630306+paf31@users.noreply.github.com>
GitOrigin-RevId: f83b73d23db15efdd19a61eca35badc3ff235779
2021-06-17 06:28:45 +00:00
Rikin Kachhia
bf29ab1559
docs: fix links in cloud maintenance mode page
...
https://github.com/hasura/graphql-engine-mono/pull/1589
GitOrigin-RevId: 69c5ebd495bef259753a706eeceeb93153e07ac4
2021-06-16 13:34:12 +00:00
Karthikeyan Chinnakonda
62e7fe62db
server: log additional info in the livequery poller logs
...
https://github.com/hasura/graphql-engine-mono/pull/1529
GitOrigin-RevId: 27060632d5ac0da3f695c6755350f4e32dc0efc1
2021-06-16 13:28:17 +00:00
surendran82
c651c9b2ff
docs: safari browser navbar UI fix
...
https://github.com/hasura/graphql-engine-mono/pull/1590
GitOrigin-RevId: e3f178bed8c275b8039a53ab1abd5af7e2629c65
2021-06-16 12:43:06 +00:00
Tirumarai Selvan
283b77c5e0
tag release v2.0.0-beta.2
...
GitOrigin-RevId: cb066ee5e6738973f05a442230c074cb262e8c8d
2021-06-16 11:57:34 +00:00
Aravind K P
3136ffad1b
cli: update go.mod
...
>
### Description
Update `go.mod` to allow other packages to import [v2.0.0 versions](https://blog.golang.org/v2-go-modules ).
### Changelog
- [x] `CHANGELOG.md` is updated with user-facing content relevant to this PR. If no changelog is required, then add the `no-changelog-required` label.
### Affected components
- [x] CLI
https://github.com/hasura/graphql-engine-mono/pull/1584
GitOrigin-RevId: a5d17ad20289d1cd7217763f56ef3ba6552d69c4
2021-06-16 11:45:07 +00:00
surendran82
09070769b4
docs: HasuraCon banner stripe updated
...
https://github.com/hasura/graphql-engine-mono/pull/1586
GitOrigin-RevId: bcae4c3449048cb00deeed6bb53adb2b8fcec1b9
2021-06-16 11:04:26 +00:00
Rikin Kachhia
d4c65d176c
docs: separate v1 and v2 docs
...
https://github.com/hasura/graphql-engine-mono/pull/1577
GitOrigin-RevId: 606ac087536a8910e93126512592389eeeb4252f
2021-06-16 09:47:55 +00:00
Rikin Kachhia
d8d62f19e2
docs: add v2 computed field typename breaking change
...
https://github.com/hasura/graphql-engine-mono/pull/1585
GitOrigin-RevId: 41ae0c657f9d1851d0bce6a009c843b0f903e93b
2021-06-16 09:06:14 +00:00
Abby Sassel
b6b1354a2b
server/mssql: Fix sqlcmd symlink Dockerfile
...
https://github.com/hasura/graphql-engine-mono/pull/1578
GitOrigin-RevId: 97d793b42b029cd51a8a96699ca4a67f1463d349
2021-06-15 19:45:08 +00:00
Antoine Leblanc
9a8a211367
server: remove XDistinct, cleanup table arguments
...
https://github.com/hasura/graphql-engine-mono/pull/1028
GitOrigin-RevId: dae3d46097520f6838b7e95cdda1ab8d53dc9700
2021-06-15 15:54:12 +00:00
Antoine Leblanc
a805f4d185
server: misc cleanups
...
https://github.com/hasura/graphql-engine-mono/pull/1553
GitOrigin-RevId: b67dc40e54496ed6ad6c85755cf66745664416f7
2021-06-15 15:06:37 +00:00