Merged
Conversation
Introduced Jakarta validation annotations to ChannelMeta and ProjectMeta fields to enforce constraints on name, description, and color. Updated Channel to handle new meta types and validation logic for creation, modification, and deletion, ensuring proper field defaults and error handling.
Added Lombok's @tostring annotation to various command and domain model classes across channel, organization, and project modules. This improves debugging and logging by providing readable string representations for these objects.
NikodemCyrzan
previously approved these changes
Dec 22, 2025
Collaborator
Author
|
XDDDDDDDD, "U MNIE DZIAŁA" |
Collaborator
Author
Collaborator
Author
|
Jak dobrze, że jest piepline CI, 😎 |
Collaborator
Author
|
Zaraz się okaże, : ) |
Added the Lombok @tostring annotation to ProjectFetchCommand and ChannelInitialCreationMeta classes to improve debugging and logging by providing automatic string representations.
Collaborator
Author
|
Przeszło, : ))) |
NikodemCyrzan
approved these changes
Dec 22, 2025
scraft-official
added a commit
that referenced
this pull request
Jan 4, 2026
* Add validation to ChannelMeta and ProjectMeta fields Introduced Jakarta validation annotations to ChannelMeta and ProjectMeta fields to enforce constraints on name, description, and color. Updated Channel to handle new meta types and validation logic for creation, modification, and deletion, ensuring proper field defaults and error handling. * Add @tostring to command and domain model classes Added Lombok's @tostring annotation to various command and domain model classes across channel, organization, and project modules. This improves debugging and logging by providing readable string representations for these objects. * Add @tostring to ProjectFetchCommand and ChannelInitialCreationMeta Added the Lombok @tostring annotation to ProjectFetchCommand and ChannelInitialCreationMeta classes to improve debugging and logging by providing automatic string representations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This pull request introduces several improvements and refactorings to the backend domain and application command classes, primarily focused on enhancing code maintainability, validation, and debugging capabilities. The most significant changes include the addition of
@ToStringannotations for easier debugging, the introduction of validation constraints to theChannelMetaclass, and a refactor of theChannelentity to streamline meta handling and enforce stricter type checks.Enhancements to command and meta classes:
@ToStringannotations to all command and meta classes (e.g.,ChannelCreationCommand,ProjectCreateCommand,ChannelMeta, and their related meta implementations) to improve logging and debugging by making object string representations more informative. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18]Validation and data integrity improvements:
@NotBlank,@Size,@Pattern, etc.) inChannelMetato enforce constraints onname,description, andcolorfields, ensuring data integrity for channel metadata.Refactoring and logic improvements in the
Channelentity:Channelclass to:ChannelCreationMeta,ChannelModificationMeta,ChannelDeletionMeta) in its lifecycle methods (create,modify,delete) for stricter type safety and clearer logic.Optionaland provides sensible defaults.@AllArgsConstructor(onConstructor = @__({ @Deprecated }))and@ToStringfor better construction and debugging support. [1] [2] [3] [4] [5]Dependency and import updates:
ChannelCreationMeta,ChannelDeletionMeta,ChannelModificationMeta), reflecting the refactored meta model.These changes collectively improve the maintainability, reliability, and debuggability of the backend codebase, especially around channel and project management logic.