Commit Graph

784 Commits

Author SHA1 Message Date
Harish M
33d99b994d
console: migrate AlertBox component to typescript (#4721) 2020-08-12 15:31:53 +02:00
Lautaro Gruss
1b96d800c5
console: migrate login actions to typescript (#5499) 2020-08-12 11:20:43 +02:00
Rikin Kachhia
15b7def1c7
update indentity column display text 2020-08-11 18:38:24 +05:30
Aleksandra Sikora
5cc02b9edc Merge branch 'feature/add-identity-frequent-column' of github.com:GavinRay97/graphql-engine into feature/add-identity-frequent-column 2020-08-06 12:34:05 +02:00
Aleksandra Sikora
0becc4f3e2 update typescript-eslint 2020-08-06 12:33:43 +02:00
Aleksandra Sikora
bf5a416f3e
Merge branch 'master' into feature/add-identity-frequent-column 2020-08-06 12:11:46 +02:00
Aleksandra Sikora
add325934d fetch postgres version 2020-08-05 21:20:41 +02:00
Varun Choudhary
d4b4459c98
console: fix inconsistency in permissions builder (close #4119) (#5524) 2020-08-05 13:46:57 +02:00
Rikin Kachhia
925b668161
console: separate timeout statement from user statement in raw sql page (#5516) 2020-08-04 13:00:38 +02:00
Aleksandra Sikora
672351add5 move postgres utility types 2020-08-03 18:49:08 +02:00
Aleksandra Sikora
6dab31d7fb lint 2020-08-03 18:42:58 +02:00
Aleksandra Sikora
bb5a5bd8f9
Update FrequentlyUsedColumnSelector.tsx 2020-08-03 18:29:15 +02:00
Aleksandra Sikora
decdcc34ab
Merge branch 'master' into feature/add-identity-frequent-column 2020-08-03 18:21:52 +02:00
Kentaro Suzuki
0ec014881a
console: increase size of redeliver event modal (close #5480) (#5502) 2020-08-03 15:55:04 +02:00
Varun Choudhary
b37b451992
console: fix primary key selector bug and raw sql error message (close #4226) (#5469) 2020-08-03 15:00:25 +02:00
Gnyani
7d06d7a6ab
console: prettify cron trigger JSON payload (close #5052) 2020-08-03 14:01:48 +02:00
Sameer Kolhar
ebd6fe13f0
console: remove obsolete files and update dependencies (#5327) 2020-07-31 15:58:19 +02:00
Gnyani
58b0ac1352
console: trim trailing spaces in action handler URL (close #5416) 2020-07-31 13:24:37 +02:00
Anuj Shah
65e568e6dd
console: handle nested fragments in allowed queries (close #5137) (#5252) 2020-07-31 12:17:52 +02:00
Rikin Kachhia
d1032b2414
console: make add column UX consistent with others (#5486) 2020-07-30 22:54:20 +02:00
Rikin Kachhia
7045fffefa
console: misc updates (#5488) 2020-07-30 18:34:47 +02:00
Rikin Kachhia
8194494afa
console: fix telemetry (#5484) 2020-07-30 21:05:17 +05:30
Rikin Kachhia
03305bb788
console: update sidebar icons for different action and trigger types (#5445) 2020-07-22 17:10:17 +05:30
Sameer Kolhar
ca650353de
console: left-align content on data table (#5408) 2020-07-21 16:54:14 +02:00
Rikin Kachhia
56da4891c3
console: UI updates (#5427)
- Schema page
  - Keep function sections expanded by default
  - Add Know more link for relationships
- Table relationships page
  - Add tooltips / know more links
  - Update add table relationship UI
  - Remote relationships -> remote schema relationships 
  - Make remote relationships UI consistent
- Events pages
  - fix breadcrumbs
  - update scheduled trigger info image
  - add note regarding UTC timezone based events to tooltip for cron triggers
2020-07-21 18:21:34 +05:30
Kentaro Suzuki
788095acba
console: fix import metadata button text (close #5386) (#5415) 2020-07-20 20:46:45 +02:00
soorajshankar
4a116c793b
console: use requestAction instead of fetch (#5406) 2020-07-20 17:48:59 +02:00
Sameer Kolhar
d193af7d11
console: fix clear text issue on RawSQL page (#5351) 2020-07-20 16:57:13 +02:00
Todd Heslin
a677c62dae
console: fix custom root field placeholder for insert one mutation (close #5345) (#5346) 2020-07-20 16:15:52 +02:00
Sameer Kolhar
d8055a7ca6
console: add tooltips to certain headers on API Explorer (#5286) 2020-07-15 18:19:29 +05:30
Aleksandra Sikora
773a29d612
console: don't set payload for data trigger (#5370) 2020-07-13 17:38:43 +02:00
Gavin
66479870ad feat(console): Add "identity" frequently used column, refactor to TS 2020-07-12 01:14:04 -04:00
Aleksandra Sikora
cefe06e089
console: fix clone row in data browser (close #5336) (#5337) 2020-07-09 20:32:44 +05:30
Tanvi Bhakta
51174ceb0e
console: display line number that error originated from in GraphQL editor (close #4849) (#4942) 2020-07-09 13:58:25 +02:00
surendran82
b1b92c75ad
console: update hasura pro content to cloud in header (#5268) 2020-07-08 16:01:31 +05:30
soorajshankar
b1c686f303
console: searchable select UX fix (close #5246) (#5254) 2020-07-08 15:21:41 +05:30
Aleksandra Sikora
4637de42e8
console: add statement timeout for data browser count query (#5313) 2020-07-07 15:56:15 +05:30
Aleksandra Sikora
5d35f564e9
console: fix creating migrations from Raw SQL page (close #5296) (#5308) 2020-07-06 13:49:16 +05:30
Rakesh Emmadi
2fe353a294
allow array relation connection fields regardless of aggregation permission & change relay endpoint to '/v1beta1/relay' (fix #5218) (#5257)
* fix error when array relation connections are queried, fix #5218

* change relay endpoint to '/v1beta1/relay'

* Update CHANGELOG.md

Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
2020-07-03 12:00:35 +05:30
Aleksandra Sikora
53a40bc2be
console: handle generated and identity columns in console data section (close #4552, #4863) (#4761) 2020-07-02 14:32:34 +05:30
Sameer Kolhar
6cd9eb282a
console: add button to cancel one-off scheduled events and cron-trigger events (close #5161) (#5236) 2020-07-02 13:57:53 +05:30
Aleksandra Sikora
af452de754
console: support tracking partitioned tables (close #5071) (#5258) 2020-07-02 13:14:27 +05:30
Anuj Shah
a78f17b79c
console: add code exporter to graphiql (close #4531) (#4652) 2020-07-01 23:16:09 +02:00
Gokul
b9918e0eac
console: allow configuring statement timeout on console RawSQL page (close #4998) (#5045) 2020-07-01 22:06:24 +02:00
soorajshankar
ab311cd9f1
console: add eslint-plugin-react-hooks (#5219) 2020-07-01 12:22:09 +02:00
John Duong
6fe0b748e2
community: fix DATA_API_URL for Heroku in console README (#5069) 2020-07-01 09:54:00 +02:00
Sameer Kolhar
f8b58ea698
console: fix styling of table row content on relationship page (close #4974) (#4979) 2020-06-25 10:13:37 +02:00
Marion Schleifer
527530704d
docs/console: clarify usage of "query" vs "request" , change allowed queries to allow list (close #4053) (#5182) 2020-06-24 23:00:08 +05:30
Sameer Kolhar
01e7b2aea0
console: display error notification if an introspection query fails (#5184) 2020-06-24 13:39:38 +02:00
Aleksandra Sikora
9936ace6ab
console: handle renaming cron triggers (#5167) 2020-06-23 15:56:51 +02:00
Sameer Kolhar
4293714519
console: add the ability to delete a role in permissions summary page (close #3353) (#4987) 2020-06-19 14:36:40 +05:30
Aleksandra Sikora
f2428e3984
console: allow manual edit of column types and handle array data types (close #2544, #3335, #2583) (#4546) 2020-06-18 12:43:19 +02:00
Rikin Kachhia
3c76ddf493
console: misc UX improvements (close #4500, #4689) (#5066) 2020-06-18 10:36:42 +02:00
Egor Ogarkov
df8a0b7924
console: migrate wrap type utils to typescript (#4557) 2020-06-17 17:21:49 +02:00
Pavel Kostenko
213958ac09
console: fix typo in remote relationships tooltip (close #5113) 2020-06-17 10:26:37 +02:00
Aravind
d7ca702542
cli: support squashing migrations with remote joins (close #4908) (#4924) 2020-06-16 12:10:20 +05:30
Marek Dano
65920fb77b
console: migrate main state to typescript (#4804) 2020-06-15 20:25:16 +02:00
Sameer Kolhar
fd00892371
console: reuse websocket connection in api explorer (#5064) 2020-06-12 16:32:21 +02:00
Aleksandra Sikora
0bdfad4ef0
console: remove proposal-export-default-from (#5032) 2020-06-12 12:11:28 +02:00
Aleksandra Sikora
f73b847ddc
console: fix handling inconsistent objects (close #5072) (#5073) 2020-06-12 11:11:54 +02:00
soorajshankar
cb3252cf07
console: allow configuring session_argument for custom functions (close #4499) (#4922) 2020-06-11 14:38:32 +02:00
Rishichandra Wawhal
7efc53206f
console: add default graphiql mode in api explorer (#5061) 2020-06-11 15:41:17 +05:30
Rishichandra Wawhal
63eb311169
console: fix listen update column config selection for event trigger (close #5042) (#5043) 2020-06-10 14:05:43 +02:00
Pavel Kostenko
2030da5282
console: convert settings/utils to typescript (#4684) 2020-06-10 10:52:23 +02:00
soorajshankar
c8d242dd13
console: provide option to cascade metadata on dependency conflicts (close #1593) (#4846) 2020-06-09 18:26:44 +02:00
soorajshankar
2861beaa20
console: fix enum tables reload data button UI (close #4647) (#4877) 2020-06-09 17:10:26 +02:00
soorajshankar
0df38f0a95
console: respect read-only mode in actions pages (close #4656) (#4764) 2020-06-09 14:23:02 +02:00
Ryan Dsouza
dd977d6c22
console: convert About and Login components to typescript (#4794) 2020-06-09 13:21:04 +02:00
Marek Dano
fa60c7d4b6
console: migrate telemetry to typescript (#4737) 2020-06-09 11:01:12 +02:00
Aleksandra Sikora
e4ff1badd6
Merge branch 'master' into migrate-sidebar-to-ts 2020-06-08 20:59:17 +02:00
Aleksandra Sikora
e800e32bdf
console: fix "Cannot read property 'foldable'" runtime error in Browse Rows page (fix #4907) (#5016) 2020-06-08 20:10:39 +05:30
Aleksandra Sikora
547e658b6d
console: replace remote schema url in tests (#5011)
* console: replace remote schema url

* Rename lint to console lint
2020-06-08 17:45:43 +05:30
Vamshi Surabhi
2a9bc2354f
add relay modern support (#4458)
* validation support for unions and interfaces

* refactor SQL generation logic for improved readability

* '/v1/relay' endpoint for relay schema

* implement 'Node' interface and top level 'node' field resolver

* add relay toggle on graphiql

* fix explain api response & index plan id with query type

* add hasura mutations to relay

* add relay pytests

* update CHANGELOG.md

Co-authored-by: rakeshkky <12475069+rakeshkky@users.noreply.github.com>
Co-authored-by: Rishichandra Wawhal <rishi@hasura.io>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
2020-06-08 17:43:01 +05:30
Xetera
2ada31292f
console: add new sidebar icon that separates enums from tables (fix #4984) (#4992) 2020-06-06 17:17:40 +05:30
Marek Dano
20cf05d883
console: migrate Globals to TS (#4587) 2020-06-06 16:34:35 +05:30
Sameer Kolhar
d67757c23a
console: update QueryAnalyzer to support subscriptions (close #2541) (#4965) 2020-06-06 15:23:37 +05:30
Aleksandra Sikora
342c017d1b
Merge branch 'master' into migrate-sidebar-to-ts 2020-06-05 21:36:02 +02:00
Aleksandra Sikora
2b4d12ec49 Fix eslint config, run prettier 2020-06-05 21:35:38 +02:00
Aleksandra Sikora
d651319110 Fix location type 2020-06-05 21:31:57 +02:00
Aleksandra Sikora
78d2f2ced0 Merge branch 'master' into migrate-sidebar-to-ts 2020-06-05 21:25:19 +02:00
Sameer Kolhar
e4e4856085
console: improve error handling for prerelease notification opt-out (#4983) 2020-06-05 15:38:01 +05:30
Rishichandra Wawhal
aaab6d3eb6
console: add scheduled triggers support (#4732) 2020-06-05 13:40:08 +05:30
soorajshankar
1b3f5b8fcf
console: fix regression in editing permissions manually (fix #4683) (#4826) 2020-06-04 20:51:01 +05:30
Aleksandra Sikora
45c8699e23
console: dependencies cleanup (#4705) 2020-06-02 13:44:45 +05:30
Aleksandra Sikora
af0d4d8f08
console: replace remote schema url in tests (#4964) 2020-06-02 12:41:14 +05:30
Marek Dano
61349c091a
console: migrate ErrorBoundary to TS (#4542) 2020-05-29 19:10:17 +05:30
Kshitiz Kumar
a2a492e5d9
console: migrate CollapsibleToggle to TS (#4697) 2020-05-29 18:34:28 +05:30
Rishichandra Wawhal
6b590cb4f8
console: remote joins code improvements (#4920) 2020-05-29 18:00:37 +05:30
Aleksandra Sikora
41b3be82fb
workflow: add lint and format action for console (#4501) 2020-05-29 16:45:43 +05:30
Rishichandra Wawhal
ea2f1679eb
console: require async globals before render; track runtime errors (#4449) 2020-05-29 15:15:33 +05:30
soorajshankar
d2aac3732a
console: allow entering big int values (close #3667) (#4775) 2020-05-29 14:40:02 +05:30
soorajshankar
b2fd57a8e2
console: fix visiting view modify page overwriting raw sql content (close #4798) (#4810) 2020-05-29 14:11:02 +05:30
Aleksandra Sikora
bc16668ff6
console: remove deprecated better-npm-run (#4819) 2020-05-29 12:09:58 +05:30
Rikin Kachhia
594b387263
console: add Help button and move About page to settings (#4848) 2020-05-27 21:43:04 +05:30
Tirumarai Selvan
c0d2bc6653
Remote Joins: Create relationships across database and remote schemas (#2392)
add remote joins: Create relationships across database and remote schemas (#2392)

Co-authored-by: Aleksandra Sikora <ola.zxcvbnm@gmail.com>

Co-authored-by: Chris Done <chrisdone@gmail.com>
Co-authored-by: Chris Done <github@chrisdone.com>
Co-authored-by: wawhal <rishichandra.wawhal@gmail.com>
Co-authored-by: Aravind Shankar <aravind@hasura.io>
Co-authored-by: Brandon Simmons <brandon.m.simmons@gmail.com>
Co-authored-by: Rishichandra Wawhal <rishi@hasura.io>
Co-authored-by: Brandon Simmons <brandon@hasura.io>
Co-authored-by: nizar-m <19857260+nizar-m@users.noreply.github.com>
Co-authored-by: Praveen Durairaju <praveend.web@gmail.com>
Co-authored-by: rakeshkky <12475069+rakeshkky@users.noreply.github.com>
Co-authored-by: Anon Ray <rayanon004@gmail.com>
Co-authored-by: Shahidh K Muhammed <shahidh@hasura.io>
Co-authored-by: soorajshankar <soorajshankar@users.noreply.github.com>
Co-authored-by: Sooraj Sanker <sooraj@Soorajs-MacBook-Pro.local>
Co-authored-by: Karthikeyan Chinnakonda <karthikeyan@hasura.io>
Co-authored-by: Aleksandra Sikora <ola.zxcvbnm@gmail.com>
2020-05-27 20:32:58 +05:30
Aleksandra Sikora
c1197be208
console: fix dependency vulnerabilities (#4677) 2020-05-27 16:04:38 +05:30
Raj Anand
1b442fc2dd
console: migrate cypress tests to TypeScript (#4550) 2020-05-27 14:56:29 +05:30
Ryan Dsouza
b088db6ed7 console: migrate Container.js to TypeScript (#4724) 2020-05-27 14:20:26 +05:30
ryo
fb807843c9
console: migrate Button to TypeScript (#4570) 2020-05-27 13:25:40 +05:30
Aleksandra Sikora
f7cb3c1f19
Merge branch 'master' into migrate-sidebar-to-ts 2020-05-25 19:29:16 +02:00
Vamshi Surabhi
ff99b24031 fix a security issue with 1.2 2020-05-22 14:40:57 +05:30
Marek Dano
289ff5e737
console: migrate VoyagerView to TS (#4734) 2020-05-20 15:33:19 +05:30
ryo
fffc65f153
console: migrate switch button and spinner to TypeScript (#4504) 2020-05-19 17:47:33 +05:30
Rikin Kachhia
7a7ff29e08
console: fix undercores not being displayed in raw sql (close #4754) (#4799) 2020-05-18 13:46:08 +05:30
Aleksandra Sikora
78aa346d72
console: fix displaying boolean values in Edit Row tab (#4682) 2020-05-15 14:36:45 +05:30
Rishichandra Wawhal
5a39143518
console: add more themes to ace editor for supporting syntax highlighting (#4600) 2020-05-14 23:27:56 +05:30
Ryan Dsouza
619d167329
console: migrate HTML helpers, route hooks helpers and version utils to TypeScript (#4641) 2020-05-14 19:30:05 +05:30
Aleksandra Sikora
8a2d90cfb1
console: fix bulk selected rows state in data browser (close #4654) (#4673) 2020-05-14 18:55:57 +05:30
Irshad Ansari
d039c12e1d
console: migrate Common/Modal to TypeScript (#4532) 2020-05-14 18:09:28 +05:30
Fadi Khadra
a94012b1b1
console: migrate WarningSymbol and TextInput to TypeScript (#4562) 2020-05-14 17:30:49 +05:30
Marek Dano
ced1b4d001
console: migrate TelemetryFilter file to TS (#4579) 2020-05-14 16:50:40 +05:30
gnyani
5d2b082194
console: trim column name input values (fix #4526) (#4545) 2020-05-14 16:20:12 +05:30
Aleksandra Sikora
1cbb765acd
console: fix rows limit display in permissions editor if set to zero (fix #4559) (#4750) 2020-05-14 15:35:00 +05:30
Tirumarai Selvan
cc8e2ccc78
Scheduled triggers (close #1914) (#3553)
server: add scheduled triggers 

Co-authored-by: Alexis King <lexi.lambda@gmail.com>
Co-authored-by: Marion Schleifer <marion@hasura.io>
Co-authored-by: Karthikeyan Chinnakonda <karthikeyan@hasura.io>
Co-authored-by: Aleksandra Sikora <ola.zxcvbnm@gmail.com>
2020-05-13 18:03:16 +05:30
Antoine Leblanc
201dcca59a
console: restore partial support for foreign tables (fix #4714) (#4742) 2020-05-12 17:18:35 +05:30
Jigyasu Arya
f993a6c907
console: fix checkbox for forwarding client headers in actions (close #4595) (#4669) 2020-05-12 15:22:23 +05:30
Fadi Khadra
cd1c562073
console: allow modifying default value for PK (close #4075) (#4679) 2020-05-12 11:46:48 +05:30
Marek Dano
cd1f43397c Replace react-router-dom by react-router version 3. 2020-05-08 19:57:02 +01:00
Rikin Kachhia
c2fdcd0471
console: optimise count fetch in data browser (#4692)
* in table-browse-rows, make intelligent count

* update changelog

* simplify getting estimatedCount

* prevent doubled requests

* hide estimated count

* update changelog

* Update CHANGELOG.md

Co-authored-by: Rishichandra Wawhal <rishi@hasura.io>
Co-authored-by: Aleksandra Sikora <ola.zxcvbnm@gmail.com>
2020-05-06 23:37:56 +05:30
Marek Dano
dbafb92a07 Replace 'any' in the Sidebar component and fix eslint issue. 2020-05-06 13:36:30 +01:00
Marek Dano
17a4b98e9a Migrate Sidebar to tsx. 2020-05-06 12:44:52 +01:00
Marek Dano
1e2c05426d Remove react-router and replace it with react-router-dom in the console project. 2020-05-06 12:44:15 +01:00
surendran82
5998d22231
console: add read replica support section to pro popup (#4118) 2020-05-02 14:41:40 +05:30
Aleksandra Sikora
43f12db1d3
console: update @babel/core and @babel/preset-env (#4628) 2020-05-01 18:34:52 +05:30
Aleksandra Sikora
09d3c89d4c
console: fix data browser css issue in safari (close #4632) (#4634) 2020-05-01 05:31:22 +05:30
Aleksandra Sikora
220338d5d7
console: pin dependency versions (#4612) 2020-04-30 13:09:17 +05:30
Rikin Kachhia
c2df714e5d
docs: update migrations docs (#3403) 2020-04-29 13:30:26 +05:30
Rishichandra Wawhal
74563402d4
console: update and freeze graphiql explorer to support operation transforms (#4567) 2020-04-27 16:46:09 +05:30
Aleksandra Sikora
4746be2018
console: fix table columns type comparision during column edit (close #4125) (#4393) 2020-04-27 16:13:22 +05:30
Fadi Khadra
d9b9c21198
console: migrate GqlCompabilityWarning to TS (#4544) 2020-04-27 15:42:34 +05:30
Muhammad Ubaid Raza
08aecff498
console: migrate graphql, sql, main utils to TS (#4522) 2020-04-27 15:14:02 +05:30
Aleksandra Sikora
79a3b6131d
console: make graphiql panel use whole height (#4553) 2020-04-27 14:32:39 +05:30
Antoine Leblanc
66e18b7dee
console: support materialized views (close #91) (#4270) 2020-04-24 15:13:42 +05:30
Rakesh Emmadi
d52bfcda4e
backend only insert permissions (rfc #4120) (#4224)
* move user info related code to Hasura.User module

* the RFC #4120 implementation; insert permissions with admin secret

* revert back to old RoleName based schema maps

An attempt made to avoid duplication of schema contexts in types
if any role doesn't possess any admin secret specific schema

* fix compile errors in haskell test

* keep 'user_vars' for session variables in http-logs

* no-op refacto

* tests for admin only inserts

* update docs for admin only inserts

* updated CHANGELOG.md

* default behaviour when admin secret is not set

* fix x-hasura-role to X-Hasura-Role in pytests

* introduce effective timeout in actions async tests

* update docs for admin-secret not configured case

* Update docs/graphql/manual/api-reference/schema-metadata-api/permission.rst

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* Apply suggestions from code review

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* a complete iteration

backend insert permissions accessable via 'x-hasura-backend-privilege'
session variable

* console changes for backend-only permissions

* provide tooltip id; update labels and tooltips;

* requested changes

* requested changes

- remove className from Toggle component
- use appropriate function name (capitalizeFirstChar -> capitalize)

* use toggle props from definitelyTyped

* fix accidental commit

* Revert "introduce effective timeout in actions async tests"

This reverts commit b7a59c19d6.

* generate complete schema for both 'default' and 'backend' sessions

* Apply suggestions from code review

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* remove unnecessary import, export Toggle as is

* update session variable in tooltip

* 'x-hasura-use-backend-only-permissions' variable to switch

* update help texts

* update docs

* update docs

* update console help text

* regenerate package-lock

* serve no backend schema when backend_only: false and header set to true

- Few type name refactor as suggested by @0x777

* update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* fix a merge bug where a certain entity didn't get removed

Co-authored-by: Marion Schleifer <marion@hasura.io>
Co-authored-by: Rishichandra Wawhal <rishi@hasura.io>
Co-authored-by: rikinsk <rikin.kachhia@gmail.com>
Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
2020-04-24 14:40:53 +05:30
Rishichandra Wawhal
2e7e54fc2e
console: preserve the returning field set in a derived action (#4530) 2020-04-23 18:27:42 +05:30
Aleksandra Sikora
447aac3692
console: allow adding post-update checks in update permissions (close #4142) (#4313) 2020-04-22 17:55:10 +05:30
ryo
ae11e9b557
console: migrate checkbox, icon and radio button to TypeScript (#4373) 2020-04-22 16:47:10 +05:30
Rikin Kachhia
20c3beeea0
console: prevent trailing spaces while creating new role (close #3871) (#4497) 2020-04-21 21:36:21 +05:30
Rikin Kachhia
a9bca2383f
console miscellaneous fixes (#4433)
* format row count in data browser for readablity
* move pre-release notification tooltip msg to top
* remove extra localPresets key from migrations (close #3976)
* make nullable and unique labels for columns clickable in insert and modify
* fix row delete for relationships in data browser
2020-04-21 18:41:44 +05:30
Aleksandra Sikora
386786f57c
console: fix columns reordering for relationship tables in data browser (#4483) 2020-04-21 16:46:24 +05:30
Jigyasu Arya
e991180f43
console: change react ace editor theme to eclipse (close #4437) (#4443) 2020-04-20 18:12:45 +05:30
ShahAnuj2610
bf719cbf34
console: surround string type column default value with quotes (close #4371) (#4423) 2020-04-17 21:32:13 +05:30
Aleksandra Sikora
550de3e8a0
console: add possible undefined check (#4445) 2020-04-17 11:58:47 +05:30
Rishichandra Wawhal
8a5cc73ae6
cli, console: actions dx improvements (close #4306, #4311) (#4308) 2020-04-16 13:40:47 +05:30
Aleksandra Sikora
72b2301bc0
console: persist page size in data browser (#4323) 2020-04-15 20:38:37 +05:30
Rakesh Emmadi
dc31b835e1
allow reusing Postgres scalars in custom types & actions (close #4125) (#4333)
* allow re-using Postgres scalars in custom types, close #4125

* add pytest tests

* update CHANGELOG.md

* add a doc pointer for reusable postgres scalars

* document the code, improve the CHANGELOG entry

As suggested by @lexi-lambda

* a bit more source code documentation, use WriterT to collect reused scalars

* Apply suggestions from code review

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* improve doc for Postgres scalars in custom graphql types

* Add some more references to Note; fix Haddock syntax

Also a few very minor tweaks:
  * Use HashSet instead of [] more pervasively
  * Export execWriterT from Hasura.Prelude
  * Use pattern guards in multi-way if
  * Tweak a few names/comments

* Pull buildActions out of buildAndCollectInfo, use buildInfoMap

* Tweak wording in documentation

* incorporate changes in console code

* account Postgres scalars for action input arguments

-> Avoid unnecessary 'throw500' in making action schema

* Review changes

Co-authored-by: Marion Schleifer <marion@hasura.io>
Co-authored-by: Alexis King <lexi.lambda@gmail.com>
Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
Co-authored-by: Aleksandra Sikora <ola.zxcvbnm@gmail.com>
2020-04-15 17:33:13 +05:30
Ali Oğuzhan Yıldız
dfc1f98e61
console: convert theme files to typescript (#4325) 2020-04-15 13:49:52 +05:30
ShahAnuj2610
cba85cd4a8
console: redirect to /:table/browse from /:table (close #4330) (#4374) 2020-04-13 19:52:32 +05:30
Rishichandra Wawhal
61d58906e7
console: recover from SDL parse in actions type definition editor (fix #4385) (#4389) 2020-04-13 18:22:07 +05:30
Rishichandra Wawhal
9b66724b41
console, cli, cli-ext: query support for actions (close #4032) (#4318)
Co-authored-by: Aravind Shankar <aravind@hasura.io>
2020-04-13 15:51:53 +05:30
Rikin Kachhia
c08171ac89
console: set coookie policy for API calls to same-origin (#4336) 2020-04-09 16:03:29 +05:30
Aleksandra Sikora
f615efd37d
console: decouple row fetch and count queries in data browser (close #3793) (#4269) 2020-04-07 16:47:13 +05:30
Aleksandra Sikora
b1f8b656a7
console: set allow-js compiler flag for type checker (#4290) 2020-04-06 20:19:35 +05:30
Aleksandra Sikora
141f2afb01
console: fix linter config (#4137) 2020-04-06 16:53:04 +05:30
Aleksandra Sikora
ec56b0160b
console: persist columns order / collapsed state in data browser (close #3390) (#3753) 2020-04-06 16:03:45 +05:30
Rikin Kachhia
74b32fc9b8
console: keep entire graphiql in the viewport (#4286) 2020-04-04 19:19:21 +05:30
Rishichandra Wawhal
2b2145d024
console: persist derived action name after create (#4272) 2020-04-03 17:37:14 +05:30
Rikin Kachhia
7060997660
console: fix clone permission migrations (close #3985) (#4277) 2020-04-03 14:39:03 +05:30
Rishichandra Wawhal
8bcff193d9
console: allow customising graphql field names for columns of views (close #3689) (#4255) 2020-04-02 13:51:56 +05:30
Karthikeyan Chinnakonda
54dd3c94b9
include postgres version of the database while sending telemetry data (#4122)
* add new column "pg_version" while sending telemetry data

* make a new type for PGVersion and use serverVersion func

* define runTxIO action to run transaction(which exits on error)

Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
2020-04-01 20:44:26 +05:30
Rikin Kachhia
88b29e37ab
console: fix rendering object values in data browser (#4264) 2020-04-01 17:40:09 +05:30
Rishichandra Wawhal
0abb6c275e
console: allow customising root fields of single row mutations (close #4203) (#4254) 2020-03-31 19:11:30 +05:30
Rikin Kachhia
8bd7f70818
console: fix computed field permission selection (#4246) 2020-03-31 12:57:08 +05:30
Gabriel Sobrinho
6056dfa560
console: fix json string rendering in data browser (close #4201) (#4221) 2020-03-30 21:01:49 +05:30
ryo
7a443ce3a3
console: handle long column names in event trigger update columns (close #4123) (#4210) 2020-03-30 20:08:29 +05:30
Phil Freeman
4ce4eb1d2f
Remove any outstanding hdb_views (fixes #3940) (#3965) 2020-03-26 15:42:33 -05:00
Gabriel Sobrinho
b53533c381
console: disable selecting roles without permissions for bulk actions (close #4178) (#4195) 2020-03-26 21:13:34 +05:30
Rikin Kachhia
84c6b00c84
console: show remote shema / event trigger intro sections always (#4044) 2020-03-26 18:45:37 +05:30
Rakesh Emmadi
fd6535b861
option to reload remote schemas in 'reload metadata' (fix #3792, #4117) (#4141)
* option to reload remote schemas in 'reload_metadata' API, fix #3792, #4117

* add tests

* update changelog

* update docs api reference for 'reload_metadata'

* send reload_remote_schemas: true with the reload_metadata query

* add reload remote schemas checkbox; minor refactor

* Add a Note about cache invalidation and inconsistent metadata objects

* Small pluralization agreement tweak in docs

* Remove duplicated line in CHANGELOG

* no-op refactor

Suggested by Alexis @lexi-lambda

* Update server/src-lib/Hasura/RQL/DDL/RemoteSchema.hs

As suggested by @lexi-lambda

Co-Authored-By: Alexis King <lexi.lambda@gmail.com>

* fix tests

* requested changes

* comment 'replaceMetadataToOrdJson' unit tests

Co-authored-by: Rishichandra Wawhal <rishi@hasura.io>
Co-authored-by: Alexis King <lexi.lambda@gmail.com>
Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
2020-03-26 17:22:20 +05:30
Aleksandra Sikora
94b3550d15
console: fix passing default value to JsonInput (#4175) 2020-03-25 17:44:42 +05:30
Rishichandra Wawhal
ac9e1b90d4
console shared modules: fix parsing of wrapped types in SDL (close #4099) (#4167) 2020-03-25 15:17:29 +05:30
Aleksandra Sikora
0a1f83c3ec
console: revert table style changes (#4149) 2020-03-20 15:21:28 +05:30
Rishichandra Wawhal
2a24b660cd
console: misc actions fixes (#4059) 2020-03-19 22:14:14 +05:30
Rishichandra Wawhal
1155807b7a
console: action relationship page improvements (fix #4062, #4130) (#4133) 2020-03-19 18:32:52 +05:30
Rikin Kachhia
3c6e1a39e8
console: unique filenames for exported metadata (close #1772) (#4106)
Generate metadata filenames such as: hasura_metadata_2020_03_13_18_10_31_711.json
2020-03-18 20:27:18 +05:30
Jigyasu Arya
e93179fae0
console: add design system base ui components (#3866) 2020-03-18 17:52:29 +05:30
Aleksandra Sikora
bd74ecfdb0
console: upgrade eslint and change eslint parser (#4131) 2020-03-18 14:29:15 +05:30
Aleksandra Sikora
3dc5e04d4e
console: install typings from DT (#4107) 2020-03-16 16:40:42 +05:30
Rikin Kachhia
4064cd2db6
console: track runtime errors (#4083) 2020-03-13 13:22:06 +05:30
Aleksandra Sikora
315c399ba3
console: add dropdown for enum fields in insert/edit row pages (close #3748) (#3810) 2020-03-12 00:02:26 +05:30
Rishichandra Wawhal
029bda1bd3
console: disable renaming action relationships (#4072) 2020-03-11 22:10:46 +05:30
Aleksandra Sikora
36c92db991
console: add multi select in browse rows to allow bulk delete (close #1739) (#3735) 2020-03-11 18:55:36 +05:30
Aleksandra Sikora
71240f310d
console: manage postgres check constraints (#3881)
* Add check constraints to create table view

* Add input field for check in new column row

* Minor changes

* Remove check input field

* Add tooltip

* Move tooltips to Common/

* Refactor tooltips

* Move expandedContent to separate component

* Add quotation marks for constraint name

* update changelog

* Revert "update changelog"

This reverts commit 6e6e4835d9.

* update changelog

* Update CHANGELOG.md

Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: rikinsk <rikin.kachhia@gmail.com>
2020-03-11 17:50:52 +05:30
Meera Sundar
e49655e75b
console: fix run_sql migration modal messaging (close #4020) (#4060) 2020-03-09 14:50:10 +05:30
Rishichandra Wawhal
52d3979f92
console: update actions intro image (#4042) 2020-03-06 16:54:17 +05:30
Rishichandra Wawhal
e64bb8956f
console: hide starter kit button if a framework has no starter kit (#4023) 2020-03-06 13:25:21 +05:30
Rikin Kachhia
901c33079b
console: add TypeScript setup (#3902) 2020-03-05 15:01:32 +05:30
Praveen Durairaju
865b150c82
noop: replace subdomain links with subpath (#3869)
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
2020-02-27 15:43:07 +05:30
Aravind Shankar
bb63d7e60e
cli: allow managing actions (#3859)
Co-authored-by: Rishichandra Wawhal <rishichandra.wawhal@gmail.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Aravind <aravindkp@outlook.in>
Co-authored-by: Anon Ray <ecthiender@users.noreply.github.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-02-24 21:44:46 +05:30
Rikin Kachhia
2921a56808
fix new release notification logic (#3930) 2020-02-24 16:14:57 +05:30
Rishichandra Wawhal
6b8c7eff67
console: add actions support (#3889) 2020-02-19 15:29:20 +05:30
Rikin Kachhia
ff3ac78d8f
console: show pre-release update notifications with opt out option (#3888) 2020-02-18 15:05:06 +05:30
Phil Freeman
f615abd2f2
Add check expresion to update permissions (close #384) (#3804)
* Add check expresion to update permissions (close #384)

* wip on conflict behavior

* Handle upserts for views properly

* Use insert check if there is no update check

* Fix the test

* Improve error message slightly

Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
2020-02-13 13:08:49 +05:30
Rikin Kachhia
4b78884d36
handle invalid keys in permission builder (close #3848) (#3863)
* handle non-existent column names
* handle invalid _exist operator expression keys
* handle non-array values for _and/_or operators
2020-02-12 14:45:26 +05:30
Aleksandra Sikora
f834f6b0d8
handle missed edge-cases introduced in #3041 (#3837) 2020-02-05 18:39:59 +05:30
Philippe MARTIN
70e1b771e0
accept query params for filter/sort in browse table page (close #833) (#3041) 2020-02-05 16:00:47 +05:30
Anon Ray
c6e34baad8
fix parsing JWK expiry time from headers on startup (fix #3655) (#3779) 2020-02-05 12:37:30 +05:30
Rikin Kachhia
916ccc2e2f
console: permission builder fixes (#3823)
* allow manually editing permissions (#1734)
* separate operators for json and jsonb column types
* allow null as valid JSON type
2020-02-05 00:33:06 +05:30
Isala Piyarisi
79f1603f13
console: handle create if not exists syntax for track table (close #3766) (#3816) 2020-02-03 15:45:06 +05:30
Rikin Kachhia
fca16b88ef
misc console fixes (close #3777, #3789) (#3813)
* handle string errors
* handle empty columns / computed fields in permissions (#3789)
* allow is_null for all operators (#3777)
2020-02-01 09:59:38 +05:30
Rishichandra Wawhal
405d6450f9
console: replace graphiql fork with pkg + update explorer + replace uglify with terser (#3073) 2020-01-31 17:24:19 +05:30
Rikin Kachhia
ce547dc341
console: misc bug fixes (#3733)
* handle undefined headers configuration for event triggers
* save SQL to localStorage after execution (to avoid it being lost in case page is closed without umounting)
* fix nested objects View bug in Browse rows in case nested objects are present in a separate * schema.
2020-01-21 17:13:36 +05:30
Aleksandra Sikora
edb17e8cbb use user friendly terms for filter operators in browse rows page (#3699) 2020-01-17 15:52:08 +05:30
Rikin Kachhia
9355436c43
handle uncategorized types in permission builder (close #3603) (#3712) 2020-01-17 14:32:17 +05:30
Karthikeyan Chinnakonda
f20fc80cfc pretty print json metadata file during export from console (close #3690) (#3694) 2020-01-14 16:32:01 +05:30
Rikin Kachhia
15b6347bb6
update console readme (#3691) 2020-01-13 15:05:16 +05:30
Rikin Kachhia
db6b2aa378
add computed fields support on console (close #3203 #3565) (#3522) 2020-01-13 12:41:30 +05:30
Rishichandra Wawhal
02d13ba164 run sql queries refactor (close #3543) (#3662) 2020-01-10 10:32:44 +05:30
Ashish Rao
6a4d643c8d add bigint id to frequently used columns (close #3524) (#3669) 2020-01-10 10:29:23 +05:30
Alexis King
d86a3d9501 Use fine(er)-grained dependency tracking when building permissions
This changes TableCoreCacheT to internally record dependencies at a
per-table level. In practice, this dramatically improves the performance
of building permissions: it makes it far, far less likely for
permissions to be needlessly rebuilt because some unrelated table
changed.
2020-01-08 16:45:54 -06:00
Rikin Kachhia
ed8bc49d02
update console pro popup content (#3660) 2020-01-08 13:14:25 +05:30
surendran82
7e95463406 console: add hasura pro info button (#3594) 2020-01-08 12:30:21 +05:30
Rikin Kachhia
dbfc9e2b8b
misc console improvements (#3435)
* persist rawSql content to LS
* handle cleanup of admin secret related persisted info if admin secret is removed
* show gql compatibility warning for invalid schemas and add to tooltip that types depending on the identifier will not be exposed over GraphQL
* display non trackable functions section even if there are no functions
* increase width of stack trace container on error page
* fix PG version fetch query
2020-01-07 14:51:41 +05:30
Ashish Rao
45533aec54 display postgres version in About page of console (close #3461) (#3611) 2020-01-02 11:28:46 +05:30
Rikin Kachhia
69179adb6d
add base code for console read only mode (#3466) 2019-12-30 17:22:20 +05:30
Alexis King
65eed04268
console: Bump dependencies to support Node v13.x (#3579) 2019-12-24 09:55:43 -06:00
Shahidh K Muhammed
7abe5dd744 merge branch 'release-v1.0' to master after stable release 2019-12-17 19:23:34 +05:30
Rikin Kachhia
ee9482ffc6
remove console feature version checks (#3494) 2019-12-17 18:03:17 +05:30
Rikin Kachhia
f0ddbc8420 fix feature compatibility version check expression (#3546) 2019-12-17 17:57:33 +05:30
Rikin Kachhia
280e084d38
add custom root fields section for views to console (#3532) 2019-12-16 18:18:54 +05:30
Rikin Kachhia
a9a6eea924
fix column edit migrations (close #3291) (#3441) 2019-12-06 16:27:42 +05:30
Rikin Kachhia
f4c0753deb
add read_only flag to run_sql select queries from console (#3465) 2019-12-05 17:24:14 +05:30
Rishichandra Wawhal
0019808c9b allow setting check constraints on existing tables from console (#3383) 2019-11-27 15:01:05 +05:30
ShahAnuj2610
d2046d8023 make cursor pointer on track and cascade checkboxes in console RawSQL (close #3276) (#3364) 2019-11-19 18:01:39 +05:30
Rikin Kachhia
c05ebf8cde
fix console data hydration query (close #3342) (#3361) 2019-11-15 20:34:10 +05:30
Anne Ogborn
dc1748b539 display untrackable functions on schema page (close #2249) (#2773) 2019-11-15 20:23:57 +05:30
Tirumarai Selvan
3cad1319c4 improve event fetch query (#3236) 2019-11-13 12:59:19 +05:30
Rikin Kachhia
bd3eeed9fc
update console error page image paths (#3340) 2019-11-12 19:15:26 +05:30
Rikin Kachhia
689c97e9a1
improve migration detection logic in Raw SQL page (close #3266) (#3306) 2019-11-11 14:25:10 +05:30
Rikin Kachhia
4178230d93
get user confirmation before executing 'Track All' in console (close #3318) (#3323) 2019-11-08 19:32:44 +05:30
ap
5832adae73 escape params in console data section routes (close #3164) (#3275) 2019-11-07 17:54:23 +05:30
Rishichandra Wawhal
3a07b2b0cf handle table configuration defaults in console (fix #3313 #3314 #3316) (#3317) 2019-11-07 08:27:27 +05:30
Rishichandra Wawhal
a1a851b3d1 support customising GraphQL fields from console (#3175) 2019-11-06 20:00:00 +05:30
Rikin Kachhia
d17068eb24
show only tracked tables during event trigger creation in console (close #3225) (#3227) 2019-11-05 16:27:28 +05:30
Shahidh K Muhammed
a9107a2fc3 console (make): fix gcs bucket name (close #3026) (#3260) 2019-10-28 12:15:16 +05:30
Rikin Kachhia
a8fe0b6619
fix computed fields variable name in console (#3196) 2019-10-22 11:33:06 +05:30
Rikin Kachhia
8000652a5d
fix console test environment (#3192) 2019-10-22 11:28:35 +05:30
Rikin Kachhia
68a724f3c7
put computed fields console changes behind version check (#3190) 2019-10-21 13:07:29 +05:30
Rishichandra Wawhal
d14300e9c9 generate migrations for replace metadata (close #2996) (#2999) 2019-10-18 18:53:55 +05:30
Rakesh Emmadi
d8d21c1487 support computed fields returning scalars or set of tables (close #1387) (#2917) 2019-10-18 13:59:47 +05:30
Rishichandra Wawhal
d82c6d464f fix telemetry notification display (#3166) 2019-10-17 18:18:28 +05:30
Rishichandra Wawhal
2e93abd6a9 display table check constraints in console (close #2898) (#3086) 2019-10-16 21:24:27 +05:30
Rishichandra Wawhal
86ab64232d fix setting new role name when perm edit is open (closes #2682) (#2997) 2019-10-15 18:49:23 +05:30
Rikin Kachhia
61d6610ed6
fix console row edit behaviour (close #3121) (#3133)
* handle unmodified fields
* handle setting default value
2019-10-15 15:13:10 +05:30
Rikin Kachhia
bb8880d09a
fix console README and isProduction check while setting globals (#3076) 2019-10-09 19:23:21 +05:30
Rishichandra Wawhal
d3f80265f5 update graphiql explorer in hasura console and graphiql online (closes #2313) (#2994)
* update graphiql explorer

* update onegraph explorer in graphiql online
2019-10-08 16:17:18 +05:30
Rishichandra Wawhal
5ced530ccd separate server and cli env variables in console local dev (#2937) 2019-10-08 15:53:01 +05:30
Rikin Kachhia
0fc70cd242
allow only tracked tables in manual relationship definition in console (#3046) 2019-10-08 13:45:05 +05:30
Kirankumar Ambati
3d4f28551d fix console lint issues, code formatting (#3028) 2019-10-07 17:51:02 +05:30
Kirankumar Ambati
0beb27a1de updated heroku url property in console readme (#2957) 2019-09-30 15:20:13 +05:30