Skip to content

Feature/92 mark old installations - #118

Open
KarlsonComplete wants to merge 6 commits into
mesilov:feature/92-mark-old-installationsfrom
KarlsonComplete:feature/92-mark-old-installations
Open

Feature/92 mark old installations#118
KarlsonComplete wants to merge 6 commits into
mesilov:feature/92-mark-old-installationsfrom
KarlsonComplete:feature/92-mark-old-installations

Conversation

@KarlsonComplete

Copy link
Copy Markdown
Collaborator

.

- 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.
Comment thread src/ApplicationInstallations/Console/MarkOldInstallationsCommand.php Outdated
…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.
@KarlsonComplete

Copy link
Copy Markdown
Collaborator Author

Issue

@camaxtly camaxtly left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

13-08-2026

Comment thread src/ApplicationInstallations/Console/MarkOldInstallationsCommand.php Outdated
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