Skip to content

Feature/116 news context - #117

Open
KarlsonComplete wants to merge 15 commits into
mesilov:feature/116-news-contextfrom
KarlsonComplete:feature/116-news-context
Open

Feature/116 news context#117
KarlsonComplete wants to merge 15 commits into
mesilov:feature/116-news-contextfrom
KarlsonComplete:feature/116-news-context

Conversation

@KarlsonComplete

Copy link
Copy Markdown
Collaborator

.

@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@camaxtly camaxtly 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.

26-07-2026

Comment thread src/News/Entity/NewsStatus.php Outdated
Comment thread src/News/Entity/NewsStatus.php Outdated
Comment thread src/News/Docs/News.md Outdated
Comment thread src/News/Entity/News.php Outdated
Comment thread src/News/Infrastructure/Doctrine/NewsRepositoryInterface.php Outdated
Comment thread src/News/UseCase/RevertToDraft/Handler.php Outdated
- Removed the `archive` method and the "archived" status from the `News` entity.
- Deleted `Command`, `Handler`, `NewsArchivedEvent`, and relevant test cases.
- Updated repository interface and documentation to reflect the removal of the archive functionality.
- Introduced `imageUrl` field to the `News` entity and updated mapping.
- Added methods to attach, detach, and validate image URLs with corresponding events.
- Updated `Create` and `Update` use cases to handle optional `imageUrl`.
- Implemented unit and functional tests for image-related functionality.
- Introduced `NewsNotFoundException` and corresponding error handling across `Delete`, `Update`, `Publish`, and `RevertToDraft` use cases.
- Enhanced logging with clear success, failure, and finishing states for all `News` actions.
- Added and updated tests to validate `NewsNotFoundException` handling.
- Refactored `News` and related test code for consistent variable naming (`news` to `newsItem`).
- Updated the `findByTitle` method in the `NewsRepository` to filter out deleted news.
- Adjusted repository interface and documentation to reflect this change.
- Refactored functional tests to use a reusable `entityManager` instance.
…lated tests

- Moved `imageUrl` initialization to the constructor for consistency.
- Removed unnecessary `attachImage` usage in `Create` and `Builder` implementations.
- Added and updated test cases for `imageUrl` functionality, including attachment, detachment, and validation.
- Added `imageUrl` field to `News` entity and updated mapping to include nullable string.
- Adjusted domain events and acceptance criteria to incorporate `imageUrl` changes.
- Removed `archived` status and related functionality; updated `NewsStatus` enum and transitions.
- Refined repository methods (`getById`, `findPublished`, `findDrafts`) and adjusted query handling for clarity.
- Updated unit and functional tests to cover new `imageUrl` logic and refined UseCases.
- Updated documentation and changelog for version 0.8.0 changes.
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