-
Notifications
You must be signed in to change notification settings - Fork 5
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
Publish events #623
Publish events #623
Conversation
4df555e
to
e0e7563
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
apps/api/src/domain/models/term/commands/create-term/term-created.event-handler.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completed a self-review.
) { | ||
super(repositoryProvider, idManager); | ||
super(repositoryProvider, idManager, eventPublisher); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this is unfortunate.
apps/api/src/domain/models/term/commands/create-term/term-created.event-handler.ts
Outdated
Show resolved
Hide resolved
apps/api/src/domain/models/term/commands/create-term/term-created.event-handler.ts
Outdated
Show resolved
Hide resolved
apps/api/src/persistence/database/arango-database-for-collection.ts
Outdated
Show resolved
Hide resolved
@@ -213,6 +213,7 @@ export class PersistenceModule implements OnApplicationShutdown { | |||
audioQueryRepositoryProvider, | |||
termQueryRepositoryProvider, | |||
queryRepositoryProvider, | |||
EventModule, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine for now. We should think about where this belongs in the long run.
apps/api/src/queries/buildViewModelForResource/viewModels/term.view-model.ts
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completed a self-review.
...rc/domain/models/shared/common-commands/publish-resource/resource-published.event-handler.ts
Show resolved
Hide resolved
apps/api/src/domain/models/term/commands/create-term/term-created.event-handler.ts
Show resolved
Hide resolved
apps/api/src/domain/models/term/repositories/arango-term-query-repository.ts
Show resolved
Hide resolved
apps/api/src/queries/term/__snapshots__/term-queries-fetch-many.e2e.spec.ts.snap
Show resolved
Hide resolved
allowedUserIds: [dummyQueryUserId], | ||
allowedGroupIds: [], | ||
}), | ||
isPublished: false, | ||
}); | ||
|
||
// TODO Add happy path cases for a prompt term |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't super important because none of the logic in the query service or controller distinguishes prompt terms.
No description provided.