Commit Graph

454 Commits

Author SHA1 Message Date
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
Kirankumar Ambati
0bf1d9ac83 fix typos (#2935) 2019-09-27 12:36:08 +05:30
Rishichandra Wawhal
1d1de94303 better key persistence in console (#2686)
* change login flow to handle admin secret persistence

* handle headers init state

* add tooltip for remember-me

* remove log, make label clickable

* fix a closure scope bug

* handle login verification at route level

* update Login.js

* refactor

* remove extra file

* refactor

* add id to tooltips

* remove adminsecretlabel + update admin secret storage flow

* fix heartIcon close handling

* .

* fix admin secret setting

* fix urlPrefix

* add admin secret header if not present

* update jwt analyzer icon

* persist if admin secret header has already been added

* set cli console mode as constant

* handle CLI admin secret errors

* make separate logout page

* fix typos

* fix typos

* fix typos

* fix typos

* fix cli error

* fix login page path
2019-09-25 21:16:28 +05:30
Alexis King
eb0c1f6642 fix console server-build script (#2790) 2019-09-24 18:42:24 +05:30
Rikin Kachhia
ddf27c1768
add console support for exists operator in permissions (close #2837) (#2878) 2019-09-23 17:23:12 +05:30
Rikin Kachhia
9f59e32240 update console telemetry config (#2899) 2019-09-18 12:25:29 +05:30
Marion Schleifer
480b34ea5e fix typos in documentation (#2562) 2019-09-11 12:47:14 +05:30
IMRAN KHAN
1487cc1d26 make destructive actions on console require typed out confirmation (close #1469) (#2400) 2019-09-10 20:32:04 +05:30
Rikin Kachhia
eea1e33d19
fix console insert/edit row glitches (close #2840, #2665) (#2843) 2019-09-09 19:37:26 +05:30
Rishichandra Wawhal
c343361f02 fix remote schema headers configuration in console (#2847) 2019-09-09 13:57:07 +05:30
Ben Kimpel
0c0a2d6288 handle "without time zone" dateTime types in permissions builder (close #2842) (#2844) 2019-09-07 01:00:25 +05:30
Rikin Kachhia
47fb329090
update enums docs (#2813) 2019-09-03 19:47:36 +05:30
Rishichandra Wawhal
5dfe3b86f2 add console support for setting table as enum (close #2767) (#2789) 2019-08-30 18:47:51 +05:30
rikinsk
78ca9f38a7 apply radio btn selection logic to insert item also 2019-08-29 15:31:40 +05:30
Alireza Ahmadi
ae97c36c9d fix issue with editing boolean fields (fix #2536) 2019-08-29 00:39:08 +04:30
Kirankumar Ambati
185292cd2a fix typo in console (#2527) 2019-08-28 13:31:40 +05:30
Rikin Kachhia
4bdf965d87
fix table permissions page UX glitches (#2763) 2019-08-23 18:04:41 +05:30
Tirumarai Selvan
98784212e2 allow configuring timeout for remote schema calls (close #2501) (#2753) 2019-08-23 14:27:19 +05:30
Rikin Kachhia
db0578843e
update console error pages image (#2762) 2019-08-21 16:54:12 +05:30
Rikin Kachhia
03ea997c3b
add schema permissions summary page + update table permissions page (#2693)
Schema permissions summary page

* show summary of access control for all roles across tables and actions
* allow copy of permissions from one role to others

Table permissions page

* highlight actions and roles as headers in table
* move bulk action selector to end of row
* scroll to edit/bulk section when opened
* pre-select table and action in clone section
2019-08-20 19:12:15 +05:30
Rikin Kachhia
47057989af
set console asset version as build timestamp (#2742) 2019-08-19 14:40:41 +05:30
Marion Schleifer
ffbdabf2d0 open secure-your-endpoint docs in new tab from console (#2709) 2019-08-13 12:09:47 +05:30
Rikin Kachhia
18822ded9a
update styles of data tables in console for better readability (#2629)
* add row striping
* reduce row vertical padding
* column widths based on content
* table width based on content
* handle display of data represented as objects (e.g. jsonb, geaography)
* display data with correct formatting in row expanded mode
* show pagination section even if numRows < page size
* hide filter/sort/pagination sections for object relationship
2019-08-09 16:27:44 +05:30
Rikin Kachhia
c79385864d
escape PG comment strings in console to allow quotes (close #2641) (#2676) 2019-08-09 16:21:05 +05:30
Rikin Kachhia
01e71ca896
enable only normal and multiline inputs for text column editing (#2684) 2019-08-07 18:42:06 +05:30
Vamshi Surabhi
a5a07634a5
Merge branch 'master' into dev-scripts-and-doc-tweaks 2019-08-07 12:08:46 +05:30
Rishichandra Wawhal
e92ffcf440 refactor console codebase with customResolver -> remoteSchema (#2670) 2019-08-06 14:30:30 +05:30
Josha Inglis
d19491ce54 improve console logic for view updatability check (fix #2667) (#2668) 2019-08-05 13:35:37 +05:30
Rikin Kachhia
19069c2c2b
show proper console notifications for errors in db schema load & metadata reload 2019-08-02 18:13:10 +05:30
Rikin Kachhia
c1d4f76c1f
allow adding frequently used columns from table modify page (close #2545) (#2593) 2019-08-02 14:01:30 +05:30
IMRAN KHAN
4aef5b4c26 add About page to console to show versions info (#2334) 2019-07-29 19:45:39 +05:30
Rikin Kachhia
e3f68dbb67
add support for column comparision operators in permissions builder (close #2040) (#2606) 2019-07-29 14:58:27 +05:30
Rikin Kachhia
b9a88d509d
allow using citext columns in row permission builder (#2622) 2019-07-29 14:50:27 +05:30
Rikin Kachhia
47792f85b0
fix radio btn selection on data input in edit row page (close #2595) (#2600) 2019-07-26 13:16:49 +05:30
Rikin Kachhia
e9b5c4f5e4
show error stack trace on console error page for easier bug reporting (close #2598) (#2597) 2019-07-26 13:08:59 +05:30
Brandon Simmons
57ad9c2f20 Don't keep gzipping gzipped versioned assets 2019-07-26 01:17:56 -04:00
Aravind Shankar
4405bac577 show warning for tables, columns, relationships which do not conform to GraphQL naming scheme (close #212) (#2422) 2019-07-24 20:11:18 +05:30
Rikin Kachhia
3445de3630
update console UI for RawSQL page / Migration page / Notifications (#2563) 2019-07-24 12:57:00 +05:30
Anne Ogborn
7a683324f2 add multiline and rich editing to text fields (close #458) (#2498) 2019-07-22 15:17:31 +05:30
Rishichandra Wawhal
012a2cd1d6 allow adding frequently used columns while creating tables + show table triggers on modify page (closes #1462) (#2240) 2019-07-15 17:02:56 +05:30
Rikin Kachhia
5e4a1f4f94
fix column valid typecasts logic in console (close #2519) (#2543) 2019-07-15 16:59:06 +05:30
Rishichandra Wawhal
ece9a2dc83 fix re-introspection on header change in console graphiql (#2522) 2019-07-15 15:08:52 +05:30
Khoa Nguyen
2259d77b05 handle missing columns in permission rules (fix #2506) (#2507) 2019-07-11 17:19:06 +05:30
Vamshi Surabhi
f1cf6d0b17
allow session variables in operators which expect array input (#2475) 2019-07-10 15:49:58 +05:30
Rishichandra Wawhal
f97fb45bfd fix multiple introspection queries (#2492) 2019-07-09 23:47:05 +05:30
Aravind Shankar
7356f59655 handle table with no columns in console (close #2481) (#2484) 2019-07-08 20:01:15 +05:30
Rakesh Emmadi
9eb38e6c96 cache remote schema's introspection query response (fix #1679) (#2089) 2019-07-08 11:21:41 +05:30
Rikin Kachhia
e404320e17
fix console license (#2470) 2019-07-04 14:57:35 +05:30
Alexis King
fb3794c31a Support Node v12.x and fix tests on macOS (#2455)
* Bump node-sass to version ^4.12.0

This avoids sass/node-sass#2632, which causes compilation failures on
Node v12.x.

* Do most of the work in /pg_dump in Haskell instead of shell

The shell version caused problems on non-Linux systems since it relied
on the non-POSIX -i option for sed, which works slightly differently on
BSD and macOS.
2019-07-03 14:07:13 +05:30
Rishichandra Wawhal
bdb415b386 use server version from console html (#2464) 2019-07-03 13:55:29 +05:30
Aravind Shankar
0aefbd0822 infer relationship type using uniqueness constraint of foreign key (close #969) (#2347) 2019-07-02 19:05:27 +05:30
Aravind Shankar
2b616afd97 fix relationship page error if array fk relationship exists with table in another schema (#2459) 2019-07-02 18:37:28 +05:30
Rikin Kachhia
baeffc2a7a
fix type placeholders in console insert/edit row (#2460) 2019-07-02 18:35:52 +05:30
Anne Ogborn
63ad2c4fc5 change default type placeholder from 'text' to type (fix 2394) (#2458) 2019-07-02 18:03:37 +05:30
Anne Ogborn
9a6e9dfad5 refactor AddTable validation on console (close #1712) (#2408) 2019-07-02 11:30:48 +00:00
Aravind Shankar
35230cb091 fix to show error notification when run sql fails in cli mode (close #2438) (#2446) 2019-06-28 18:04:30 +05:30
Aravind Shankar
c85986c922 fix browse rows query error handling + boolean filter value (close #2421) (#2440) 2019-06-28 16:07:16 +05:30
Anne Ogborn
6576204c66 add new column row during add table only after completed prev column def (#2428) 2019-06-26 19:54:30 +05:30
Aravind Shankar
c17bf2f94b create down migration when a column is dropped (close #2291) (#2385) 2019-06-26 18:42:44 +05:30
Aravind Shankar
03f0d4edaa change browse rows action buttons heading id (close #2403) (#2413) 2019-06-20 16:53:39 +05:30
Aravind Shankar
a40709dc4a clear header state for remote-schema (close #2396) (#2401) 2019-06-20 16:24:28 +05:30
Aravind Shankar
5053b1ecd8 add graphql-voyager to console (close #314) (#2369) 2019-06-20 16:00:29 +05:30
Karthik Venkateswaran
8fb81e7f7a fix postgres query to fetch pg_types default functions (close #2399) (#2402) 2019-06-20 12:37:16 +05:30
Karthik Venkateswaran
93a7c2c734 suggest column default values (#2352) 2019-06-18 23:03:54 +05:30
Rikin Kachhia
00e911e3cd
update table rename handling (#2393) 2019-06-18 23:00:56 +05:30
Rikin Kachhia
4ce2b2cc3b
update console dev logging + add logging disable instructions to README (#2388) 2019-06-18 12:14:29 +05:30
IMRAN KHAN
d6a071bd83 render 404 for nonexistent resources (#2341) 2019-06-17 12:17:27 +05:30
Anne Ogborn
034c550ccd enable add/modify/delete for event triggers and remote schemas in disabled migration mode (fix #1875) (#2366) 2019-06-13 17:08:25 +05:30
Aravind Shankar
938921eed5 set console subscriptions protocol based only on graphql endpoint (close #2330) (#2374) 2019-06-13 15:27:01 +05:30
Shahidh K Muhammed
a8dd3b3deb add api to get server config details (close #1831); add jwt-analyzer (close #1369) (#1925) 2019-06-11 18:59:03 +05:30
Aravind Shankar
be5316a984 support multi-column manual relationships from console (close #2007) (#2332) 2019-06-10 20:18:15 +05:30
Karthik Venkateswaran
0b3defd314 fix query to fetch list of postgres types, change filter (close #2314) (#2339) 2019-06-07 19:58:02 +05:30
IMRAN KHAN
de09c29003 change events success code from 200 to 2xx (close #2335) (#2342) 2019-06-07 18:12:32 +05:30
Rikin Kachhia
d1f0cf02a9
fix fk name generation (#2320) 2019-06-03 16:06:29 +05:30
Rakesh Emmadi
31cf7314e2 better change detection when altering foreign key constraints (fix #2060) (#2252)
foreign keys are considered to be dropped only if constraint oid changes
2019-06-03 15:51:55 +05:30
Rikin Kachhia
04fa165059
fix console bugs (#2309)
* fix permissions bug
* fix insert/edit rows
* fix error on deleting unique column (close #2306)
2019-06-01 02:15:35 +05:30
IMRAN KHAN
17b5dc0e9c fix head to home console error from error page (#2304) 2019-05-31 17:57:49 +05:30
Aravind Shankar
f9fc0cc5e3 fix console schema update quirks (#2286) 2019-05-29 19:44:21 +05:30
Rikin Kachhia
7ab9d5eaeb update console favicons to png (#2287) 2019-05-29 10:03:29 +05:30
Rishichandra Wawhal
cd060025a1 quote SQL appropriately while modifying PK (#2289) 2019-05-28 22:10:41 +05:30
Rikin Kachhia
f65a2b59b0
update console feature support checks (#2202) 2019-05-28 13:41:08 +05:30
Aravind Shankar
0957a43563 fix loadSchema to fetch currentSchema if schemas is empty (#2283) 2019-05-27 20:07:51 +05:30
IMRAN KHAN
13a0427614 fix breadcrumbs and pKey unique handling (#2281) 2019-05-27 19:48:30 +05:30
Aravind Shankar
3e814048cf optimize sql used to fetch schema information on console (fix #2273) (#2280) 2019-05-27 18:19:34 +05:30
Rikin Kachhia
b7396f79b1
fix console logging (#2268) 2019-05-25 13:28:28 +05:30
Aravind Shankar
e0a0e3a872 fix handling tables with capitals in name (close #2266) (#2267) 2019-05-25 13:12:21 +05:30
Anupam Dagar
71557cdecc add json editor for json data type (fix #504) (#1181) 2019-05-24 20:40:39 +05:30
Aravind Shankar
2cdb1a1508 refactor schema management in console and misc fixes (#2016)
close #1704, #2174, #2188, #2006, #2031, #1617, #1882
2019-05-24 19:30:44 +05:30
Karthik Venkateswaran
8639534aa4 handle empty recommended type casts for some pg types (close #2258) (#2262) 2019-05-24 13:47:47 +05:30
Karthik Venkateswaran
8a9901d417 add all PG column types in table add / modify (close #223, #2035, #394, #2038) (#1933) 2019-05-22 16:53:30 +05:30
Rishichandra Wawhal
9940ae1992 update modify table tests (#2245) 2019-05-22 12:08:32 +05:30
Rishichandra Wawhal
3ef1219fa0 change default endpoint to v1/graphql; remove semver checks (#2181) 2019-05-16 14:38:44 +05:30
Shahidh K Muhammed
76ceb707f4
bundle console assets into server (close #516, close #521, close #2130) (#2192)
This PR builds console static assets into the server docker image at `/srv/console-assets`. When env var `HASURA_GRAPHQL_CONSOLE_ASSETS_DIR=/srv/console-assets` or flag `--console-assets-dir=/srv/console-assets` is set on the server, the files in this directory are served at `/console/assets/*`.

The console html template will have a variable called `cdnAssets: false` when this flag is set and it loads assets from server itself instead of CDN.

The assets are moved to a new bucket with a new naming scheme:

```
graphql-engine-cdn.hasura.io/console/assets/
   /common/{}
   /versioned/<version/{}
   /channel/<channel>/<version>/{}
```

Console served by CLI will still load assets from CDN - will fix that in the next release.
2019-05-16 13:15:29 +05:30
Rakesh Emmadi
0b210cc245 support allow-list for graphql queries (closes #989) (#2075) 2019-05-16 11:43:25 +05:30
Rikin Kachhia
d6995c3547
add schema create/delete options in console (closes #2142) (#2143) 2019-05-15 19:30:44 +05:30
Rishichandra Wawhal
5c07ebc512 support composite unique keys from the console (close #506) (#2148) 2019-05-15 16:59:09 +05:30
Rishichandra Wawhal
5a8a34b8cf fix column comment handling in modify (fix #2164) (#2187) 2019-05-15 13:35:29 +05:30
Tirumarai Selvan
36e49ea75b manual event triggers (close #1687) (#2077) 2019-05-13 15:11:07 +05:30
Rikin Kachhia
0bb96883d6
fix function table permission url (#2152) 2019-05-10 12:53:08 +05:30
Rishichandra Wawhal
a0bed89283 fix relationship rename for non-public schemas (close #1777) (#2127) 2019-05-07 17:54:44 +05:30
Rikin Kachhia
5b9e99acd3 sanitize migration filenames (close #2094) (#2123) 2019-05-07 11:40:38 +05:30
Rikin Kachhia
b24456788c
fix set column as unique bug (close #2096) (#2108) 2019-05-03 13:10:27 +05:30
Rikin Kachhia
c87940ae42
fix console expandable editor styles (#2111) 2019-05-03 13:09:33 +05:30
Rikin Kachhia
87bc39c9e9
restructure console files (#2078) 2019-04-26 16:41:52 +05:30
Rikin Kachhia
b61f54b086
change position of constraint names in table modify (#2069) 2019-04-26 13:39:09 +05:30
Rikin Kachhia
ed3e9caf2f
fix console bugs (close #2030, #2032, #226) (#2044)
* fix timestamp column shown as text in modify section
* fix foreign key update bug in case of capital letters in name
* show column type, default value, constraint names as properties in modify section
* display disabled action btns in browse rows if no primary key set
* add tooltips to event trigger / remote schema try it out examples
2019-04-24 13:05:05 +05:30
John Bampton
91f4d7b5e2 change Github to GitHub at multiple places (#2046) 2019-04-23 15:39:28 +05:30
Vamshi Surabhi
b714923ffb fix typo in the field name for accessing headers (#2026)
The diff says it all
2019-04-18 00:19:50 +05:30
Rakesh Emmadi
1d7cbc7f24 recover from inconsistent database state (closes #231) (#1863) 2019-04-17 21:59:39 +05:30
Rishichandra Wawhal
393110420d fix fk bug in non-public schemas (#2010) 2019-04-15 21:44:57 +05:30
Rikin Kachhia
5626a30f8d
refactor permissions types handling (#2009) 2019-04-15 18:57:37 +05:30
Rikin Kachhia
ef00e5f8f3
persist explorer / endpoint / headers collapsed state in ApiExplorer (#1992) 2019-04-15 18:57:07 +05:30
Rishichandra Wawhal
e94ee34017 make console function fetchTableListBySchema reusable (#2008) 2019-04-15 16:04:26 +05:30
Karthik Venkateswaran
bf3cf7ff8e fix webhook url edit for event triggers (#1987) 2019-04-11 13:32:11 +05:30
Rikin Kachhia
86192511a4
show default values as placeholder during insert row (#1985) 2019-04-10 19:16:32 +05:30
Rikin Kachhia
605ecda832
handle permission api shorthands in console (#1986) 2019-04-10 19:15:53 +05:30
Rikin Kachhia
b316bf60cb
optimise introspection query calls (#1971) 2019-04-10 18:05:35 +05:30
Mathias Griffe
39135d0990 fix save function in console's retry config editor (fix #1975) (#1976) 2019-04-10 16:55:45 +05:30
Rikin Kachhia
c58acaf641
add placeholder for bool type fields while inserting rows (#1962) 2019-04-10 13:40:34 +05:30
Rikin Kachhia
6b3e544069
re-add same as other action options in permissions (#1970) 2019-04-09 19:12:50 +05:30
Rikin Kachhia
1a4f172f6e
update console permissions ui (#1924)
* Make permissions sections as collapsibles with tooltips
* Remove 'use same permission as select' type options from row permissions section
* Added clone section to apply same permission to any table-role-action
* Disable other subsections till row permissions are set
2019-04-09 17:25:02 +05:30
Rikin Kachhia
60b450b903
fix styles in browse rows, relationship and permission tables (#1969) 2019-04-09 17:22:12 +05:30
Rishichandra Wawhal
70cd78fec0 support composite foreign keys and primary keys through console (close #1707) (#1854) 2019-04-08 18:47:02 +05:30
Rishichandra Wawhal
c964c90a7b persist queries in GraphiQL (closes #1894) (#1903) 2019-04-03 19:43:09 +05:30
Anne Ogborn
44d6bb8b7e improve console error page (close #272) (#1890) 2019-04-03 19:08:17 +05:30
Rikin Kachhia
56c67509aa
update track relationship text in console (#1927) 2019-04-03 15:07:14 +05:30
Rikin Kachhia
1c6e962776
remove remote schema env var note (#1932) 2019-04-02 16:44:02 +05:30
Rikin Kachhia
b5188e79f4
update raw sql notes and tooltips (#1926) 2019-04-02 15:58:06 +05:30
Rikin Kachhia
e80a58faac
refactor some console components for readability (#1928) 2019-04-02 15:45:38 +05:30
Karthik Venkateswaran
8221653237 make graphiql api endpoint and request header sections collapsible (#1723) 2019-04-01 18:45:29 +05:30
Tirumarai Selvan
36781199d0 breaking: drop id from event_triggers table (fix #1840) (#1857) 2019-03-25 22:40:52 +05:30