Skip to content

Conversation

@printminion-co
Copy link

@printminion-co printminion-co commented Jan 13, 2026

Summary

Mirror pr of nextcloud#57522

TODO

  • ...

Checklist

@printminion-co printminion-co force-pushed the feature/add_postinstall_event branch from f9a630e to f3f36e8 Compare January 13, 2026 12:00
Copy link

Copilot AI left a comment

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 introduces a new post-installation event system for Nextcloud, allowing apps to hook into the completion of the installation process. The implementation adds an InstallationCompletedEvent that is dispatched after the Nextcloud installation finishes successfully.

Changes:

  • Added a new InstallationCompletedEvent class with data directory, admin username, and admin email properties
  • Integrated event dispatcher into the Setup class to dispatch the installation completed event
  • Added comprehensive test coverage for the event class and Setup class integration

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
lib/public/Install/Events/InstallationCompletedEvent.php Defines the new event class with getters for installation metadata
lib/private/Setup.php Injects event dispatcher and dispatches the event after installation completes
tests/lib/Install/Events/InstallationCompletedEventTest.php Tests all event class functionality including constructor variants and getter methods
tests/lib/SetupTest.php Updates Setup test mocks and adds tests for event dispatcher integration

Copy link

Copilot AI commented Jan 13, 2026

@printminion-co I've opened a new pull request, #181, to work on those changes. Once the pull request is ready, I'll request review from you.

@printminion-co printminion-co force-pushed the feature/add_postinstall_event branch from bcdf047 to 7bc3f28 Compare January 13, 2026 13:04
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

@printminion-co
Copy link
Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link

Copilot AI commented Jan 13, 2026

@printminion-co I've opened a new pull request, #182, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@printminion-co printminion-co changed the title Feature/add postinstall event add postinstall event Jan 13, 2026
@printminion-co printminion-co force-pushed the feature/add_postinstall_event branch 5 times, most recently from 7c875ba to b259285 Compare January 14, 2026 11:18
@printminion-co printminion-co added this to the ncw-3 milestone Jan 16, 2026
@printminion-co printminion-co force-pushed the feature/add_postinstall_event branch 2 times, most recently from cd66d22 to 7e53353 Compare January 22, 2026 14:15
…ooks

Add InstallationCompletedEvent class in public API (OCP namespace) that
provides installation details: data directory, admin username, and admin
email. Event will be dispatched after successful installation.

Include comprehensive unit tests covering all event scenarios.

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
@printminion-co printminion-co force-pushed the feature/add_postinstall_event branch 2 times, most recently from dbb3173 to f40a561 Compare January 22, 2026 15:33
Integrate event dispatching into Setup class:
- Inject IEventDispatcher dependency
- Dispatch InstallationCompletedEvent after successful installation
- Add Setup tests for event integration
- Update composer autoload for new class

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
@printminion-co printminion-co force-pushed the feature/add_postinstall_event branch from f40a561 to ffd4c5c Compare January 22, 2026 15:43
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