Skip to content

Refactor entry and operation management with enhanced comparison logic#153

Merged
gorushkin merged 11 commits into
144-refactoring-updatetransactionusecasefrom
143-improve-comparing-entries-during-updating-transaction
Dec 13, 2025
Merged

Refactor entry and operation management with enhanced comparison logic#153
gorushkin merged 11 commits into
144-refactoring-updatetransactionusecasefrom
143-improve-comparing-entries-during-updating-transaction

Conversation

@gorushkin

Copy link
Copy Markdown
Owner

Refactor the UpdateTransactionUseCase and EntryFactory for improved entry and operation management. Implement comparers for entries and operations, along with comprehensive tests. Introduce the EntriesService for better entry handling and update logic, while enhancing metadata management and simplifying entry creation. Adjust related tests to ensure accuracy and functionality.

- Added `compareEntry` and `compareOperation` functions to handle comparison logic for entries and operations.
- Created unit tests for both comparers to ensure correct behavior under various scenarios.
- Updated `EntryFactory` to utilize the new comparers for updating entries in transactions.
- Refactored entry and operation DTOs to include necessary fields for updates.
- Modified repository interfaces and implementations to replace soft delete methods with void methods.
- Updated transaction use case to handle entry updates more effectively.
- Enhanced domain entities with new methods for updating descriptions and operations.
- Adjusted tests across the application to reflect changes in entry and operation handling.
@gorushkin gorushkin linked an issue Dec 13, 2025 that may be closed by this pull request
@gorushkin gorushkin changed the base branch from main to 144-refactoring-updatetransactionusecase December 13, 2025 13:36
@gorushkin gorushkin merged commit e11689a into 144-refactoring-updatetransactionusecase Dec 13, 2025
2 checks passed
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.

Improve comparing entries during updating transaction

1 participant