Skip to content

refactor(server-nestjs): rename permission services to disambiguate#2314

Merged
shikanime merged 1 commit into
mainfrom
shikanime/push-tllzrlnzllmu
Jul 15, 2026
Merged

refactor(server-nestjs): rename permission services to disambiguate#2314
shikanime merged 1 commit into
mainfrom
shikanime/push-tllzrlnzllmu

Conversation

@shikanime

@shikanime shikanime commented Jul 15, 2026

Copy link
Copy Markdown
Member

NestJS dependency injection error messages do not explicitly indicate which module has the DI problem. When a generic name like ProjectService is used in multiple modules (e.g., ProjectService for domain logic vs. ProjectService for permissions), the error messages become ambiguous and debugging becomes difficult. By making permission service names explicit (ProjectPermissionService), the DI errors immediately identify the problematic module and service.

  • UserService → UserPermissionService
  • UserPolicy → UserPermissionPolicy
  • ProjectService → ProjectPermissionService
  • ProjectPolicy → ProjectPermissionPolicy
  • ProjectLoaderService → ProjectPermissionLoaderService

Issues liées

Extrait de #2298


Quel est le comportement actuel ?

Quel est le nouveau comportement ?

Cette PR introduit-elle un breaking change ?

Autres informations

@shikanime shikanime force-pushed the shikanime/push-tllzrlnzllmu branch from 44fc1d3 to 94fdf70 Compare July 15, 2026 09:30
@shikanime shikanime enabled auto-merge July 15, 2026 09:31
@shikanime shikanime requested a review from KepoParis July 15, 2026 09:32
@shikanime shikanime self-assigned this Jul 15, 2026
@shikanime shikanime added tech Technical issue refactor Refactor code labels Jul 15, 2026
@shikanime shikanime added this to the 9.20.0 milestone Jul 15, 2026
@github-actions github-actions Bot added the built label Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

StephaneTrebel
StephaneTrebel previously approved these changes Jul 15, 2026

@StephaneTrebel StephaneTrebel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM 🚀

@shikanime shikanime added this pull request to the merge queue Jul 15, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 15, 2026
@shikanime shikanime force-pushed the shikanime/push-tllzrlnzllmu branch from 94fdf70 to 75609f2 Compare July 15, 2026 10:29
@shikanime shikanime requested a review from StephaneTrebel July 15, 2026 10:31
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@shikanime shikanime force-pushed the shikanime/push-tllzrlnzllmu branch from 75609f2 to b4f31cd Compare July 15, 2026 10:39
- UserService → UserPermissionService
- UserPolicy → UserPermissionPolicy
- ProjectService → ProjectPermissionService
- ProjectPolicy → ProjectPermissionPolicy
- ProjectLoaderService → ProjectPermissionLoaderService

Resolves naming collision with domain services. Deployment module updated.
@shikanime shikanime force-pushed the shikanime/push-tllzrlnzllmu branch from b4f31cd to 591008c Compare July 15, 2026 10:42
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@cloud-pi-native-sonarqube

Copy link
Copy Markdown

@shikanime shikanime added this pull request to the merge queue Jul 15, 2026
Merged via the queue into main with commit 0de7c34 Jul 15, 2026
34 checks passed
@shikanime shikanime deleted the shikanime/push-tllzrlnzllmu branch July 15, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

built refactor Refactor code tech Technical issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants