Skip to content

Introducing Data Configuration #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 31, 2024
Merged

Introducing Data Configuration #12

merged 8 commits into from
Dec 31, 2024

Conversation

Fa-BRAIK
Copy link
Contributor

No description provided.

Moved several traits to new namespaces under more relevant subdirectories. Updated references throughout the codebase to reflect these changes for improved structure and maintainability.
Introduce `DataConfiguration` and `SerializersConfiguration` for managing serializers and configurations dynamically. Centralize serializer registration and improve type handling across contexts while replacing hardcoded lists with configurable options. Add `DataConfigurationException` for robust error handling.
@Fa-BRAIK Fa-BRAIK added feature New feature! refactor Code improvments reorganization without changing functionality. labels Dec 31, 2024
Introduce the `resetConfig` method in `UnitCase` to reset `DataConfiguration` for test isolation. Additionally, update `clover.xml` with new coverage details and metrics.
@Fa-BRAIK Fa-BRAIK added this to the [v0.4] Configuration & Logs milestone Dec 31, 2024
Introduced `NormalizersConfiguration` to manage normalizers setup. Refactored existing code to leverage shared utility methods like `Arr::isArrayOfClassStrings` for validation. Updated configurations and exception handling to support normalizers alongside serializers.
Introduce `ArrTest` to cover unit tests for the `Arr` helper class. Additionally, rename and move `HasNormalizersTest` to a more appropriate namespace to better reflect its functionality.
Introduced `DataConfigurationTest` to validate configuration logic, including instance creation, overriding, and exceptions for invalid data. Minor renaming in `ArrTest` for clarity. Updated coverage metrics reflect increased test effectiveness.
Add assertions to verify that DataConfiguration properly points to the instances of NormalizersConfiguration and SerializersConfiguration. This strengthens the test coverage and ensures configuration consistency.
@Fa-BRAIK Fa-BRAIK marked this pull request as ready for review December 31, 2024 21:14
Introduces a new `DataConfiguration.md` file to explain configuration handling. Updates existing documentation with improved note formatting for clarity. Adjusts code structure in configuration-related files for better serialization and normalization setup.
@Fa-BRAIK Fa-BRAIK merged commit 11c38d3 into main Dec 31, 2024
2 checks passed
@Fa-BRAIK Fa-BRAIK deleted the feature/library-config branch December 31, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature! refactor Code improvments reorganization without changing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant