Skip to content

Dev#324

Merged
usernane merged 9 commits into
mainfrom
dev
May 11, 2026
Merged

Dev#324
usernane merged 9 commits into
mainfrom
dev

Conversation

@usernane
Copy link
Copy Markdown
Member

No description provided.

Ibrahim BinAlshikh and others added 7 commits May 11, 2026 00:04
…ctories

Pass `true` for the `$recursive` parameter in all CLI migration
commands so that migrations and seeders organized in subdirectories
are automatically discovered.

Affected commands:
- migrations:run
- migrations:fresh
- migrations:rollback
- migrations:dry-run
- migrations:status

Also moves legacy broken test fixtures out of App/Database/Migrations
into tests/fixtures/ to prevent them from being picked up by recursive
discovery.

Closes #317
feat(migrations): enable recursive discovery in subdirectories
Add finally block to all migration commands to release the SchemaRunner's
database connection after execution. This prevents connection leaks when
running multiple commands in sequence (e.g., in test suites).
Test helper methods (initMigrations, dropSchemaTable) also create
SchemaRunner instances that hold connections. Resetting the pool
after each test ensures all connections are closed regardless of
where they were created.
fix(migrations): close database connection after command execution
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 91.89189% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.99%. Comparing base (f71d6c1) to head (be6d69d).
⚠️ Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
WebFiori/Framework/App.php 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #324      +/-   ##
============================================
+ Coverage     74.81%   74.99%   +0.17%     
- Complexity     3005     3015      +10     
============================================
  Files            97       97              
  Lines          9565     9589      +24     
============================================
+ Hits           7156     7191      +35     
+ Misses         2409     2398      -11     
Flag Coverage Δ
php-8.1 76.30% <91.66%> (+0.19%) ⬆️
php-8.2 76.25% <91.66%> (+0.19%) ⬆️
php-8.3 75.06% <91.89%> (+0.17%) ⬆️
php-8.4 75.06% <91.89%> (+0.17%) ⬆️
php-8.5 74.96% <91.89%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Ibrahim BinAlshikh and others added 2 commits May 11, 2026 13:12
RouterUri::addMiddleware() now supports passing a fully qualified class
name (e.g., StartSessionMiddleware::class). If the class extends
AbstractMiddleware, it is instantiated and registered automatically.

An InvalidArgumentException is thrown when a class-like string (containing
a backslash) is passed but doesn't resolve to a valid middleware class.
Plain name strings that don't match any registered middleware or group
remain silent for backward compatibility.

Closes #318
@usernane usernane merged commit 53dd434 into main May 11, 2026
9 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

1 participant