Feature/92 mark old installations - #118
Open
KarlsonComplete wants to merge 6 commits into
Open
Conversation
- Introduced `markAsNeedReinstall` method for transitioning `new` installations to `needReinstall` status. - Added `ApplicationInstallationMarkedNeedReinstallEvent` domain event. - Implemented repository method for finding stale installations. - Updated guards and allowed transitions in `applicationUninstalled` logic. - Introduced associated tests and documentation updates.
…ion installations - Added console command `bitrix24:installations:mark-old` to process stale `new` installations, marking them with `needReinstall` status. - Implemented `Workflow`, `Handler`, and configuration classes to support TTL-based filtering and dry-run mode. - Enhanced repository with methods for fetching stale installations. - Integrated logging for tracking progress and results.
- Simplified `Handler` and `Workflow` by eliminating the unused `processedCount` tracking. - Updated result structures, logging, and console output accordingly to reflect the removal. - Streamlined data flow and improved maintainability across the use case.
- Introduced `processedInstallations` tracking to capture and log details of installations marked as `needReinstall`. - Added `MarkOldInstallationsCollector` for event collection during the workflow. - Enhanced console output with detailed information about processed installations.
camaxtly
reviewed
Aug 9, 2026
…ions` workflow - Simplified the `MarkOldInstallations` workflow by removing `memberId` support and dry-run functionality. - Updated console command, configuration, and result classes to reflect the changes. - Streamlined repository queries and reduced unnecessary logic for improved maintainability.
- Introduced `ConfigTest` to validate TTL configurations and edge cases. - Added `HandlerTest` to ensure correct identification and status updates for stale installations. - Implemented `WorkflowTest` for end-to-end flow validation of the `MarkOldInstallations` use case. - Updated `Install/HandlerTest` to test reinstall behavior after `needReinstall` transition.
Collaborator
Author
camaxtly
requested changes
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.