Commit Graph

345 Commits

Author SHA1 Message Date
surendran82
ca5ccd7a59 fix console ui issues (close #1303) (close #1049) (close #1282) (#1330)
Fix and close #1303, #1049 and #1282
2019-01-08 10:44:21 +05:30
Rishichandra Wawhal
8134116750 determine api root from consolepath var on console (#1228)
* console determines data api url from console path

* update contributing instructions in README
2019-01-04 15:21:05 +05:30
Gagan Ganapathy
92ff16a605 persist headers in graphiql tab (close #275) 2019-01-04 12:11:11 +05:30
Aravind Shankar
7c5a5a2957 display table name for manual array relationship from view to table, fix #1292 (#1293) 2019-01-04 12:05:16 +05:30
surendran82
675370e98c highlight actionable buttons when its on focus (close #1294) 2019-01-04 12:04:17 +05:30
surendran82
79de01425e ui improvements on event trigger update columns (close #1257) (#1259) 2019-01-03 14:25:08 +05:30
Anupam Dagar
27ae18438e show only valid options in alter type dropdown on modify table page (close #544) (#1174)
This commit fixes the alter type dropdown on modify page
to show only valid datatypes.

Fixes: #544

The valid datatypes are as follows:
### From integer/ integer auto increment:
1. integer auto increment
2. big int
3. big int auto increment
4. numeric
5. text

### From uuid:
1. text

### From big int/ big int auto increment:
1. big int auto increment
2. text
3. numeric

### json and jsonb  can be changed to one another.

### Don't allow change of datatype for text, ~~date, timestamp, time and boolean~~.
### Allow change of datatype to text for date, timestamp, time and boolean.
2019-01-03 11:15:14 +05:30
Siddhant Srivastav
9b229651eb add a section title to add column in modify tab (fix #1096) (#1245) 2018-12-20 16:52:57 +05:30
Shahidh K Muhammed
4940492266
revert consolePath change for console (#1226) 2018-12-18 17:21:39 +05:30
Rakesh Emmadi
b5bbb966f2 add consolePath in console.html template (#1222)
Server templates `consolePath` key in `window.__env` object in console html template.
If server is hit at `/console/table/author` then `window.__env` in served html looks like
```
{
   consoleMode: "server",
   urlPrefix: "/console",
   consolePath: "/console/table/author",
   isAccessKeySet: true
}
```
2018-12-18 15:09:01 +05:30
Rishichandra Wawhal
9d8ac86269 enable updating event trigger from console (close #489) (#1124) 2018-12-17 17:37:58 +05:30
Aravind Shankar
1548b82e0e optimise the on-load queries on console using bulk api (close #1191) (#1196) 2018-12-17 13:16:54 +05:30
Rakesh Emmadi
3026c49087 apply update permissions for upsert mutations (#628) 2018-12-15 21:40:29 +05:30
Aravind Shankar
58cfbed22e permissions ui improvments (close #1068) (#1205) 2018-12-15 10:38:50 +05:30
Aravind Shankar
432a151f62 show response status code in event trigger events tab (close #1022) (#1203) 2018-12-15 10:36:25 +05:30
Patt-tom McDonnell
e3e57ff3c3 show datatype next to column names when adding triggers (#1188) 2018-12-14 17:08:17 +05:30
Vamshi Surabhi
ec8b2c80b5
refactor to remove warnings especially with orphan instances (#1163)
* remove phase one/two distinction and hdbquery typeclass

* move extensions to default-extensions

* switch to LazyTx which only acquires a connection if needed

* move defns from TH module into Ops module

* remove tojson orphan instance for http exception

* remove orphan instance for dmlp1

* getTopLevelNodes will not throw any exceptions
2018-12-13 12:56:15 +05:30
Siddhant Srivastav
2855e07b11 fix preloader refresh on events page (close #1000) (#1153) 2018-12-11 14:26:34 +05:30
Praveen Durairaj
65d476c800 export console remote schemas (#1165) 2018-12-05 14:54:29 +05:30
Rikin Kachhia
1e24da8633
handle cross schema permissions in console permission builder (Close #1127 #1152) (#1158) 2018-12-03 18:18:21 +05:30
Aravind Shankar
0281a1bfe1 console semver check fix for non-tag versions (#1134) 2018-12-03 14:43:49 +05:30
Aravind Shankar
980d2030d9 fix suggested relationship name strips off numbers (close #1139) (#1144) 2018-11-30 12:26:15 +05:30
Rishichandra Wawhal
7f56da9f28 console semver fix for commits on master branch (#1131) 2018-11-28 15:20:55 +05:30
Rishichandra Wawhal
6a2c4566b7 update notes in the sql section (close #1093) (#1116) 2018-11-27 10:20:27 +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
8b1062bd78 allow hypens in event-trigger names (#1024) 2018-11-14 10:33:56 +05:30
Aravind Shankar
03d2ebd00d track table when 'create or replace' is used in run sql (close #995) (#1021) 2018-11-13 17:39:57 +05:30
riffrayugo
dc2386ae4e add link to docs on console help button (close #908) (#909) 2018-11-09 14:49:24 +05:30
Daniel Brereton
9cb5c71ed9 update console readme (#946) 2018-11-08 12:04:41 +05:30
Abhinav Srivastava
c776cd84a6 update multiple files (#943) 2018-11-08 12:02:57 +05:30
czakarian
e756061439 update typo in console readme (close #944) (#945) 2018-11-04 08:05:21 +05:30
Rakesh Emmadi
999580481c allow specifying a list of columns that can be inserted (close #250) (#917) 2018-11-02 20:38:38 +05:30
surendran82
a32d94f841 update logo in console (#934) 2018-10-31 17:23:38 +05:30
Rishichandra Wawhal
4890434477 fix broken redirect from table/edit to table/browse (close #905) (#935) 2018-10-30 16:24:51 +05:30
Karthik Venkateswaran
b84a03fc38 fix issue with pending event trigger logs when opened (#926) 2018-10-29 23:42:22 +05:30
Karthik Venkateswaran
a1febadf47 remove tries filter from where clause for pending events (#921) 2018-10-29 20:27:51 +05:30
Karthik Venkateswaran
c3f4c35141 handle non-public schema cases for manual relationship creation (close #911) (#912) 2018-10-29 17:50:17 +05:30
Karthik Venkateswaran
4e08be15d6 handle table/schema names in relationship suggestions properly (close #876) (#879) 2018-10-27 15:40:11 +05:30
Karthik Venkateswaran
92182e9af3 update advanced settings in create trigger page (close #654) (#868) 2018-10-27 09:52:23 +05:30
Aravind Shankar
add2d40517 added support for composite relationship suggestions (close #284) (#808) 2018-10-27 09:08:17 +05:30
Karthikeya Viswanath
224042a28b set event trigger headers from console (close 523) (#812) 2018-10-27 09:03:54 +05:30
Tirumarai Selvan
baf7c493bc respect retry-after header on event trigger response (#525) 2018-10-26 21:58:03 +05:30
Vamshi Surabhi
8b0082eac1
clean up user variables parsing logic and fix explain api (#869) 2018-10-26 21:27:22 +05:30
Rakesh Emmadi
fb842fde6f optional 'set' field in insert permissions, closes #216 (#622) 2018-10-26 20:28:20 +05:30
Rakesh Emmadi
a8cee16ab5 support aggregations (closes #786) (#787)
* support for count and aggregations on columns, close #786

* support explain query for aggregations

* '<arr-rel>_agg' in '<table>' type, fix order by for aggregations

* add 'allow_aggregations' key in select permissions

* Add checkbox to toggle count and aggregations on columns on select permission

* align aggregation checkbox with columns div

* improve readability of the generated sql

* alias is needed at the top level aggregation

* throw internal errors for unexpected fields

* rename SelFld to more readable TableAggFld

* rename agg to aggregate
2018-10-26 14:32:43 +05:30
Aravind Shankar
e437604f57 quote schema identifier separately (close #837) (#838) 2018-10-26 08:23:14 +05:30
Karthik Venkateswaran
748b6c91c9 increase width of schema text section (fix #820) (#822) 2018-10-20 14:49:07 +05:30
Karthik Venkateswaran
0e56c98959 add syntax highlighting for sql in query analysis (#819)
* Send headers as part of request headers too

* Disable helper functions from linting

* Update hasura-console-graphiql to filter mutations from analyze list

* Update hasura-console-graphiql to 0.0.6
2018-10-19 14:47:41 +05:30
Karthik Venkateswaran
bcb3dadf27 send headers as part of request headers too for explain query (#816) 2018-10-19 10:50:43 +05:30
Vamshi Surabhi
ac537330d0 explain a graphql query, similar to explain of an sql statement (close #562) (#805) 2018-10-19 07:45:28 +05:30
Aravind Shankar
9818819151 track multiple instances of table/view in run sql (close #784) (#785) 2018-10-17 10:56:35 +05:30
Aravind Shankar
bdcb282c32 don't check for run sql migration name in server mode (fix #778) (#780) 2018-10-16 17:18:42 +05:30
Shrey
421606f124 add name field for migrations created via run_sql (close #541) (#750) 2018-10-15 18:09:27 +05:30
Burak Özdemir
feb8968879 fix e.g. and i.e. typos (#732) 2018-10-15 14:17:21 +05:30
Aravind Shankar
6591095ba1 fix track table error when table name is immediately followed by '(' (close #717) #718 2018-10-15 11:42:08 +05:30
Rakesh Emmadi
49dd7bf98b allow mutations on views only if they are allowed by postgres (fix #232) (#339) 2018-10-12 17:36:12 +05:30
Léo Pradel
7d1361ceb7 fix broken link on console readme (#697) 2018-10-11 09:13:26 +05:30
Rikin Kachhia
27302fae68 console: add support for _is_null operator in permissions (#700) 2018-10-11 09:11:08 +05:30
Aravind Shankar
813795d094 fix to append uriPrefix on schema change event (close #691) (#692) 2018-10-10 15:16:19 +05:30
Karthikeya Viswanath
882719f7e7 add reset metadata button to settings page (close #515) (#673) 2018-10-10 13:05:18 +05:30
Aravind Shankar
40c391df09 track table in run_sql handles schema name and table name separately (close #484) (#685) 2018-10-10 10:34:19 +05:30
Aravind Shankar
a68bb61250 improve version check for server dependent features (close #388) (#676) 2018-10-09 16:33:48 +05:30
Zac Braddy
4f2fd73f2c insert row inputs respect null and default values (fix #545) (#589) 2018-10-09 15:50:29 +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
Arash Khazaei
dbdd79a987 fix alert in cli mode without accesskey (close #536) (#588) 2018-10-09 11:55:10 +05:30
Karthikeya Viswanath
64286f69ed add clear access key button (close #486) (#675) 2018-10-08 19:50:33 +05:30
Akshit Bhalla
fc68477b63 add phantom div for update check banner (fix #271) (#665) 2018-10-08 19:49:20 +05:30
Shrey
69b57625a0 add keybinding to submit sql query (close #542) 2018-10-08 19:38:22 +05:30
Sunita Sen
3d9cad7708 fixe typo in console readme (#658) 2018-10-05 23:39:56 +05:30
Kevin Raynel
5abd18a156 enable redux-dev-tools if present in dev mode (closes #606) (#607) 2018-10-05 19:14:03 +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
Gaurav Sachdeva
d02361ce14 fix typos, punctuation, etc in docs (#635) 2018-10-04 19:55:46 +05:30
Karthik Venkateswaran
b07d04a4a4 configuration list is alphabetical, add note in sql tab for down migrations (close #616) (close #617) 2018-10-04 15:12:01 +05:30
Praveen Durairaj
509c8b89ed logo and favicon update on console (#627) 2018-10-03 18:49:56 +05:30
Karthikeya Viswanath
f34338f792 add tooltip for upsert option under custom permissions (#546) (#566) 2018-10-02 12:17:28 +05:30
Kevin Raynel
05dea9f888 fix typo in proptypes validation (fixes #604) (#605) 2018-10-02 11:44:13 +05:30
Akash Agrawal
ffa0938a86 ask for confirmation before deleting event triggers (close #599) 2018-10-02 11:02:54 +05:30
Karthik Venkateswaran
c98c88c00c allow adding relationship across schemas via manual relationship (fix #526) (#533)
Adds a schema dropdown to manual relationship section which allows creating manual relationship across schemas. This feature is added based on this PR #526 

- [x] Console

Adds a schema dropdown to manual relationship section which allows creating manual relationship across schemas
2018-09-29 11:23:15 +05:30
Karthik Venkateswaran
a9dc756a40 update console variables and contributing guide (close #517) (#538)
Changes `consoleMode` variable templated by HGE to `server` and modified console to respect in the same way and adds a patch to continue working with the older HGEs

- [x] Server
- [x] Console
2018-09-27 17:10:32 +05:30
Karthik Venkateswaran
42177360e3 console fixes (close #406) (close #491) (#522)
Fetches event information on click on the redeliver event icon and refreshes every 5 seconds to display the recent invocation data
2018-09-25 22:11:56 +05:30
Karthik Venkateswaran
65f29610f0 take access key from redux state (#514) 2018-09-22 14:32:41 +05:30
Karthik Venkateswaran
72dfa7dcde remove development data api url (#492) 2018-09-20 09:55:40 +05:30
Karthik Venkateswaran
6f1be7c3b2 show access key prompt when server indicates it's set (close #426) (#481) 2018-09-19 15:35:47 +05:30
Praveen Durairaj
17490e14ee fix add manual relationships state (close #442) (#450) 2018-09-14 14:11:03 +05:30
Praveen Durairaj
eeb15f663f sort untracked table list alphabetically (close #421) (#449) 2018-09-14 12:55:11 +05:30
Praveen Durairaj
7b6add51e6 fix track_table pattern, error handling in run_sql (close #392) (#448) 2018-09-14 12:44:41 +05:30
Praveen Durairaj
7a8fc66f73 export event triggers component (#386) 2018-09-10 17:48:20 +05:30
Aravind Shankar
79a6849241 add parallel tests and update dependencies (#374) 2018-09-08 23:01:14 +05:30
Tirumarai Selvan
e905535beb implement api to deliver a particular event (close #371) (#373) 2018-09-07 17:21:01 +05:30
Karthik Venkateswaran
e3102dfd5e ui buttons to export and import metadata, reload metadata api (close #293) (#323) 2018-09-05 20:55:30 +05:30
Praveen Durairaj
a49188a606 console: handle non access key errors (#356)
[skip ci]
2018-09-05 18:38:19 +05:30
Praveen Durairaj
258885ad4d console: update request payload event triggers (#358) 2018-09-05 18:37:52 +05:30
Praveen Durairaj
e8a86a569f console: add version check for event triggers (#361)
[skip ci]
2018-09-05 18:30:27 +05:30
Tirumarai Selvan
82e09efce6 add event triggers (#329) 2018-09-05 16:56:46 +05:30
Praveen Durairaj
d397d932d6 console: fix error notification non json, auto height css (#354) 2018-09-05 12:06:21 +05:30
Shahidh K Muhammed
80bc927d29
Revert "add links to share and help (#303)" (#334)
This reverts commit 798efdd1c0.
2018-08-30 19:27:06 +05:30
Praveen Durairaj
798efdd1c0 add links to share and help (#303) 2018-08-27 19:55:34 +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
Aswin M Prabhu
b47172974f ignore case when comparing header names to detect access key (fix #286) (#287) 2018-08-15 14:17:18 +05:30
Rishichandra Wawhal
6ba9c759e6 import queries into graphiql from url in query params (#283)
If there are a bunch of queries at a file path, say: `https://raw.githubusercontent.com/wawhal/test-repo/master/queries.graphql`, you can template GraphiQL with those queries by passing the URL in query params.

For example: if the console is running at `https://wofoo.herokuapp.com/console`, to template the queries, the URL would be: `https://wofoo.herokuapp.com/console?query_file=https://raw.githubusercontent.com/wawhal/test-repo/master/queries.graphql`
2018-08-14 15:35:57 +05:30
Praveen Durairaj
f3d22cbbb3 export console as npm module (#279) 2018-08-13 14:38:17 +05:30
Rikin Kachhia
816b480df3 handle legacy operators in permissions builder (fix #268) (#270) 2018-08-08 11:41:00 +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
60f15c654b create table, modify table ui alignment fix (#249) 2018-08-03 16:16:42 +05:30
Praveen Durairaj
40602fcc6e add url prefix for console add table redirect (fix #245) (#247) 2018-08-03 12:41:29 +05:30
Praveen Durairaj
6340a5074a show graphql-engine version on console (close #184) (#230) 2018-07-31 12:06:20 +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
Praveen Durairaj
70d7c7deb1 add version update checker (#215) 2018-07-26 17:10:32 +05:30
Aswin M Prabhu
94b309d69a remove legacy react lifecycle methods (fix #99) (#208)
* remove legacy react lifecycle methods (#99)
2018-07-25 20:40:54 +05:30
Aswin M Prabhu
7feb82ed98 add test for subscriptions, improve coverage (fix #191) 2018-07-25 12:14:27 +05:30
Aswin M Prabhu
a127b5ae59 show access key as password on the console (fix #98) (#203) 2018-07-24 17:29:53 +05:30
Rishichandra Wawhal
9b61964b71 retry websocket connection on failure (fix #198) (#200) 2018-07-24 15:22:47 +05:30
Cosmin Radoi
453f7d8b7f refactor: convert function expression to arrow function (#181)
Just a few cases of converting a traditional function to ES6 arrow functions. Pure refactoring.
2018-07-23 11:59:56 +05:30
Shahidh K Muhammed
9081a27259
open secure websockets if console and endpoint are both on https (fix 182) (#183) 2018-07-21 05:18:57 +05:30
Aravind Shankar
75dbe35a21 create down migrations for actions from console (close #164) (#173) 2018-07-20 16:01:33 +05:30
Vamshi Surabhi
e3f960da96 initial support for livequeries (#176)
fix #59
2018-07-20 12:52:46 +05:30
ASWIN M PRABHU
8d83cbedd3 fix error when altering schema in raw_sql (fix #171) (#172) 2018-07-19 16:51:35 +05:30
Praveen Durairaj
81da2f7d1a add cascade option for raw sql (close #161) (#168) 2018-07-19 16:38:32 +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
87359fb9fc show indicative comments on graphiql if no tables are present (#120) 2018-07-12 00:54:14 +05:30
Rikin Kachhia
45cd97f9b8 fix and/or expressions in permissions builder (#119) 2018-07-12 00:51:26 +05:30
Praveen Durairaj
32750d65fb fix secure endpoint link, update contributing guide (#117) 2018-07-11 20:07:23 +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
3f9859b8dd fix schema dropdown ui, redirect with urlPrefix, fix #97 (#107)
Also fixes the graphiql rendering where on header change, requests were being made.
2018-07-11 17:18:14 +05:30
Praveen Durairaj
6826cec1df console: add gzip compression to deployments (#94) 2018-07-11 12:19:03 +05:30
Rishichandra Wawhal
1f7f8e56f9 update test command in console makefile (#69) 2018-07-11 10:30:27 +05:30
Praveen Durairaj
113b6a9bb5 close #57 fix messaging, expand track all relations (#88) 2018-07-11 10:28:52 +05:30
Shahidh K Muhammed
50165fc1ed circleci integration (#74) 2018-07-10 10:01:02 +00:00
Praveen Durairaj
b0e3cbdd6a console: handle access key error code (#66) 2018-07-09 20:52:44 +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
a2a85b8952 console: fix #40 react table resizing/sorting bug (#41)
* Fix #40

* console: bug fix where a non-action was being dispatched
2018-07-04 18:15:48 +05:30
Shahidh K Muhammed
98c827449b
build: integrate circleci
integration with circleci for various workflows
2018-07-03 22:40:13 +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 Durairaj
a979efa6ef
console: disable change schema dropdown (#24)
* console: disable change schema dropdown

* console: fix graphiql scroll for document title
2018-06-29 17:21:00 +05:30
Praveen Durairaj
f5ca8d7c96 console: add cli and hasuradb mode (#19)
* console: handle cli and hasuradb mode

* console: add urlPrefix, fix run_sql button

* console: handle defaults for env

* console: disable migration alert in hasuradb mode
2018-06-29 15:32:19 +05:30
Praveen D
4f09f40a98 console: update gitignore 2018-06-28 10:33:53 +05:30
Praveen D
b8bb2d652c add console to graphql-engine 2018-06-28 10:27:37 +05:30