Skip to content

Add needReinstall status to ApplicationInstallationStatus enum #576

Description

@KarlsonComplete

Problem

When Bitrix24 never delivers ONAPPINSTALL after the initial Install request, the ApplicationInstallation stays in status new forever. Consumers need a dedicated status to mark these stale installations without deleting them, so that a future reinstall can detect and clean them up.

Proposed solution

Add a new enum case to ApplicationInstallationStatus:

File: src/Application/Contracts/ApplicationInstallations/Entity/ApplicationInstallationStatus.php

case needReinstall = 'needReinstall';

Semantics: the installation timed out waiting for ONAPPINSTALL and must be reinstalled. This status is set by a background cleanup worker (TTL-based), not by the install flow itself.

No other changes in this issue — the entity interface method, event, and repository method are tracked in separate issues.

Acceptance criteria

  • case needReinstall = 'needReinstall' added to ApplicationInstallationStatus
  • Enum comment describes the new status
  • Related issue: mesilov/bitrix24-php-lib#92

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions