Commit Graph

123 Commits

Author SHA1 Message Date
Aleksandra Sikora
b93da39b5c
console: fix remove column test (#5622) 2020-08-20 16:32:45 +02:00
Rikin Kachhia
d1032b2414
console: make add column UX consistent with others (#5486) 2020-07-30 22:54:20 +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
Gokul
b9918e0eac
console: allow configuring statement timeout on console RawSQL page (close #4998) (#5045) 2020-07-01 22:06:24 +02:00
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
soorajshankar
cb3252cf07
console: allow configuring session_argument for custom functions (close #4499) (#4922) 2020-06-11 14:38:32 +02:00
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
Rishichandra Wawhal
aaab6d3eb6
console: add scheduled triggers support (#4732) 2020-06-05 13:40:08 +05:30
Aleksandra Sikora
af0d4d8f08
console: replace remote schema url in tests (#4964) 2020-06-02 12:41:14 +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
Raj Anand
1b442fc2dd
console: migrate cypress tests to TypeScript (#4550) 2020-05-27 14:56:29 +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
Fadi Khadra
cd1c562073
console: allow modifying default value for PK (close #4075) (#4679) 2020-05-12 11:46:48 +05:30
Antoine Leblanc
66e18b7dee
console: support materialized views (close #91) (#4270) 2020-04-24 15:13: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
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
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
Anne Ogborn
dc1748b539 display untrackable functions on schema page (close #2249) (#2773) 2019-11-15 20:23:57 +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
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
Rikin Kachhia
4bdf965d87
fix table permissions page UX glitches (#2763) 2019-08-23 18:04:41 +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
Aravind Shankar
c17bf2f94b create down migration when a column is dropped (close #2291) (#2385) 2019-06-26 18:42:44 +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
Aravind Shankar
be5316a984 support multi-column manual relationships from console (close #2007) (#2332) 2019-06-10 20:18:15 +05:30
Aravind Shankar
f9fc0cc5e3 fix console schema update quirks (#2286) 2019-05-29 19:44:21 +05:30
Aravind Shankar
e0a0e3a872 fix handling tables with capitals in name (close #2266) (#2267) 2019-05-25 13:12:21 +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
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
5c07ebc512 support composite unique keys from the console (close #506) (#2148) 2019-05-15 16:59: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
Rakesh Emmadi
1d7cbc7f24 recover from inconsistent database state (closes #231) (#1863) 2019-04-17 21:59:39 +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
Rishichandra Wawhal
70cd78fec0 support composite foreign keys and primary keys through console (close #1707) (#1854) 2019-04-08 18:47:02 +05:30
Rikin Kachhia
da4ed1a808
fix console browse rows bugs (#1691) 2019-03-04 20:32:28 +05:30
Rakesh Emmadi
6c20ca8a55 allow renaming tables, columns and relationships (close #79) (#1542) 2019-03-01 14:47:22 +05:30
Rishichandra Wawhal
00227728cb add "*" for insert and delete columns when creating and modifying trigger (close #1629) (#1673)
This PR adds "*" as columns for insert and delete so that there are no column dependencies on event triggers and users can drop/modify columns whenever they want.

```
{
	"type": "bulk",
	"args": [{
		"type": "create_event_trigger",
		"args": {
			"name": "test",
			"table": {
				"name": "user",
				"schema": "public"
			},
			"webhook": "http://httpbin.org/post",
			"insert": {
				"columns": "*"
			},
                        "update": {
                               "columns": ["col1", "col2"] 
                       },
                       "delete": {
                               "columns": "*"
                       }
			"headers": []
		}
	}]
}
```
2019-03-01 11:13:10 +05:30
Rishichandra Wawhal
386ab81b96 make events and remote-schema tabs independent of update checker (#1604)
* fix a bug where update check request failure would stop remote-schemas and event triggers tab from loading

* update graphiql test for with and without admin secret

* remove dev data api url from localDev env
2019-02-17 17:14:52 +05:30
Rikin Kachhia
75674859b3
update console permissions (close #1503, #1529, #1567, #1470) (#1605)
* show roles from all tables/views in the schema
* show operators and set values based on field type in permission builder
* add support for jsonb and postgis operators in permission builder
* add note for permissions for relationships
* enable only one Save permissions button if apply to other roles is selected
2019-02-17 16:06:29 +05:30
nizar-m
f83a8e591f rename access-key to admin-secret (close #1347) (#1540)
Rename the admin secret key header used to access GraphQL engine from X-Hasura-Access-Key to X-Hasura-Admin-Secret.

Server CLI and console all support the older flag but marks it as deprecated.
2019-02-14 15:07:47 +05:30
Tirumarai Selvan
51dd6157e1 remove wreq and set response timeout (close #1477) (#1501) 2019-02-14 13:07:59 +05:30
Rakesh Emmadi
cba732d439 support column presets in update mutation (closes #1449, closes #1464) (#1473)
Also restricts altering type of columns which are used in presets
2019-02-11 18:15:30 +05:30
Rakesh Emmadi
0bf2457e23 allow exposing postgres functions through GraphQL interface (close #333) (#1073) 2019-01-25 09:01:54 +05:30
Rishichandra Wawhal
46fdfc998f auto-fill name while suggesting relationships (closes #1095) (#1437) 2019-01-24 09:40:21 +05:30
Rishichandra Wawhal
26a997208a fix console link on schema change (#1389) 2019-01-17 22:38:37 +05:30
Rishichandra Wawhal
00dc868f25 move schema dropdown to top-left (close #1092) (#1118) 2019-01-11 16:33:41 +05:30
Rishichandra Wawhal
9d8ac86269 enable updating event trigger from console (close #489) (#1124) 2018-12-17 17:37:58 +05:30
Rakesh Emmadi
3026c49087 apply update permissions for upsert mutations (#628) 2018-12-15 21:40:29 +05:30
Anon Ray
512ee6fb9f adds basic support for remote schemas/schema stitching (#952) 2018-11-23 18:32:46 +05:30
Tirumarai Selvan
317efb81f1 event triggers: take webhook url from env (close #966) (#968) 2018-11-14 12:43:01 +05:30
Rishichandra Wawhal
137ab673ef remove an unnecessary test from console (#681) 2018-10-09 14:55:03 +05:30
Peter McAree
936d4c7b85 metadata button appears for custom versions (fixe #618) (#662) 2018-10-09 14:05:44 +05:30
Varun Dey
b439d15725 fix typo in cypress readme (#651) 2018-10-05 15:25:49 +05:30
Karthik Venkateswaran
80a5f00ae4 fix failing tests on console (#650) 2018-10-05 15:10:00 +05:30
Aravind Shankar
79a6849241 add parallel tests and update dependencies (#374) 2018-09-08 23:01:14 +05:30
Tirumarai Selvan
82e09efce6 add event triggers (#329) 2018-09-05 16:56:46 +05:30
Praveen Durairaj
c645fc5c46 permissions ui/ux improvements (close #205) (#295)
- Delete role(s)
- Apply same type of permission to multiple roles

Closes #205
2018-08-22 13:55:48 +05:30
Rakesh Emmadi
9c55490e98 add limit in select permission which overrides limit in query (close #178) (#237) 2018-08-06 17:45:08 +05:30
Praveen Durairaj
2e58483af3 modify comments for tables/columns and views (#220)
* console: modify comments for tables/columns

* console: fix bugs, css

* console: update package.json

* console: fix comment
2018-07-30 19:09:18 +05:30
Aswin M Prabhu
7feb82ed98 add test for subscriptions, improve coverage (fix #191) 2018-07-25 12:14:27 +05:30
Rishichandra Wawhal
7ea67f207c add uuid column type in console (close #142) (#160) 2018-07-18 18:16:04 +05:30
ASWIN M PRABHU
c16e3ca949 improve tests for relationships (close #130) (#131) 2018-07-16 15:30:40 +05:30
Rishichandra Wawhal
3a085da736 testing console tests in the ci (#83)
* testing console tests in the ci

* console: making cypress wait for the server to start

* console: fixing failing tests

* console: update failing test

* console: cleaned up modify tests

* console: fixed a failing test for api-explorer
2018-07-11 17:32:29 +05:30
Praveen Durairaj
5a512481f9
console: add access key login, update messaging/tooltips (#65)
* console: add access key login

* console: update messaging/tooltips

* console: fix add relationship link

* console: updated test script

* console: update test command
2018-07-09 20:07:44 +05:30
Rishichandra Wawhal
d8d3bdd239 console: update tests (#63)
* console: modify getTableName() for parallel tests

* console: remove notification tests

* console: fix failing tests
2018-07-09 13:53:05 +05:30
Rishichandra Wawhal
25a45d3366 console: handle baseUrl in tests 2018-07-09 13:34:53 +05:30
aswinmprabhu
2cab15ede4 console: more tests (#35) 2018-07-04 18:27:56 +05:30
Rishichandra Wawhal
b2abc8b2c1 console: update tests for multiple modes
* console: fix create-table tests

1. Changed "Creating table failed" -> "Create table failed"
2. Updated cypress > plugins > index.js. It must export a function

* console: fix test for insert-browse

console: added a test for checking descending sort

* console: fix migration inconsistency in hdb mode

* console: fix tests for modify-table

* console: fix permissiosn tests

* console: fixed all tests

* console: updated the test workflow

* console: disabling video recording while testing

* console: taking migrate URL from env

* console: update readme, fixed typo
2018-07-03 12:47:08 +05:30
Praveen Durairaj
95aab89c01
console: fix migration status in hasuradb mode, ui fixes, deps update (#32) 2018-07-02 19:13:12 +05:30
Praveen D
b8bb2d652c add console to graphql-engine 2018-06-28 10:27:37 +05:30