diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ffa2f868..d23b5fef 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,8 +1,8 @@ Release History =============== -DEV ---- +0.5.0 (2020-05-01) +------------------ * Bugfix #304 - Remove shadow object linkages with aggregates * Raise InvalidDataError on invalid attributes to Commands @@ -10,11 +10,15 @@ DEV * Add support for nested serializers/schemas with Marshmallow * Bugfix to not link shadow fields with Aggregate/Entity classes directly * Bugfix to set initialize Shadow (Reference) and Value Object attributes correctly -* Store Reference and Value Object fields in 1Entity.meta_` for later use +* Store Reference and Value Object fields in `Entity.meta_` for later use * Allow Subscribers and Handlers to hook into multiple Domain Events +* Bugfix to avoid fetching child records without foreign key linkages +* Add support for Dict serialization +* Allow persisting and management of child entities via the Aggregate object +* Add support for using Celery as the background worker 0.4.0 (2020-03-16) ----------------- +------------------ * Add support for referencing embedded fields with a defined name * Fix to allow `default=False` on Boolean fields and subsequent filtering for `False` in field values diff --git a/src/protean/core/broker/base.py b/src/protean/core/broker/base.py index 3e61de7a..a30c10a0 100644 --- a/src/protean/core/broker/base.py +++ b/src/protean/core/broker/base.py @@ -6,6 +6,7 @@ from collections import defaultdict from collections.abc import Iterable +# Protean from protean.domain import DomainObjects from protean.utils import fully_qualified_name diff --git a/src/protean/impl/broker/celery_broker.py b/src/protean/impl/broker/celery_broker.py index 0afd6027..b0686e45 100644 --- a/src/protean/impl/broker/celery_broker.py +++ b/src/protean/impl/broker/celery_broker.py @@ -4,10 +4,9 @@ from collections.abc import Iterable +# Protean from celery import Celery, Task from kombu import Queue - -# Protean from protean.core.broker.base import BaseBroker from protean.core.domain_event import BaseDomainEvent from protean.domain import DomainObjects diff --git a/tests/aggregate/aggregate_elements_with_value_objects.py b/tests/aggregate/aggregate_elements_with_value_objects.py index 5d2780cb..5feaa1db 100644 --- a/tests/aggregate/aggregate_elements_with_value_objects.py +++ b/tests/aggregate/aggregate_elements_with_value_objects.py @@ -1,5 +1,7 @@ +# Standard Library Imports from enum import Enum +# Protean from protean.core.aggregate import BaseAggregate from protean.core.field.basic import String from protean.core.field.embedded import ValueObjectField diff --git a/tests/aggregate/test_aggregates_with_value_objects.py b/tests/aggregate/test_aggregates_with_value_objects.py index c96996f2..872c690c 100644 --- a/tests/aggregate/test_aggregates_with_value_objects.py +++ b/tests/aggregate/test_aggregates_with_value_objects.py @@ -1,3 +1,4 @@ +# Local/Relative Imports from .aggregate_elements_with_value_objects import File, Resource diff --git a/tests/impl/broker/celery_broker/test_subscriber.py b/tests/impl/broker/celery_broker/test_subscriber.py index 5cc390c7..217b0653 100644 --- a/tests/impl/broker/celery_broker/test_subscriber.py +++ b/tests/impl/broker/celery_broker/test_subscriber.py @@ -1,10 +1,9 @@ +# Protean import pytest from celery import Task - from protean.globals import current_domain from protean.impl.broker.celery_broker import CeleryBroker, ProteanTask - from tests.impl.broker.celery_broker.elements import NotifySSOSubscriber, Person diff --git a/tests/repository/test_child_persistence.py b/tests/repository/test_child_persistence.py index 2e0a5e5a..af202b0f 100644 --- a/tests/repository/test_child_persistence.py +++ b/tests/repository/test_child_persistence.py @@ -1,7 +1,9 @@ +# Protean import pytest from protean.globals import current_domain +# Local/Relative Imports from .child_entities import Comment, Post, PostMeta