Commit Graph

2229 Commits

Author SHA1 Message Date
Brandon Simmons
b973479631
Merge branch 'master' into 5363-default-bounded-plan-cache 2020-07-29 12:09:21 -04:00
Anon Ray
046a783a14
server: pass http and websocket request to logging context (#5470)
* pass request body to logging context in all cases

* add message size logging on the websocket API

  this is required by graphql-engine-pro/#416

* message size logging on websocket API

  As we need to log all messages recieved/sent by the websocket server,
  it makes sense to log them as part of the websocket server event logs.
  Previously message recieved were logged inside the onMessage handler,
  and messages sent were logged only for "data" messages (as a server event log)

* fix review comments

Co-authored-by: Phil Freeman <phil@hasura.io>
2020-07-29 20:18:36 +05:30
Anon Ray
6c7e63791f
server: add logging for action handlers (#5471)
* server: add logging for action handlers

* add changelog entry

* change action-handler log type from internal to non-internal

* fix action-handler-log name
2020-07-29 19:00:29 +05:30
Brandon Simmons
2a0768d7ad
Merge branch 'master' into 5363-default-bounded-plan-cache 2020-07-28 20:23:26 -04:00
Phil Freeman
ca190ef59a
Merge branch 'master' into event-trigger-lock-timeout 2020-07-28 16:12:13 -07:00
Phil Freeman
02ddcb34a0
Apply suggestions from code review
Co-authored-by: Brandon Simmons <brandon.m.simmons@gmail.com>
2020-07-28 16:11:51 -07:00
Brandon Simmons
1d4ec4eafb Support only the bounded cache, with default HASURA_GRAPHQL_QUERY_PLAN_CACHE_SIZE of 4000. Closes #5363 2020-07-28 19:02:44 -04:00
Phil Freeman
fe70d9fbe8 Add a 30 minute timeout for event trigger locks 2020-07-28 13:45:20 -07:00
Phil Freeman
df51a8eb18
Attach request ID as tracing metadata (#5456)
* Propagate the trace context to event triggers

* Handle missing trace and span IDs

* Store trace context as one LOCAL

* Add migrations

* Documentation

* Include the request ID as trace metadata

* changelog

* Fix warnings

* Respond to code review suggestions

* Respond to code review

* Undo changelog

* Update CHANGELOG.md

* Typo

Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
2020-07-28 13:06:54 -07:00
Naveen Naidu
664e9df9c6
Tracing: Simplify HTTP traced request (#5451)
Remove the Inversion of Control (SuspendRequest) and simplify
the tracing of HTTP Requests.

Co-authored-by: Phil Freeman <phil@hasura.io>
2020-07-28 11:51:56 -07:00
Anon Ray
434c78267c
server: log request/response sizes for event triggers (#5463)
* server: log request/response sizes for event triggers

  event triggers (and scheduled triggers) now have request/response size
  in their logs.

* add changelog entry
2020-07-28 10:52:44 -07:00
Brandon Simmons
3a6b2ec744 Bugfix to support 0-size HASURA_GRAPHQL_QUERY_PLAN_CACHE_SIZE
Also some minor refactoring of bounded cache module:
 - the maxBound check in `trim` was confusing and unnecessary
 - consequently trim was unnecessary for lookupPure

Also add some basic tests
2020-07-27 18:40:17 -04:00
Aravind
96f6bdd531
cli: support squashing actions in config v1 (#5249) 2020-07-27 07:15:43 +05:30
Aravind
2e5e59bd00
cli: handle failed update checks gracefully (close #5392) (#5403) 2020-07-27 07:15:08 +05:30
Phil Freeman
0ae5384115
Propagate the trace context to event triggers (#5409)
* Propagate the trace context to event triggers

* Handle missing trace and span IDs

* Store trace context as one LOCAL

* Add migrations

* Documentation

* changelog

* Fix warnings

* Respond to code review suggestions

* Respond to code review

* Undo changelog

* Update CHANGELOG.md

Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
2020-07-23 13:39:26 -07:00
Marion Schleifer
59c4b008f5
docs: rename deployment guides directory (#5455) 2020-07-23 15:12:53 +02:00
Marion Schleifer
d4972feb55
docs: restructure deployment section (#5339) 2020-07-23 14:34:17 +02:00
Brandon Simmons
2eab6a89aa Fix latency buckets for telemetry data
These must have gotten messed up during a refactor. As a consequence
almost all samples received so far fall into the single erroneous 0 to
1K seconds (originally supposed to be 1ms?) bucket.

I also re-thought what the numbers should be, but these are still
arbitrary and might want adjusting in the future.
2020-07-22 12:29:38 -04:00
Rikin Kachhia
03305bb788
console: update sidebar icons for different action and trigger types (#5445) 2020-07-22 17:10:17 +05:30
Marion Schleifer
af5a70b202
docs: add learn link to authz index page (#5387) 2020-07-21 14:44:20 -07:00
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
Praveen Durairaju
47d2a77415
docs: fix heroku guide link in README (#5390) 2020-07-21 14:52:14 +05:30
Praveen Durairaju
7c1c71c2b9
docs: add django jwt guide link (close #1254) (#5385) 2020-07-21 09:36:23 +02:00
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
Aravind
d8481c3a1c
tag release v1.3.0 (#5423) 2020-07-20 20:38:00 +05:30
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
sezgi
0780ceef03
docs: update terminology and copy for remote relationships pages (#5401) 2020-07-20 18:15:08 +05:30
Nathan Jaremko
73ec489ada
infra: update Azure template to include Postgres 11 (fix #5399) (#5400) 2020-07-20 11:49:10 +02:00
Tirumarai Selvan
709460b9ce
update pg-client (#5421) 2020-07-20 13:45:15 +05:30
sezgi
74b1107b41
docs: open Intercom on feedback & add buttons (close #5264) (#5265) 2020-07-17 12:17:29 -07:00
sezgi
f33138f063
docs: change newsletter copy (#5402) 2020-07-17 11:44:49 -07:00
Marion Schleifer
e649dcebe2
docs: remove recommendation for action handler security (#5355) 2020-07-17 11:39:42 -07:00
Marion Schleifer
286ea31f36
docs: fix indexing problem (#5395) 2020-07-17 13:45:11 +05:30
Anon Ray
1eb36bbbb3
server: refactor 'pollQuery' to have a hook to process 'PollDetails' (#5391)
Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
2020-07-16 18:49:42 +05:30
Praveen Durairaju
d6dab9dc01
docs: update newsletter api (#5369) 2020-07-15 19:46:30 +05:30
Sameer Kolhar
d8055a7ca6
console: add tooltips to certain headers on API Explorer (#5286) 2020-07-15 18:19:29 +05:30
Phil Freeman
0dddbe9e9d
Add MonadTrace and MonadExecuteQuery abstractions (#5383)
Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
2020-07-15 16:10:48 +05:30
Soham Chowdhury
dbdf81b26d
docs: note libkrb5-dev dep on Debian, update GHC version (#5377)
* docs: note libkrb5-dev dep on Debian, update GHC version

* docs: note openssl/libssl-dev requirements on Debian
2020-07-15 11:03:33 +05:30
sezgi
a96e248a0c
docs: change "Step 0" to "Before you begin" (close #5335) (#5348) 2020-07-14 14:30:35 -07:00
Lyndon Maydwell
24592a516b
Pass environment variables around as a data structure, via @sordina (#5374)
* Pass environment variables around as a data structure, via @sordina

* Resolving build error

* Adding Environment passing note to changelog

* Removing references to ILTPollerLog as this seems to have been reintroduced from a bad merge

* removing commented-out imports

* Language pragmas already set by project

* Linking async thread

* Apply suggestions from code review

Use `runQueryTx` instead of `runLazyTx` for queries.

* remove the non-user facing entry in the changelog

Co-authored-by: Phil Freeman <paf31@cantab.net>
Co-authored-by: Phil Freeman <phil@hasura.io>
Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
2020-07-14 12:00:58 -07:00
sezgi
72df5e9f05
docs: update links from Core getting started page to Cloud (close #5334) (#5347) 2020-07-14 10:56:56 -07:00
Marion Schleifer
7f0ba7cd15
docs: update "supported from" notes (#5318) 2020-07-14 14:15:06 +05:30
sezgi
c962253c33
docs: prettify github count (close #5356) (#5357) 2020-07-14 13:59:27 +05:30
Marion Schleifer
28984500fb
docs: add page on created_at / updated_at timestamps (close #2880) (#5223) 2020-07-14 10:03:17 +02:00
Brandon Simmons
66551acac4 Replace idle GC with a custom GC thread
The current idle GC settings seem never to cause idle GC to trigger.
The changes here at least help memory usage to look more reasonable when
running certain benchmarks, and speculatively could partially fix some
memory leaks users have reported.

See ourIdleGC for details.

Referencing canonical memory issue #3388
2020-07-14 11:54:24 +05:30
Phil Freeman
505ac06d9e
Expose all modules in Cabal file (#5371) 2020-07-14 11:26:53 +05:30
Aleksandra Sikora
773a29d612
console: don't set payload for data trigger (#5370) 2020-07-13 17:38:43 +02:00