-
Notifications
You must be signed in to change notification settings - Fork 0
add postinstall event #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
f9a630e to
f3f36e8
Compare
There was a problem hiding this 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
InstallationCompletedEventclass with data directory, admin username, and admin email properties - Integrated event dispatcher into the
Setupclass 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 |
|
@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. |
bcdf047 to
7bc3f28
Compare
There was a problem hiding this 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.
|
@copilot open a new pull request to apply changes based on the comments in this thread |
|
@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. |
363fb69 to
a4987a7
Compare
There was a problem hiding this 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.
7c875ba to
b259285
Compare
cd66d22 to
7e53353
Compare
…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>
dbb3173 to
f40a561
Compare
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>
f40a561 to
ffd4c5c
Compare
Summary
Mirror pr of nextcloud#57522
TODO
Checklist