Skip to content

BC-12000 - Add unique connectionName to every RabbitMQWrapperModule.register() call#6379

Merged
bischofmax merged 17 commits into
mainfrom
BC-12000
Jul 9, 2026
Merged

BC-12000 - Add unique connectionName to every RabbitMQWrapperModule.register() call#6379
bischofmax merged 17 commits into
mainfrom
BC-12000

Conversation

@bischofmax

Copy link
Copy Markdown
Contributor

Description

Links to Tickets or other pull requests

Changes

Approval for review

  • DEV: If api was changed - generate-client:server was executed in vue frontend and changes were tested and put in a PR with the same branch name.
  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds explicit, unique RabbitMQ connection names to each RabbitMQWrapperModule.register() usage to prevent connection/provider collisions when multiple RabbitMQ modules are registered in the server.

Changes:

  • Adds connectionName to all existing RabbitMQWrapperModule.register() call sites (provisioning + infra modules).
  • Extends RabbitMQModuleOptions with an optional connectionName field.
  • Passes connectionName through to @golevelup/nestjs-rabbitmq via the name config property in the wrapper module.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
apps/server/src/modules/provisioning/schulconnex-license-provisioning-consumer.module.ts Adds a dedicated RabbitMQ connectionName for the license provisioning consumer.
apps/server/src/modules/provisioning/schulconnex-group-removal-consumer.module.ts Adds a dedicated RabbitMQ connectionName for the group removal consumer.
apps/server/src/modules/provisioning/schulconnex-group-provisioning-consumer.module.ts Adds a dedicated RabbitMQ connectionName for the group provisioning consumer.
apps/server/src/modules/provisioning/provisioning.module.ts Adds a dedicated RabbitMQ connectionName for the provisioning module connection.
apps/server/src/infra/rabbitmq/rabbitmq.module.ts Wires connectionName into the underlying RabbitMQ module config (name).
apps/server/src/infra/rabbitmq/rabbitmq-module.options.ts Adds connectionName?: string to the shared RabbitMQ module options interface.
apps/server/src/infra/mail/mail.module.ts Ensures the mail module’s RabbitMQ registration uses a named connection (mail).
apps/server/src/infra/h5p-editor-client/h5p-editor-client.module.ts Ensures the H5P editor client RabbitMQ registration uses a named connection (h5p-editor).
apps/server/src/infra/files-storage-amqp-client/files-storage-amqp-client.module.ts Ensures the files storage AMQP client RabbitMQ registration uses a named connection (files-storage).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread apps/server/src/infra/rabbitmq/rabbitmq.module.ts
Comment thread apps/server/src/infra/rabbitmq/rabbitmq-module.options.ts
@sonarqubecloud

sonarqubecloud Bot commented Jul 9, 2026

Copy link
Copy Markdown

@bischofmax bischofmax merged commit 0a83047 into main Jul 9, 2026
87 checks passed
@bischofmax bischofmax deleted the BC-12000 branch July 9, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants