Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple repositories from PublishingEventPipeline #21

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Conversation

csutter
Copy link
Contributor

@csutter csutter commented Sep 26, 2023

Now that we have moved the repositories out into their own module, it doesn't necessarily make sense for them to know about internals of the pipeline module. If we assume that a repository's knowledge about a "document"/"indexable thing" can be limited to an ID, some metadata, and some unstructured content, we can get rid of the Document model and thus a cross-module boundary dependency entirely.

  • Remove PublishingEventPipeline::Document class
  • Make repositories take explicit bare arguments for metadata and content

Now that we have moved the repositories out into their own module, it
doesn't necessarily make sense for them to know about internals of the
pipeline module. If we assume that a repository's knowledge about a
"document"/"indexable thing" can be limited to an ID, some metadata, and
some unstructured content, we can get rid of the `Document` model and
thus a cross-module boundary dependency entirely.

- Remove `PublishingEventPipeline::Document` class
- Make repositories take explicit bare arguments for metadata and
  content
@csutter csutter merged commit b04f61d into main Sep 26, 2023
@csutter csutter deleted the split-repo-2 branch September 26, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant