Antoine Leblanc
3b3fee2fe0
ci: small formatting improvements to the benchmark output
...
## Description
This PR does a few minor improvements to the formatting of the benchmark results:
- changes the title from `<h1>` to `<h2>`, consistent with other hasura-bot reports AFAICT
- concatenates lines together to allow for more natural line wrapping
- allows for the detailed report to be collapsed (but is open by default)
## Notes
The state of the report (open / closed) isn't persisted across refreshes, and I don't know if it's feasible for it to be. An alternative would be to, when generating a new report, edit the old ones to make them collapsed by default.
https://github.com/hasura/graphql-engine-mono/pull/1867
GitOrigin-RevId: 7021a05aebdebe4cc5738d567a6dcc3aaabd38bf
2021-07-22 21:05:48 +00:00
Abby Sassel
178fce0893
server/citus: pin docker image tag
...
Relates to https://github.com/orgs/hasura/projects/142#card-65243091 and https://github.com/hasura/graphql-engine-mono/pull/1862 .
Issue: Citus test failing on [error message diff](https://app.circleci.com/pipelines/github/hasura/graphql-engine-mono/14388/workflows/4081512d-b443-4862-859b-2f081dd5f6e6/jobs/256507 ).
Cause: I forgot to specify a tag when running the Citus Docker image 🤦 thanks to @codingkarthik for updating the error message, this PR follows that one to pin the tag to avoid failures like this in future.
https://github.com/hasura/graphql-engine-mono/pull/1863
Co-authored-by: David Overton <7734777+dmoverton@users.noreply.github.com>
GitOrigin-RevId: 7f5180f8ecdffca3dbcb0eba57037fb15a2b5980
2021-07-22 15:46:18 +00:00
Vamshi Surabhi
5eb72e202b
bigquery: pass the location when fetching a job's status
...
https://github.com/hasura/graphql-engine-mono/pull/1847
GitOrigin-RevId: ed6c5e0d3caae27f32b97d563873720df77b017a
2021-07-22 15:00:16 +00:00
Rikin Kachhia
8d3e3cc797
update docker install manifest for simpler PG getting started
...
https://github.com/hasura/graphql-engine-mono/pull/1839
GitOrigin-RevId: 14a72d881d87b882db57b18a6529ec1315f7f9b7
2021-07-22 13:53:40 +00:00
Jesse
0ab7844efa
docs: add cloud references
...
https://github.com/hasura/graphql-engine-mono/pull/1688
Co-authored-by: Jesse Martin <174035+martincreative@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 7a585cb8473e0c5572a347926e156b6ce6f4d780
2021-07-22 13:24:31 +00:00
Praveen Durairaju
3996eef546
docs: add additional resources for getting started
...
https://github.com/hasura/graphql-engine-mono/pull/1825
GitOrigin-RevId: 3ca4ae3c217347b5b3ee085ca8ef8683e36072e9
2021-07-22 12:39:40 +00:00
Aleksandra Sikora
eb967e6df9
console: enable bigquery in connect db form for cloud console
...
https://github.com/hasura/graphql-engine-mono/pull/1410
GitOrigin-RevId: 8853ec4904e8d47a05e821fefc38eeffebfbb3ba
2021-07-22 11:48:12 +00:00
hasura-bot
2814934cf7
console: add pagination on rawsql results page
...
GITHUB_PR_NUMBER: 5629
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/5629
https://github.com/hasura/graphql-engine-mono/pull/1665
Co-authored-by: Sooraj <8408875+soorajshankar@users.noreply.github.com>
GitOrigin-RevId: 9bf8c6f9068fc04160e9e9ebce2600b30e523a90
2021-07-22 09:58:24 +00:00
Vijay Prasanna
6323f4f7b1
pro-console: fix error message alignment on api limits form
...
https://github.com/hasura/graphql-engine-mono/pull/1871
GitOrigin-RevId: 54bad11061c330554193ab0e81a66a61d92d2d73
2021-07-22 09:16:26 +00:00
Vijay Prasanna
32202e90d3
pro-console/bug: fixes broken form layout
...
https://github.com/hasura/graphql-engine-mono/pull/1870
GitOrigin-RevId: 89d0407331dbe35a569afe746ff30d9c51d6b364
2021-07-22 05:47:02 +00:00
Antoine Leblanc
8a4caba4e2
[gardening] fix schema cache type instances
...
In the same vein as #1762 , but in less critical: we have some old instances that were made manual because of AnyBackend but that don't need to be anymore.
https://github.com/hasura/graphql-engine-mono/pull/1866
GitOrigin-RevId: f1515330859e70531139f8edb21bd016441f8e8d
2021-07-21 23:09:32 +00:00
Abby Sassel
1cd9fc376d
server/mysql: integrate MySQL tests into dev.sh workflow
...
https://github.com/hasura/graphql-engine-mono/pull/1848
GitOrigin-RevId: 2bd7c0a18448f042a1e35d21aaf42232acf48a46
2021-07-21 17:22:56 +00:00
Karthikeyan Chinnakonda
892e56ca6e
server: fix failing citus test
...
https://github.com/hasura/graphql-engine-mono/pull/1862
Co-authored-by: David Overton <7734777+dmoverton@users.noreply.github.com>
GitOrigin-RevId: 05e1912d49a40eaffcfc249ff2d7fb7ac70b8f6f
2021-07-21 15:28:32 +00:00
Karthikeyan Chinnakonda
34ccca305d
server: relax unique operation name constraint in a query collection
...
https://github.com/hasura/graphql-engine-mono/pull/1849
GitOrigin-RevId: 56c1737b69511c3f2c4480d22f84828f51d3b543
2021-07-21 12:05:50 +00:00
Sibi Prabakaran
0e6e9deac9
mysql: runSql implementation and python tests leveraging it to enhance the metadata test
...
https://github.com/hasura/graphql-engine-mono/pull/1606
Co-authored-by: Chris Done <11019+chrisdone@users.noreply.github.com>
Co-authored-by: Aniket Deshpande <922486+aniketd@users.noreply.github.com>
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
GitOrigin-RevId: 2ed37c48c5d1e82e23d691f30a6e870303787388
2021-07-21 10:22:54 +00:00
Lyndon Maydwell
4c4a599373
Committed choice in ReplaceMetadata parsing based on Version
...
https://github.com/hasura/graphql-engine-mono/pull/1830
GitOrigin-RevId: 1f308ff11c1671ba10a854f221c0912e61b6b114
2021-07-21 05:03:37 +00:00
Vijay Prasanna
89e7f26c55
pro-console/security-features: add ability to enable/disable GraphQL introspection per role
...
https://github.com/hasura/graphql-engine-mono/pull/1678
Co-authored-by: Ikechukwu Eze <22247592+iykekings@users.noreply.github.com>
GitOrigin-RevId: 9bfd8a20dfe499b2852e5809471d73ad50b1a48b
2021-07-20 16:10:15 +00:00
Antoine Leblanc
83045a4459
server: fix erroneous Eq instance on Metadata Object
...
During the "generalization" of the code, we removed the [generated instances](9d63187803 (diff-7b8382ab20e441fa214586be491eb6f7ca904d8b20ed97894c16a339be45219aL72)
) of `Eq` and `Hashable` in favour of manually written ones, because for a time we were struggling with `AnyBackend`.
In the process, we lost one constructor, `MOEndpoint`. It's unlikely to have ever been an issue, since duplicate endpoints are unlikely, but it is nonetheless wrong.
This PR simply goes back to default derived instances, now that we can, fixing the problem and making the code simpler.
---
However, after filing this PR, I realized **it broke rest endpoint tests**. Upon closer inspection, it turns out that while we had proper checks in place, because of this bug we were actually failing _differently_ during metadata checks. This PR actually improves error messages for invalid endpoint configurations?! 🙀
This is a tiny bit scary. ^^'
https://github.com/hasura/graphql-engine-mono/pull/1762
GitOrigin-RevId: c4897d1f3ae92d18c44c87d2f58258c66f716686
2021-07-20 14:24:45 +00:00
Abhijeet Khangarot
fe1f50d0f1
console: add/remove database persist in metadata
...
https://github.com/hasura/graphql-engine-mono/pull/1721
GitOrigin-RevId: 15ce3b966db26a88357922e45af742474a8abe19
2021-07-20 12:40:03 +00:00
Philip Lykke Carlsen
2b9e407de5
Server: Index RawFunctionInfo
by backend
...
https://github.com/hasura/graphql-engine-mono/pull/1800
GitOrigin-RevId: 473f72fe47b443a7022c16637a6e3ab9ed016c58
2021-07-19 15:36:09 +00:00
Tirumarai Selvan
83911544c8
tag release v2.0.3
...
https://github.com/hasura/graphql-engine-mono/pull/1823
GitOrigin-RevId: 0b8fb6f885c799661c50b56fdf51e2fb171a43b6
2021-07-19 14:25:04 +00:00
Aniket Deshpande
295f7f3736
bq: fix optional global_select_limit config
...
The following has been tested locally:
1. [x] Uses the default query limit when `global_select_limit` is not present in the `metadata` configuration
2. [x] Uses the provided number when present in the configuration (tested with `1`)
3. [x] Throws an error if the provided value is not a parseable non-negative number (because bigquery throws an error when limits are negative)
https://github.com/hasura/graphql-engine-mono/pull/1816
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
GitOrigin-RevId: e21157ce9ca8f8130b3b01e91ed048e79f376293
2021-07-19 11:40:17 +00:00
Abby Sassel
f33349d1a4
server: fix MySQL dependencies in Pro Dockerfile
...
Issue: `graphql-engine-pro: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory` for the `v2.0.2-pro.1` image ([DockerHub](https://hub.docker.com/layers/hasuraci/graphql-engine-pro/v2.0.1-pro.1/images/sha256-f31213d4b8febfde3b1b49fcbb0fe736fdd09eb495464fcf36309280c3d05a83?context=explore ))
Cause: missing MySQL deps in the Pro Dockerfile
Slack conversation: https://hasurahq.slack.com/archives/CTRL7L1PZ/p1626432181337100?thread_ts=1626091359.266500&cid=CTRL7L1PZ
https://github.com/hasura/graphql-engine-mono/pull/1811
GitOrigin-RevId: 2eed6e627c39fef256001718081991650e9ce0b4
2021-07-19 10:23:17 +00:00
Varun Choudhary
7bd32c7bb8
pro-console: fix runtime error when expanding pending/processed scheduled events
...
closes: https://github.com/hasura/graphql-engine/issues/7168
### Description
On expanding the pending and processed event on `one-off scheduled event` on pro we are getting an error because we are not passing the auth header to API request. In this PR we are passing `includeAdminHeaders` to API as `true` to fetch events.
`keyframes` imported from `styled-components` is supported on V3 only and we are using V5.0.1. So, instead of importing spinner from UIKit which we are not using anymore, we are importing spinner form other place.
### Affected components
- [x] Console
https://github.com/hasura/graphql-engine-mono/pull/1754
Co-authored-by: Sooraj <8408875+soorajshankar@users.noreply.github.com>
GitOrigin-RevId: 7550d544b2d7f4f98a793895368c964d17d0e362
2021-07-19 06:55:48 +00:00
Karthikeyan Chinnakonda
6bddaa7564
server: inherited roles improvements for select permissions only
...
https://github.com/hasura/graphql-engine-mono/pull/1539
GitOrigin-RevId: 7444973e9cc7e0598eeb1bd7951ad45dd37ec550
2021-07-16 21:19:58 +00:00
Solomon Bothwell
d88e2bbcce
server: add tests ensuring the correct functioning of all endpoints based on user roles
...
https://github.com/hasura/graphql-engine-mono/pull/1625
Co-authored-by: Sameer Kolhar <6604943+kolharsam@users.noreply.github.com>
GitOrigin-RevId: 6b56efc838d2ed1acc44b2847161fde22d6aee17
2021-07-16 16:09:25 +00:00
Sooraj
08847566d8
console: support global_select_limit for bigquery sources
...
https://github.com/hasura/graphql-engine-mono/pull/1812
GitOrigin-RevId: 55785579523fcd3500486139431c4d9b3c1ace19
2021-07-16 15:05:28 +00:00
Kali Vara Purushotham Santhati
2aeb6ad0b1
cli: use absolute path of project directory
...
closes https://github.com/hasura/graphql-engine/issues/7089
closes https://github.com/hasura/graphql-engine/issues/6499
https://github.com/hasura/graphql-engine-mono/pull/1717
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 74209e249c692d01f2bd849181c8a2ef46493e74
2021-07-16 12:59:04 +00:00
Divi
4ed8ba8bb3
cli: fix inconsistent metadata object list rendering
...
closes https://github.com/hasura/graphql-engine/issues/7202
https://github.com/hasura/graphql-engine-mono/pull/1781
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: bcbdf74773aa8f653ebe62c5bf00bcbda1aa51ee
2021-07-16 05:26:47 +00:00
Vishnu Bharathi
6e89653814
ci: uploads ARM64 CLI binaries during deploy
...
https://github.com/hasura/graphql-engine-mono/pull/1804
GitOrigin-RevId: 3348d15c8869d375bb7bf22bfc53a5d148d1568f
2021-07-16 04:20:01 +00:00
Karthikeyan Chinnakonda
6d95271d57
server: misc remote schema permissions printing and parsing fixes
...
https://github.com/hasura/graphql-engine-mono/pull/1773
GitOrigin-RevId: 6417ffc9b24a1a2c8437f77cd8c3c7e742f9c5fc
2021-07-15 14:08:37 +00:00
Sibi Prabakaran
385d27449e
mysql: Metadata awareness
...
https://github.com/hasura/graphql-engine-mono/pull/1599
Co-authored-by: Chris Done <11019+chrisdone@users.noreply.github.com>
Co-authored-by: Aniket Deshpande <922486+aniketd@users.noreply.github.com>
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
GitOrigin-RevId: 4df4a8ff00fa8ef311a85199d66abe4cc10adc8c
2021-07-15 12:45:51 +00:00
Tirumarai Selvan
241a116e8e
tag release v2.0.2
...
GitOrigin-RevId: de0c1b7bcd59f6501379e1ebce8c2490cbb29a2d
2021-07-15 07:31:00 +00:00
Abby Sassel
1c09e7c8cf
cleanup: format .circleci/config.yml files
...
First up: please let me know if we're already using a YAML file formatter, which one, and I'll close this.
**Otherwise:**
This PR formats .circleci/config.yml files with https://github.com/redhat-developer/yaml-language-server formatter.
**As someone who** edits yaml files infrequently, but with a few default language servers active in my editor,
**I'd like to** edit the file without having to think about formatting or yaml idiosyncrasies
**So that** I can raise a PR and move on with my life ✨
### Before: incorrect formatting highlighted for 1/5 of `.circleci.config.yaml` file. Difficult to read/edit, and unable to use any common editor integrations
![Screenshot 2021-07-14 at 10 51 41](https://user-images.githubusercontent.com/3883855/125602289-6c0ce457-8a1f-43ea-96f4-1b29e440181a.png )
### After: writing yaml brings me joy now
![Screenshot 2021-07-14 at 11 21 42](https://user-images.githubusercontent.com/3883855/125606378-e6e4ee2a-c44a-40c4-bebe-3e7ab4cb98ae.png )
https://github.com/hasura/graphql-engine-mono/pull/1788
GitOrigin-RevId: d821f3ab5af758e4af3aa442afb0997d76e53c72
2021-07-14 15:24:13 +00:00
hasura-bot
f9e11f6bde
server/bugfix: update server_builder_image tag
...
GITHUB_PR_NUMBER: 7235
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7235
https://github.com/hasura/graphql-engine-mono/pull/1791
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
GitOrigin-RevId: 2905c0d80341aaeec328460864d35c3a3bc96ee0
2021-07-14 13:14:17 +00:00
kodiakhq[bot]
719354d5b0
ci: bugfix for benchmark regression reporting, after #1742
...
https://github.com/hasura/graphql-engine-mono/pull/1779
GitOrigin-RevId: e1769d5d6e120c23819cd7864d21e10c0ae33a54
2021-07-14 12:45:41 +00:00
Ikechukwu Eze
175b1a86ca
console: fix issue with changing table's column name and graphQL field name simultaneously
...
This PR fixes the following errors when column name and graphql field name are modified:
1. Metadata out-of-date error -> when graphql field name is removed (set to empty on the console UI)
2. Inconsistent state error -> due to old column name used in modifying graphql field name
### Changelog
- [x] `CHANGELOG.md` is updated with user-facing content relevant to this PR.
### Affected components
- [x] Console
### Related Issues
Closes [7221](https://github.com/hasura/graphql-engine/issues/7221 )
### Solution and Design
1. Use exportMetadata function after column name rename has been completed, passing the function to rename graphql field name
2. Use new column name, instead of old column name when renaming graphql field name
### Steps to test and verify
1. Go to data tab
2. Create a table if none
3. click the table name by the side-menu and when it has loaded, click on the modify tab.
4. Then edit any column of the table:
- Change column name and graphql field name, it should work successfully without an error
- Change column name and remove graphql field name, it should work successfully without metadata out-of-date error
Does this PR add a new Metadata feature?
- [x] No
#### GraphQL
- [x] No new GraphQL schema is generated
#### Breaking changes
- [x] No Breaking changes
https://github.com/hasura/graphql-engine-mono/pull/1778
GitOrigin-RevId: edfd795fb804df71a4e07e0373ca0714ff45fda9
2021-07-14 09:46:37 +00:00
Vishnu Bharathi
8a6f3f7e9d
cli: support ARM architecture
...
https://github.com/hasura/graphql-engine-mono/pull/1534
GitOrigin-RevId: 67723bb64e2505c665b04b5b0d691e5599843f87
2021-07-14 08:54:43 +00:00
Varun Choudhary
b1013e8d6c
console: add reload all databases
checkbox to the metadata settings page
...
Closes: https://github.com/hasura/graphql-engine/issues/7146
### Description
This PR adds a `reload all databases` check box along `with` the `reload metadata` check box to reload all databases (inconsistent databases also).
![Screenshot from 2021-07-07 16-51-49](https://user-images.githubusercontent.com/68095256/124750932-af31a000-df43-11eb-88d9-b6585214a188.png )
### Affected components
- [x] Console
### Steps to test and verify
Use this for your docker image: https://235669-308610159-gh.circle-artifacts.com/0/server/image.tar
1. Go to the metadata setting page
2. If `reload all databases` check box is checked: It reloads everything by sending * in the API
3. If `reloading all databases` check box is not checked: It reloads inconsistent DB and if no inconsistent then it passes an empty string
https://github.com/hasura/graphql-engine-mono/pull/1703
GitOrigin-RevId: 2b6f029a17d40a43f5bce3680d5681c97433d78c
2021-07-14 06:16:00 +00:00
Nicolas Beaussart
cdfb71c1da
console: add a feature flag for schema sharing
...
https://github.com/hasura/graphql-engine-mono/pull/1786
GitOrigin-RevId: a35dfa98508a8ef1ea92fe8588e79fc6f8479a2d
2021-07-13 16:57:04 +00:00
Vamshi Surabhi
9ec40be58d
bigquery: 'global_select_limit' is now optional and defaults to 1000
...
See https://github.com/hasura/graphql-engine-mono/pull/1774 . This new branch had to be opened because of an issue with cli test failure if the branch name starts with a number.
https://github.com/hasura/graphql-engine-mono/pull/1784
Co-authored-by: Aniket Deshpande <922486+aniketd@users.noreply.github.com>
GitOrigin-RevId: 25d2d92f57c10d80bc54b47a3f895ab014b8e6fa
2021-07-13 15:50:12 +00:00
Abby Sassel
151ae6715d
server/fix: Remove explicit -developer flag in cabal.project.freeze,
...
>
### Description
An attempt to fix [this build issue](https://hasurahq.slack.com/archives/CV3UR1MT2/p1626157653068000 ) on `main`.
https://hasurahq.slack.com/archives/C019Q4RCC4U/p1626167243339000
I believe this change will cause cabal to fall back to default (false) or local config.
https://github.com/hasura/graphql-engine-mono/pull/1783
GitOrigin-RevId: 9b6d59f6b8014e531bedc9270807ac9eb5248f08
2021-07-13 14:41:45 +00:00
Aniket Deshpande
921bdf709b
MySQL: Initial connection and corresponding types
...
https://github.com/hasura/graphql-engine-mono/pull/1517
Co-authored-by: Sibi Prabakaran <737477+psibi@users.noreply.github.com>
Co-authored-by: Chris Done <11019+chrisdone@users.noreply.github.com>
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
GitOrigin-RevId: e0f61664b33d8ca50f223ec7fb76c66940eabc89
2021-07-13 13:33:21 +00:00
Anon Ray
d8fa32776b
server: log query in http-log/ws-log only if query-log is enabled
...
https://github.com/hasura/graphql-engine-mono/pull/1771
GitOrigin-RevId: 1fb8246f6ebff7e114779f284ba36d510b504f29
2021-07-13 12:24:19 +00:00
Ikechukwu Eze
701f3fd304
pro-console/security features: add support for api limits
...
https://github.com/hasura/graphql-engine-mono/pull/1541
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 83f0f20a45f0f396002c53a716dd3541e82b83e1
2021-07-13 11:18:06 +00:00
Rakesh Emmadi
df1efdcd27
server/postgres: fix reload sources and remote schemas if they're inconsistent
...
https://github.com/hasura/graphql-engine-mono/pull/1709
GitOrigin-RevId: c0684380d0e86dd6f28d6c8a0aebeaa210319272
2021-07-13 07:57:21 +00:00
Aniket Deshpande
3bdd777ec4
MySQL: Add mysql-client dependencies on CI and in .cabal file
...
https://github.com/hasura/graphql-engine-mono/pull/1514
Co-authored-by: Sibi Prabakaran <737477+psibi@users.noreply.github.com>
Co-authored-by: Chris Done <11019+chrisdone@users.noreply.github.com>
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
Co-authored-by: Toan Nguyen <1615675+hgiasac@users.noreply.github.com>
GitOrigin-RevId: 81fd23f439e8c3db8149fedae2855db1e84a60a3
2021-07-12 20:07:46 +00:00
Abby Sassel
745ff91dcd
server/docs: Add reference in test to its related issue
...
I got sad that I didn't write a line of code (or...comments) today, so here we are 😅 also [I said I would](https://github.com/hasura/graphql-engine/issues/7181#issuecomment-877143240 ).
FYI @aniketd this is our convention for linking bug fixes to issues
https://github.com/hasura/graphql-engine-mono/pull/1777
GitOrigin-RevId: 11ee6cc52903c074dc3b6fa8b8c3636cca94174d
2021-07-12 18:59:50 +00:00
Rakesh Emmadi
a375f8c105
server/postgres: Support scalar computed fields in remote joins
...
https://github.com/hasura/graphql-engine-mono/pull/1692
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: fcef85910899859f7421cad554c022f8023965ea
2021-07-12 16:04:37 +00:00
Sooraj
effb221d97
console: fix test_oss_console ci errors
...
https://github.com/hasura/graphql-engine-mono/pull/1726
GitOrigin-RevId: ae87ca45a111fcdb25ba9c53c1bfd8650e1be78c
2021-07-12 10:40:50 +00:00