Skip to content

Dev#384

Open
TatevikGr wants to merge 1 commit into
mainfrom
dev
Open

Dev#384
TatevikGr wants to merge 1 commit into
mainfrom
dev

Conversation

@TatevikGr
Copy link
Copy Markdown
Contributor

@TatevikGr TatevikGr commented May 20, 2026

Summary by CodeRabbit

  • Refactor

    • Removed the subscription page retrieval behavior from the manager service.
    • Simplified the manager's dependencies by removing the translator dependency.
  • Tests

    • Removed unit tests covering the removed retrieval and "not found" behavior, adjusting test setup accordingly.

Review Change Stack

Thanks for contributing to phpList!

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4a6ad9c1-e473-430b-8745-8c8c8c9bc44c

📥 Commits

Reviewing files that changed from the base of the PR and between ffa0aa3 and 16d3809.

📒 Files selected for processing (2)
  • src/Domain/Subscription/Service/Manager/SubscribePageManager.php
  • tests/Unit/Domain/Subscription/Service/Manager/SubscribePageManagerTest.php
💤 Files with no reviewable changes (2)
  • src/Domain/Subscription/Service/Manager/SubscribePageManager.php
  • tests/Unit/Domain/Subscription/Service/Manager/SubscribePageManagerTest.php

📝 Walkthrough

Walkthrough

The PR removes the TranslatorInterface from SubscribePageManager's constructor and deletes its public getPage(int $id) method. Corresponding unit tests and imports for the removed lookup/exception behavior were deleted and setup wiring was adjusted.

Changes

Remove getPage method and translator dependency

Layer / File(s) Summary
Constructor signature and removal of getPage
src/Domain/Subscription/Service/Manager/SubscribePageManager.php
Constructor no longer injects TranslatorInterface; the getPage(int $id) method and related imports were removed.
Test updates: imports, setup, and removed getPage tests
tests/Unit/Domain/Subscription/Service/Manager/SubscribePageManagerTest.php
Removed NotFoundHttpException import, updated setUp() wiring for constructing SubscribePageManager (translator handling changed), and deleted testGetPageReturnsPage and testGetPageThrowsWhenNotFound methods.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Dev' is extremely vague and generic, providing no meaningful information about the actual changes made to the codebase. Use a more descriptive title that reflects the actual changes, such as 'Remove getPage method from SubscribePageManager' or 'Refactor SubscribePageManager constructor dependencies'.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

2 participants