Skip to content

Listing - Expired Deletion #200

@jasonmorais

Description

@jasonmorais

Background

In accordance with the ShareThrift SRD and BRD, Listings that have reached the expired state (active listings that have hit their maximum time frame and become expired) must be archived for 6 months and then automatically deleted from the operational database (Azure Cosmos DB, MongoDB API). This deletion process is essential to enforcing the platform’s data retention policy and maintaining system performance and compliance.

Task Description

  • Implement logic to automatically delete Listings from the operational database once they are marked as expired and the 6-month archival window has elapsed.
  • Ensure this deletion mechanism is scheduled or reliably triggered to avoid retention policy violations and unnecessary storage consumption.
  • Log all deletion events for observability and auditing, integrating with OpenTelemetry and Azure Monitor for traceability.
  • Remove any associated data (messages, notifications, images in blob storage, etc.) in line with the retention policy.
  • Update system documentation to clearly reflect the lifecycle and retention rules for Listings.

Acceptance Criteria

  • Listings in the expired state are deleted after 6 months of archival.
  • Deletion is observable via logs and metrics.
  • No residual Listing or related data remains in the operational database for deleted Listings.
  • Documentation is updated to reflect the retention and deletion logic.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Scheduled

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions