Skip to content

T42 modernize refactor app#43

Merged
niden merged 47 commits into
masterfrom
T42-modernize-refactor-app
Jul 16, 2026
Merged

T42 modernize refactor app#43
niden merged 47 commits into
masterfrom
T42-modernize-refactor-app

Conversation

@niden

@niden niden commented Jul 16, 2026

Copy link
Copy Markdown
Member

Reworked dockerfiles to use phalcon v5/v6
Update composer
Mirror vokuro setup with folder reorganization, configs, etc.
Use talon
Refactoring for coupling/optimizations
Phpstan at 8
Coverage > 82%
Run infection

niden added 30 commits July 14, 2026 22:42
@niden niden self-assigned this Jul 16, 2026
@niden niden added the enhancement New feature or request label Jul 16, 2026
@github-actions

This comment has been minimized.

niden added 3 commits July 16, 2026 09:27
… reset

Drop the Codeception rollback machinery from AbstractIntegrationTestCase:
no rollback option, no begin/rollback, no savedRecords tracking, no delete
loop through the models under test. tearDown truncates the co_ tables at the
database level and setUp clears the Redis data cache, so every test starts
from an empty database and cache regardless of order.

Fix testLoginKnownUserGetUnknownUser to ask for the id after the one it
creates - a fixed /users/1 only worked while ids ran into the thousands.
Add resources/infection.json5 with method-scoped mutator ignores, the
test-mutation composer script, the extension-installer allow-plugin and a
psr-4 map so infection can reflect the source. The infection dependency is
not committed - it pulls thecodingmachine/safe dev-master, which deprecation
warns on newer php; install it on demand to run.

Harden the tests so mutants die: Response send hash and meta, ClearcacheTask
exact output with redis, UsersRepository lookups, the model logger call and
BaseTransformer field selection. Covered MSI 92%.
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Code Metrics Report

Coverage Test Execution Time
81.9% 13s

Code coverage of files in pull request scope (81.9%)

Details
Files Coverage
src/Api/Controllers/BaseController.php 0.0%
src/Api/Controllers/Companies/AddController.php 0.0%
src/Api/Controllers/Companies/GetController.php 0.0%
src/Api/Controllers/IndividualTypes/GetController.php 0.0%
src/Api/Controllers/Individuals/GetController.php 0.0%
src/Api/Controllers/LoginController.php 0.0%
src/Api/Controllers/ProductTypes/GetController.php 0.0%
src/Api/Controllers/Products/GetController.php 0.0%
src/Api/Controllers/Users/GetController.php 0.0%
src/Api/providers.php 100.0%
src/Bootstrap/AbstractBootstrap.php 100.0%
src/Bootstrap/Api.php 100.0%
src/Bootstrap/Cli.php 94.4%
src/Bootstrap/Tests.php 0.0%
src/Cli/Tasks/ClearcacheTask.php 97.3%
src/Cli/Tasks/MainTask.php 100.0%
src/Cli/providers.php 100.0%
src/Constants/Flags.php 0.0%
src/Constants/Relationships.php 0.0%
src/Core/autoload.php 100.0%
src/Core/config.php 100.0%
src/Core/functions.php 100.0%
src/ErrorHandler.php 100.0%
src/Exception/Exception.php 0.0%
src/Exception/HttpException.php 0.0%
src/Exception/ModelException.php 0.0%
src/Http/Request.php 0.0%
src/Http/Response.php 100.0%
src/Middleware/AuthenticationMiddleware.php 0.0%
src/Middleware/NotFoundMiddleware.php 85.7%
src/Middleware/ResponseMiddleware.php 0.0%
src/Models/Companies.php 100.0%
src/Models/CompaniesXProducts.php 96.0%
src/Models/IndividualTypes.php 100.0%
src/Models/Individuals.php 100.0%
src/Models/ProductTypes.php 100.0%
src/Models/Products.php 100.0%
src/Models/Users.php 100.0%
src/Mvc/Model/AbstractModel.php 91.6%
src/Providers/CacheDataProvider.php 100.0%
src/Providers/CliDispatcherProvider.php 100.0%
src/Providers/ConfigProvider.php 100.0%
src/Providers/DatabaseProvider.php 100.0%
src/Providers/ErrorHandlerProvider.php 100.0%
src/Providers/LoggerProvider.php 100.0%
src/Providers/ModelsMetadataProvider.php 84.2%
src/Providers/QueryServiceProvider.php 55.5%
src/Providers/RequestProvider.php 100.0%
src/Providers/ResponseProvider.php 100.0%
src/Providers/RouterProvider.php 100.0%
src/Providers/UsersRepositoryProvider.php 55.5%
src/Repositories/UsersRepository.php 100.0%
src/Services/QueryService.php 95.8%
src/Traits/FractalTrait.php 100.0%
src/Traits/ResponseTrait.php 100.0%
src/Traits/TokenTrait.php 100.0%
src/Transformers/BaseTransformer.php 100.0%
src/Transformers/CompaniesTransformer.php 100.0%
src/Transformers/IndividualTypesTransformer.php 100.0%
src/Transformers/IndividualsTransformer.php 100.0%
src/Transformers/ProductTypesTransformer.php 100.0%
src/Transformers/ProductsTransformer.php 100.0%
src/Validation/CompaniesValidator.php 100.0%

Reported by octocov

@niden
niden merged commit 97d782e into master Jul 16, 2026
20 checks passed
@niden
niden deleted the T42-modernize-refactor-app branch July 16, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant