-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor Configuration System to Use Value Objects #35
Copy link
Copy link
Open
Description
Problem
The Hub::Config system uses complex nested attributes with ActiveModel, making it hard to understand and test.
Tasks
- Replace nested attribute classes with simple value objects
- Implement configuration builder pattern
- Extract validation to separate validator classes
- Simplify persistence logic
Acceptance Criteria
- Create
app/models/configuration/directory with value objects - Remove ActiveModel dependencies from config classes
- Configuration validation extracted to dedicated classes
- All configuration specs pass
- Configuration loading/saving remains functional
- Add unit tests for value objects
Files to modify
lib/hub/config.rband all files inlib/hub/config/app/services/configuration_persistence_service.rbapp/services/configuration_update_service.rb
Phase: 2 (Domain)
Priority: High
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels