This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree 2 files changed +36
-8
lines changed
2 files changed +36
-8
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ Changelog
2
2
=========
3
3
4
4
5
- 0.15.3 (unreleased)
5
+ 0.16.0 (unreleased)
6
6
-------------------
7
7
8
- - Remove ``broker.py `` and depreciated arg scheme related code.
9
- - Simplify the TChannel event types. Removed ``operational_error ``,
10
- ``system_error `` and ``application_error ``. Added ``on_error ``
11
- - Remove ``CallableRequestHandler `` and ``BaseRequestHandler ``.
12
- - **BREAKING ** - remove ``retry_delay `` option in the ``send `` method.
8
+ - Introduced new server API through methods ``tchannel.TChannel.thrift.register ``,
9
+ ``tchannel.TChannel.json.register ``, and ``tchannel.TChannel.raw.register `` - when these
10
+ methods are used, endpoints are passed a ``tchannel.Request `` object, and are expected to
11
+ return a ``tchannel.Response `` object. The deprecated ``tchannel.tornado.TChannel.register ``
12
+ continues to function how it did before. Note the breaking change to the top-level TChannel on the next line.
13
+ - **BREAKING ** - ``tchannel.TChannel.register `` no longer has the same functionality as ``tchannel.tornado.TChannel.register ``,
14
+ instead it exposes the new server API. See the upgrade guide for details.
15
+ - **BREAKING ** - remove ``retry_delay `` option in the ``tchannel.tornado.send `` method.
13
16
14
17
15
18
0.15.2 (2015-08-07)
Original file line number Diff line number Diff line change @@ -7,12 +7,37 @@ what broke and how to safely migrate to newer versions.
7
7
From 0.15 to 0.16
8
8
-----------------
9
9
10
+ - ``tchannel.TChannel.register `` no longer mimicks ``tchannel.tornado.TChannel.register ``,
11
+ instead it exposes the new server API like so:
12
+
13
+ Before:
14
+
15
+ .. code :: python
16
+
17
+ from tchannel import TChannel
18
+
19
+ @tchannel.register (' endpoint' , ' json' )
20
+ def endpoint (request , response , proxy ):
21
+ response.write({' resp' : ' body' })
22
+
23
+
24
+ After:
25
+
26
+ .. code :: python
27
+
28
+ from tchannel import TChannel, Response
29
+
30
+ @tchannel.json.register
31
+ def endpoint (request ):
32
+ return Response({' resp' : ' body' })
33
+
34
+
10
35
- Remove ``retry_delay `` option from ``tchannel.tornado.peer.PeerClientOperation.send ``
11
36
method.
12
37
13
- Before: ``tchannel.request.send(retry_delay=300) ``
38
+ Before: ``tchannel.tornado.TChannel. request.send(retry_delay=300) ``
14
39
15
- After: no more ``retry_delay `` in ``tchannel.request.send() ``
40
+ After: no more ``retry_delay `` in ``tchannel.tornado.TChannel. request.send() ``
16
41
17
42
From 0.14 to 0.15
18
43
-----------------
You can’t perform that action at this time.
0 commit comments