Skip to content

Conversation

@rubenvdlinde
Copy link
Contributor

No description provided.

rubenvdlinde and others added 30 commits December 9, 2025 13:54
- Run PHPCBF multiple passes to auto-fix 183+ coding standard violations
- Add missing @return tags in controllers
- Fix parameter documentation mismatches
- Fix line length issues in docblocks
- Fix array/function call formatting
- Fix concatenation spacing
- Fix indentation and alignment issues

Remaining: 7,062 errors (down from 7,245)
- Large files (ObjectService, FileService, SaveObjects) need manual fixes
- Many errors in complex files that PHPCBF cannot auto-fix
ARCHITECTURE IMPROVEMENT:
- Move massValidateObjects business logic (443 lines) from controller to service
- Controller now properly thin: validates HTTP params, delegates to service
- Service contains all business logic: batch processing, metrics, error handling

PHPCS IMPROVEMENTS:
- SettingsController: 123 → 83 errors (40 fixed, 33% reduction)
- Fix file comment format (/** instead of /*)
- Add missing @param documentation
- Fix parameter documentation formatting
- Remove business logic helper methods from controller

NEW SERVICE METHODS:
- SettingsService::massValidateObjects() - main business logic
- SettingsService::createBatchJobs() - batch job creation
- SettingsService::processJobsSerial() - serial batch processing
- SettingsService::processJobsParallel() - parallel batch processing
- SettingsService::processBatchDirectly() - single batch processing
- SettingsService::formatBytes() - utility method

BENEFITS:
- Better separation of concerns (MVC pattern)
- Easier to test business logic independently
- Reusable service methods for other consumers
- Improved code maintainability
…m ObjectService

- Created new SearchQueryHandler with 8 search-related helper methods:
  * buildSearchQuery() - Convert request parameters to structured queries
  * applyViewsToQuery() - Apply view filters to search queries
  * isSolrAvailable() - Check SOLR availability
  * cleanQuery() - Normalize query parameters
  * addPaginationUrls() - Generate pagination links
  * logSearchTrail() - Log search analytics
  * isSearchTrailsEnabled() - Check trail settings

- Registered SearchQueryHandler in Application.php dependency injection
- Updated ObjectService to inject and use SearchQueryHandler
- Reduced code duplication by delegating 4 methods to handler
- PHPCS compliance: 570+ lines with only 2 minor errors

Part of ObjectService refactoring to separate concerns and improve maintainability.
rubenvdlinde and others added 30 commits January 26, 2026 14:23
Replace force-push dev-to-beta with PR-creation workflow, re-enable
unstable release for development branch, fix feature/php-linting refs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Enforce that PRs to main can only come from beta or hotfix branches,
and PRs to beta can only come from development or hotfix branches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Handle JSON strings from database in setRequired/getRequired and
setConfiguration/getConfiguration methods. When reading JSON fields
from database, they come as strings but setters expected arrays.

Updated docblocks to match getFacets()/setFacets() style.

Fixes configuration import errors.
Fix JSON field type handling in Schema and Register entities
Multitenancy fix & webhook POST/GET call fixes
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.

4 participants