minos-python icon indicating copy to clipboard operation
minos-python copied to clipboard

Implement a strategy for `Aggregate` validation

Open garciparedes opened this issue 3 years ago • 2 comments

Issue by garciparedes Thursday Sep 23, 2021 at 14:55 GMT Originally opened as https://github.com/Clariteia/minos_microservice_aggregate/issues/5


This issue is intended to create a mechanism to perform Aggregates validation, probably before storing them on the corresponding Repository.

One of the requirements is that the function with the validation responsibility must be asynchronous, in order to perform any database queries as validation conditions.

The final purpose of this validation strategy will be to put together with the repository's writing operations and ensure the full consistency according to the provided validation logic.

One approach could be to simply add a validate() -> bool asynchronous method, but another solutions must be discussed.

garciparedes avatar Jan 26 '22 10:01 garciparedes

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 27 '22 00:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 09 '22 08:08 stale[bot]