Skip to content

Commit

Permalink
Merge pull request #458 from minos-framework/0.7.0
Browse files Browse the repository at this point in the history
0.7.0
  • Loading branch information
Sergio García Prado authored May 12, 2022
2 parents 14a2f0e + aa35da6 commit 5c647f0
Show file tree
Hide file tree
Showing 55 changed files with 320 additions and 190 deletions.
63 changes: 36 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ pip install \
minos-microservice-networks \
minos-microservice-saga \
minos-broker-kafka \
minos-http-aiohttp
minos-http-aiohttp \
minos-http-aiopg \
minos-http-lmbdb
```

### Configure a Microservice
Expand Down Expand Up @@ -165,26 +167,28 @@ aggregate:
entities:
- main.Foo
repositories:
transaction: minos.aggregate.PostgreSqlTransactionRepository
event: minos.aggregate.PostgreSqlEventRepository
snapshot: minos.aggregate.PostgreSqlSnapshotRepository
transaction: minos.aggregate.DatabaseTransactionRepository
event: minos.aggregate.DatabaseEventRepository
snapshot: minos.aggregate.DatabaseSnapshotRepository
databases:
default:
client: minos.plugins.aiopg.AiopgDatabaseClient
database: foo_db
user: minos
password: min0s
saga:
client: minos.plugins.lmdb.LmdbDatabaseClient
path: "./foo.lmdb"
interfaces:
broker:
port: minos.networks.BrokerPort
publisher:
client: minos.plugins.kafka.KafkaBrokerPublisher
queue: minos.networks.PostgreSqlBrokerPublisherQueue
queue: minos.networks.DatabaseBrokerPublisherQueue
subscriber:
client: minos.plugins.kafka.KafkaBrokerSubscriber
queue: minos.networks.PostgreSqlBrokerSubscriberQueue
validator: minos.networks.PostgreSqlBrokerSubscriberDuplicateValidator
queue: minos.networks.DatabaseBrokerSubscriberQueue
validator: minos.networks.DatabaseBrokerSubscriberDuplicateValidator
http:
port: minos.networks.HttpPort
connector:
Expand All @@ -193,8 +197,8 @@ interfaces:
periodic:
port: minos.networks.PeriodicPort
pools:
lock: minos.common.PostgreSqlLockPool
databasse: minos.common.PostgreSqlPool
lock: minos.common.DatabaseLockPool
database: minos.common.DatabaseClientPool
broker: minos.networks.BrokerClientPool
saga:
manager: minos.saga.SagaManager
Expand Down Expand Up @@ -981,26 +985,28 @@ aggregate:
entities:
- main.FooBar
repositories:
transaction: minos.aggregate.PostgreSqlTransactionRepository
event: minos.aggregate.PostgreSqlEventRepository
snapshot: minos.aggregate.PostgreSqlSnapshotRepository
transaction: minos.aggregate.DatabaseTransactionRepository
event: minos.aggregate.DatabaseEventRepository
snapshot: minos.aggregate.DatabaseSnapshotRepository
databases:
default:
client: minos.plugins.aiopg.AiopgDatabaseClient
database: foobar_db
user: minos
password: min0s
saga:
client: minos.plugins.lmdb.LmdbDatabaseClient
path: "./foobar.lmdb"
interfaces:
broker:
port: minos.networks.BrokerPort
publisher:
client: minos.plugins.kafka.KafkaBrokerPublisher
queue: minos.networks.PostgreSqlBrokerPublisherQueue
queue: minos.networks.DatabaseBrokerPublisherQueue
subscriber:
client: minos.plugins.kafka.KafkaBrokerSubscriber
queue: minos.networks.PostgreSqlBrokerSubscriberQueue
validator: minos.networks.PostgreSqlBrokerSubscriberDuplicateValidator
queue: minos.networks.DatabaseBrokerSubscriberQueue
validator: minos.networks.DatabaseBrokerSubscriberDuplicateValidator
http:
port: minos.networks.HttpPort
connector:
Expand All @@ -1009,8 +1015,8 @@ interfaces:
periodic:
port: minos.networks.PeriodicPort
pools:
lock: minos.common.PostgreSqlLockPool
databasse: minos.common.PostgreSqlPool
lock: minos.common.DatabaseLockPool
database: minos.common.DatabaseClientPool
broker: minos.networks.BrokerClientPool
saga:
manager: minos.saga.SagaManager
Expand Down Expand Up @@ -1123,21 +1129,24 @@ This project follows a modular structure based on python packages.
The core packages provide the base implementation of the framework.
* [minos-microservice-aggregate](https://minos-framework.github.io/minos-python/packages/core/minos-microservice-aggregate): The Aggregate pattern implementation.
* [minos-microservice-common](https://minos-framework.github.io/minos-python/packages/core/minos-microservice-common): The common core package.
* [minos-microservice-cqrs](https://minos-framework.github.io/minos-python/packages/core/minos-microservice-cqrs): The CQRS pattern implementation.
* [minos-microservice-networks](https://minos-framework.github.io/minos-python/packages/core/minos-microservice-networks): The networks core package.
* [minos-microservice-saga](https://minos-framework.github.io/minos-python/packages/core/minos-microservice-saga): The SAGA pattern implementation.
* [minos-microservice-aggregate](https://github.com/minos-framework/minos-python/tree/main/packages/core/minos-microservice-aggregate): The Aggregate pattern implementation.
* [minos-microservice-common](https://github.com/minos-framework/minos-python/tree/main/packages/core/minos-microservice-common): The common core package.
* [minos-microservice-cqrs](https://github.com/minos-framework/minos-python/tree/main/packages/core/minos-microservice-cqrs): The CQRS pattern implementation.
* [minos-microservice-networks](https://github.com/minos-framework/minos-python/tree/main/packages/core/minos-microservice-networks): The networks core package.
* [minos-microservice-saga](https://github.com/minos-framework/minos-python/tree/main/packages/core/minos-microservice-saga): The SAGA pattern implementation.
### Plugins
The plugin packages provide connectors to external technologies like brokers, discovery services, databases, serializers and so on.
* [minos-broker-kafka](https://minos-framework.github.io/minos-python/packages/plugins/minos-broker-kafka): The `kafka` plugin package.
* [minos-broker-rabbitmq](https://minos-framework.github.io/minos-python/packages/plugins/minos-broker-rabbitmq): The `rabbitmq` plugin package.
* [minos-discovery-minos](https://minos-framework.github.io/minos-python/packages/plugins/minos-discovery-minos): The `minos-discovery` plugin package.
* [minos-http-aiohttp](https://minos-framework.github.io/minos-python/packages/plugins/minos-http-aiohttp): The `aiohttp` plugin package.
* [minos-router-graphql](https://minos-framework.github.io/minos-python/packages/plugins/minos-router-graphql): The `grapqhl` plugin package.
* [minos-broker-kafka](https://github.com/minos-framework/minos-python/tree/main/packages/plugins/minos-broker-kafka): The `kafka` plugin package.
* [minos-broker-rabbitmq](https://github.com/minos-framework/minos-python/tree/main/packages/plugins/minos-broker-rabbitmq): The `rabbitmq` plugin package.
* [minos-database-aiopg](https://github.com/minos-framework/minos-python/tree/main/packages/plugins/minos-database-aiopg): The `aiopg` plugin package.
* [minos-database-lmdb](https://github.com/minos-framework/minos-python/tree/main/packages/plugins/minos-database-lmdb): The `lmdb` plugin package.
* [minos-discovery-kong](https://github.com/minos-framework/minos-python/tree/main/packages/plugins/minos-discovery-kong): The `kong` plugin package.
* [minos-discovery-minos](https://github.com/minos-framework/minos-python/tree/main/packages/plugins/minos-discovery-minos): The `minos-discovery` plugin package.
* [minos-http-aiohttp](https://github.com/minos-framework/minos-python/tree/main/packages/plugins/minos-http-aiohttp): The `aiohttp` plugin package.
* [minos-router-graphql](https://github.com/minos-framework/minos-python/tree/main/packages/plugins/minos-router-graphql): The `grapqhl` plugin package.
## Source Code
Expand Down
16 changes: 15 additions & 1 deletion packages/core/minos-microservice-aggregate/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,18 @@
## 0.6.0 (2022-03-28)

* Replace `dependency-injector`'s injection classes by the ones provided by the `minos.common.injections` module.
* Be compatible with latest `minos.common.Config` API.
* Be compatible with latest `minos.common.Config` API.

## 0.7.0 (2022-05-11)

* Rename `PostgreSqlEventRepository` as `DatabaseEventRepository`.
* Add `EventDatabaseOperationFactory` as the abstract class to be implemented by database clients.
* Move `PostgreSqlSnapshotQueryBuilder` to the `minos-database-aiopg` package.
* Rename `PostgreSqlSnapshotRepository` as `DatabaseSnapshotRepository`.
* Add `SnapshotDatabaseOperationFactory` as the abstract class to be implemented by database clients.
* Remove `PostgreSqlSnapshotReader`, `PostgreSqlSnapshotSetup` and `PostgreSqlSnapshotWriter`.
* Rename `PostgreSqlTransactionRepository` as `DatabaseTransactionRepository`.
* Add `TransactionDatabaseOperationFactory` as the abstract class to be implemented by database clients.
* Unify documentation building pipeline across all `minos-python` packages.
* Fix documentation building warnings.
* Fix bug related with package building and additional files like `AUTHORS.md`, `HISTORY.md`, etc.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = "Minos Framework Devs"
__email__ = "[email protected]"
__version__ = "0.7.0.dev4"
__version__ = "0.7.0"

from .actions import (
Action,
Expand Down
12 changes: 6 additions & 6 deletions packages/core/minos-microservice-aggregate/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/core/minos-microservice-aggregate/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "minos-microservice-aggregate"
version = "0.7.0.dev4"
version = "0.7.0"
description = "The Aggregate pattern of the Minos Framework"
readme = "README.md"
repository = "https://github.com/minos-framework/minos-python"
Expand Down Expand Up @@ -31,8 +31,8 @@ include = [

[tool.poetry.dependencies]
python = "^3.9"
minos-microservice-common = { version ="^0.7.0*", allow-prereleases = true }
minos-microservice-networks = { version ="^0.7.0*", allow-prereleases = true }
minos-microservice-common = "^0.7.0"
minos-microservice-networks = "^0.7.0"
cached-property = "^1.5.2"

[tool.poetry.dev-dependencies]
Expand Down
20 changes: 19 additions & 1 deletion packages/core/minos-microservice-common/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,22 @@ routers:

## 0.6.1 (2022-04-01)

* Fix bug that didn't show the correct exception traceback when microservice failures occurred.
* Fix bug that didn't show the correct exception traceback when microservice failures occurred.

## 0.7.0 (2022-05-11)

* Add `DatabaseClient`, `DatabaseClientBuilder` as the base client to execute operation over a database and the builder class.
* Rename `PostgreSqlPool` as `DatabaseClientPool`.
* Add `DatabaseOperation`, `ComposedDatabaseOperation` and `DatabaseOperationFactory` as the classes to build operations to be executed over the database.
* Add `ConnectionException`, `DatabaseClientException`, `IntegrityException`, `ProgrammingException` as the base exceptions to be raised by the `DatabaseClient`.
* Rename `PostgreSqlLock` and `PostgreSqlLockPool` as `DatabaseLock` and `DatabaseLockPool`.
* Rename `PostgreSqlMinosDatabase` as `DatabaseMixin`.
* Add `LockDatabaseOperationFactory` as the base operation factory for locking operations.
* Add `ManagementDatabaseOperationFactory` as the base operation factory for management operations (creation, deletion, etc.).
* Add `TypeHintParser` to unify `ModelType`'s type hints.
* Add `PoolException` as the base exception for pools.
* Add `PoolFactory` as the class with the purpose to build and manage `Pool` instances.
* Remove `MinosStorage` and move `MinosStorageLmdb` to the `minos-database-lmdb` package.
* Unify documentation building pipeline across all `minos-python` packages.
* Fix documentation building warnings.
* Fix bug related with package building and additional files like `AUTHORS.md`, `HISTORY.md`, etc.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""The common core of the Minos Framework."""
__author__ = "Minos Framework Devs"
__email__ = "[email protected]"
__version__ = "0.7.0.dev4"
__version__ = "0.7.0"

from .builders import (
BuildableMixin,
Expand Down
6 changes: 3 additions & 3 deletions packages/core/minos-microservice-common/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/minos-microservice-common/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "minos-microservice-common"
version = "0.7.0.dev4"
version = "0.7.0"
description = "The common core of the Minos Framework"
readme = "README.md"
repository = "https://github.com/minos-framework/minos-python"
Expand Down
7 changes: 7 additions & 0 deletions packages/core/minos-microservice-cqrs/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,10 @@

* Replace `dependency-injector`'s injection classes by the ones provided by the `minos.common.injections` module.
* Be compatible with latest `minos.common.Config` API.

## 0.7.0 (2022-05-11)

* Minor improvements.
* Unify documentation building pipeline across all `minos-python` packages.
* Fix documentation building warnings.
* Fix bug related with package building and additional files like `AUTHORS.md`, `HISTORY.md`, etc.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = "Minos Framework Devs"
__email__ = "[email protected]"
__version__ = "0.7.0.dev4"
__version__ = "0.7.0"

from .exceptions import (
MinosCqrsException,
Expand Down
14 changes: 7 additions & 7 deletions packages/core/minos-microservice-cqrs/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/core/minos-microservice-cqrs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "minos-microservice-cqrs"
version = "0.7.0.dev4"
version = "0.7.0"
description = "The CQRS pattern of the Minos Framework"
readme = "README.md"
repository = "https://github.com/minos-framework/minos-python"
Expand Down Expand Up @@ -31,9 +31,9 @@ include = [

[tool.poetry.dependencies]
python = "^3.9"
minos-microservice-aggregate = { version ="^0.7.0*", allow-prereleases = true }
minos-microservice-common = { version ="^0.7.0*", allow-prereleases = true }
minos-microservice-networks = { version ="^0.7.0*", allow-prereleases = true }
minos-microservice-aggregate = "^0.7.0"
minos-microservice-common = "^0.7.0"
minos-microservice-networks = "^0.7.0"

[tool.poetry.dev-dependencies]
minos-microservice-common = { path = "../minos-microservice-common", develop = true }
Expand Down
Loading

0 comments on commit 5c647f0

Please sign in to comment.