Skip to content

Commit 618d7ef

Browse files
author
Sergio García Prado
committed
* Add Update Guide.
1 parent d685943 commit 618d7ef

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

packages/core/minos-microservice-common/HISTORY.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,4 +308,38 @@ History
308308
* Add `Object` base class with the purpose to avoid issues related with multi-inheritance and mixins.
309309
* Add `Port` base class as the base class for ports.
310310
* Add `CircuitBreakerMixin` class to provide circuit breaker functionalities.
311-
* Add `SetupMixin` class as a replacement of the `MinosSetup` class.
311+
* Add `SetupMixin` class as a replacement of the `MinosSetup` class.
312+
313+
### Update Guide (from 0.5.x to 0.6.0)
314+
* Add `@Injectable` decorator to classes that injections:
315+
```python
316+
@Injectable("THE_INJECTION_NAME")
317+
class MyInjectableClass:
318+
...
319+
```
320+
* Add `minos-http-aiohttp` package:
321+
```shell
322+
poetry add minos-http-aiohttp@^0.6
323+
```
324+
* Update `config.yml` file:
325+
* Add ``:
326+
```yaml
327+
...
328+
service:
329+
injections:
330+
http_connector: minos.plugins.aiohttp.AioHttpConnector
331+
...
332+
...
333+
...
334+
```
335+
* Add `routers` section:
336+
```yaml
337+
...
338+
routers:
339+
- minos.networks.BrokerRouter
340+
- minos.networks.PeriodicRouter
341+
- minos.networks.RestHttpRouter
342+
...
343+
```
344+
* Update `Config` usages according to the new provided API:
345+
* Most common issues come from calls like `config.query_repository._asdict()`, that must be transformed to `config.get_database_by_name("query")`

0 commit comments

Comments
 (0)