Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

feat(version): v0.2.0 #83

Merged
merged 7 commits into from
Nov 5, 2022
Merged

feat(version): v0.2.0 #83

merged 7 commits into from
Nov 5, 2022

Conversation

peterschutt
Copy link
Member

@peterschutt peterschutt commented Nov 2, 2022

Closes #14
Closes #48
Closes #50
Closes #51
Closes #54
Closes #72
Closes #89

The ABC was typed to accept a sqlalchemy session object. Changed to
instead receive arbitrary kwargs, but if the base class actually ever
receives kwargs it will error out due to super call to
`object.__init__()`.

The service object accepts arbitrary kwargs that are passed through to
the repository, but doesn't care what they are.

This all means that the only thing that knows and cares about the
sqlalchemy session, is the sqlalchemy repository, and that feels right.

One facet of this approach is that it makes the concept of the
transaction an implementation detail. The sqlalchemy repo has the
concept of session/transaction, but a repository doesn't _have_ to
understand those things. This is consistent with the testing repository
implementation, so happy to see how the pattern pans out.

Closes #54
@peterschutt peterschutt changed the title feat(repository): make abc more general. (#82) feat(version): v2.0 Nov 2, 2022
The custom response class only exists to deliver this. So that is now
dynamically constructed with the serializer passed to `PluginConfig` if
`do_response_class` is `True` and `response_class` doesn't already
exist on `AppConfig`.

Closes #51
@peterschutt peterschutt changed the title feat(version): v2.0 feat(version): v0.2.0 Nov 2, 2022
Includes a `GenericMockRepository` instance for testing.

Closes #50
* feat(logs): structlog configuration.

Configures the app to log with `structlog`.

Closes #48

* Update docs/logging.md

* docs(log): fixes.

* feat(log): makes log processors configurable for the plugin.

Also, some refactoring to accommodate the worker logger with separation
of concerns.

* feat(log): Adds log configuration for the worker.
@peterschutt peterschutt merged commit 32714a5 into main Nov 5, 2022
@peterschutt peterschutt deleted the v0.2.0 branch November 5, 2022 23:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.