Commit Graph

311 Commits

Author SHA1 Message Date
Alejandro Serrano
e2dcb98ace Remove Compendium from Nix file + Fix GH Action 2023-01-08 08:31:44 +01:00
Alejandro Serrano
5eac1895db Fix cabal.project 2023-01-07 21:44:05 +01:00
Alejandro Serrano
3d0a80e374 Fixes #342 2023-01-07 21:38:41 +01:00
Alejandro Serrano
517d5dd5e7 Installing Stack no longer needed 2023-01-07 21:34:12 +01:00
Alejandro Serrano
63e278db7e Fix thingies 2023-01-07 21:26:23 +01:00
Alejandro Serrano
920cbdcbb2
Split Named and NamedList and expose them (#333) 2022-05-12 14:32:55 +02:00
Alejandro Serrano
7e65541688
Update to Stackage LTS 18 (#332) 2022-05-12 07:54:09 +02:00
dependabot[bot]
df7d1c8409 Bump addressable from 2.7.0 to 2.8.0 in /docs (#319)
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.7.0...addressable-2.8.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-14 11:11:55 +02:00
Akshay Mankar
0f4942b1c4 [grpc-client] Handle bidirectional streams correctly (#314)
This is a breaking change: The handler for bidirectional streams is returns two
conduits now, instead of one. This enables the client to correctly tackle the
concurrent nature of the client to server stream and the server to client
stream.

Each response in the server-to-client stream is no longer wrapped in GRpcReply,
any error during parsing the stream is thrown in IO.

Other connection related errors are returned in the result value of the conduit
corresponding to the server-to-client Conduit.

Note: The client didn't and still doesn't handle any errors that the server
might indicate using headers or trailers, e.g. grpc-status or the HTTP status
code. This commit also adds TODO comments to handle these.
2021-06-01 13:32:17 +02:00
Akshay Mankar
5315abd39c [grpc-server] Close bidirectional streaming requests correctly (#312)
Changes:
- Don't cancel the handler when server stream ends, this will allow the handler
to finish.
- Use TMChan instead of TMVar for consuming the server stream, this allows the
handler to indicate that it has finished and there will be no more output being
produced.
2021-06-01 13:31:23 +02:00
Alejandro Serrano
c045fdab1e Support unions of more than 2 elements correctly (#308) 2021-05-10 21:31:30 +02:00
Alejandro Serrano
23677d2d18 Multiplex gRPC servers (#309) 2021-05-10 21:20:36 +02:00
Alejandro Serrano
75e7554603 Do not create a loop in bidi gRPC (#306)
Co-authored-by: Flavio Corpa <flavio.corpa@47deg.com>
2021-04-30 16:41:42 +02:00
Alejandro Serrano
26b4fc9ec6 Try fixing deploy again 2021-04-30 13:50:27 +02:00
Alejandro Serrano
1d8319ef98 [protobuf] Fix parsing of oneof fields (#302)
Closes #297 

In protobuf, unions themselves are optional, so while parsing if any value fails
to parse, its default must not be considered. When the default is considered and
first value in the union is not specified, the union still gets parsed as the
default of the first value. So, in this instance:

oneof foo {
  int32 foo_int = 1;
  string foo_str = 2;
}

foo_str will never be parsed, as foo_int will have a default, i.e. 0 and so
foo_str "blah" will always wrongly parse as foo_int 0.

Co-authored-by: Akshay Mankar <itsakshaymankar@gmail.com>
2021-04-30 13:17:11 +02:00
Alejandro Serrano
28ef6fc97d Add support for new primitive types in GraphQL (#295)
Closes #293
2021-04-30 13:16:04 +02:00
Alejandro Serrano
ba87816fc9 Fix deploy, attempt 5 (#307) 2021-04-30 13:05:53 +02:00
Alejandro Serrano
5fdaaf9bf1 New attempt at fixing deployment (#305) 2021-04-30 12:06:55 +02:00
Alejandro Serrano
324bab2b2d Try to fix deploy again (#304) 2021-04-30 11:12:51 +02:00
Alejandro Serrano
73a6d64f5f Try to fix deploy.yml (#303) 2021-04-30 11:00:39 +02:00
Juan Valencia
07a74403fd Update deploy.yml (#299) 2021-04-29 10:46:56 +02:00
Yuto Takahashi
bac654e670 Fix the sample args of gRpcCall in docs (#298) 2021-04-29 10:02:32 +02:00
Alejandro Serrano
109b2d137d Update Nix expression 2021-04-01 17:07:52 +02:00
Alejandro Serrano
d2f813d421 Update stack.yaml 2021-04-01 17:01:47 +02:00
dependabot[bot]
c35c8a8267 Bump kramdown from 2.1.0 to 2.3.1 in /docs (#294)
Bumps [kramdown](https://github.com/gettalong/kramdown) from 2.1.0 to 2.3.1.
- [Release notes](https://github.com/gettalong/kramdown/releases)
- [Changelog](https://github.com/gettalong/kramdown/blob/master/doc/news.page)
- [Commits](https://github.com/gettalong/kramdown/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 10:27:06 +02:00
Alejandro Serrano
cfccaae830 Parse inline fragments in GraphQL (#292)
Co-authored-by: Flavio Corpa <flavio.corpa@47deg.com>
2021-03-11 12:51:22 +01:00
Alejandro Serrano
6f3599a957 Fix segfault in GHC 8.8 (#290) 2021-02-15 10:14:36 +01:00
Alejandro Serrano
b0fc97efce Update mu.avro version 2021-02-08 10:54:12 +01:00
Alejandro Serrano
8aa4d4b2b7 Update mu-schema version to 0.3.1.2 (#287) 2021-02-02 17:48:16 +01:00
Alejandro Serrano
9dc4d5f359 Use and require default value 0 for enums in Protobuf (#285) 2021-01-29 08:35:54 +01:00
Flavio Corpa
bf8d08ff16 Release of mu-graphql@0.5.0.1 2021-01-28 13:48:38 +01:00
Flavio Corpa
82c3aa48f9 Allow JSON inputs in GraphQL schemas 💮 (#283) 2021-01-28 13:44:21 +01:00
Alejandro Serrano
cedc7ce9f7 Bump to LTS-17.0 (#284) 2021-01-28 10:23:43 +01:00
jschaul
76e930c66a Suggestion for contributing guide (#281)
Fixes #279
2021-01-15 10:06:28 +01:00
Alejandro Serrano
b56357c0b7 Fix TH generation for GraphQL input objects (#276) 2021-01-08 09:40:06 +01:00
Alejandro Serrano
e9d55fd6bf Unions in GraphQL (#270) 2021-01-07 14:55:32 +01:00
Flavio Corpa
8bb3a5cf6c 🎬 Cut down vscode extensions! (#272) 2020-12-04 11:41:48 +01:00
Alejandro Serrano
0d885c953e Use stylish-haskell from HLS (#271) 2020-12-04 10:37:43 +01:00
Alejandro Serrano
32af0bf0b3 Maps in Protocol Buffers (#268)
And various fixes in Avro required for everything to still work.

Co-authored-by: Flavio Corpa <flavio.corpa@47deg.com>
2020-12-01 10:50:59 +01:00
Alejandro Serrano
07441d9625 Support GraphQL JSON scalar (#269) 2020-11-30 17:30:52 +01:00
Alejandro Serrano
4fe2ece9e2 Fix CI (again) 2020-11-23 09:30:43 +01:00
Alejandro Serrano
306d206624 Update mu-protobuf version 2020-11-23 09:24:10 +01:00
Akshay Mankar
c94055c935 Support nested types in GRpc methods (#266) 2020-11-23 09:16:58 +01:00
Flavio Corpa
62f9d155b8 ❄️ Add gitignore.nix to prevent Nix cache invalidation for trivial changes (#265) 2020-11-20 11:15:47 +01:00
Flavio Corpa
f692c90aeb ♻️ Run cabal-fmt and extract library example (#264) 2020-11-20 10:24:15 +01:00
Alejandro Serrano
35db14d99b Go back to old gh-pages action 2020-11-19 13:33:40 +01:00
Alejandro Serrano
2948ac738d Try again to fix CI 2020-11-19 12:42:45 +01:00
Alejandro Serrano
9566d5f21e Fix microsite creation 2020-11-19 11:42:12 +01:00
Alejandro Serrano
83156c7fe4 Fix deployment CI 2020-11-19 10:35:24 +01:00
Alejandro Serrano
2c8a1e6195 Final changes pre-release 2020-11-19 09:47:14 +01:00