Skip to content

Fixing bugs - #320

Merged
iMattPro merged 2 commits into
phpbb:masterfrom
iMattPro:fixes
Jul 26, 2026
Merged

Fixing bugs#320
iMattPro merged 2 commits into
phpbb:masterfrom
iMattPro:fixes

Conversation

@iMattPro

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds host timezone propagation into newly created phpBB sandbox boards (and into the generated Docker runtime), and improves extension uninstall behavior by purging phpBB cache after an extension is purged.

Changes:

  • Detect host timezone in BoardService and store it as board_timezone in board metadata/runtime config.
  • Pass QUICKINSTALL_BOARD_TIMEZONE into docker-compose and set phpBB’s board_timezone during first-time install with a PHP runtime compatibility fallback to UTC.
  • Purge phpBB cache after uninstalling an extension (and update unit tests accordingly).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/Unit/DockerComposeWriterTest.php Asserts timezone env + entrypoint timezone-setting logic is present in generated runtime files.
tests/Unit/BoardServiceTest.php Verifies board metadata includes board_timezone and adds coverage for TZ environment handling.
tests/Unit/BoardRunnerTest.php Updates expectations to include cache purge after extension uninstall.
src/QuickInstall/Sandbox/DockerComposeWriter.php Adds timezone env var and entrypoint logic to apply board timezone with UTC fallback.
src/QuickInstall/Sandbox/BoardService.php Introduces host timezone detection and persists it into board config/metadata.
src/QuickInstall/Sandbox/BoardRunner.php Purges cache after extension purge to clear compiled artifacts.
src/QuickInstall/Sandbox/BoardRefreshService.php Adds board_timezone to runtime config defaults used during refresh.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/QuickInstall/Sandbox/BoardService.php Outdated
'admin_pass' => 'password',
'admin_email' => 'admin@example.test',
'board_email' => 'board@example.test',
'board_timezone' => 'UTC',
@iMattPro
iMattPro merged commit fba2e8d into phpbb:master Jul 26, 2026
5 checks passed
@iMattPro
iMattPro deleted the fixes branch July 26, 2026 18:36
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.

2 participants