Skip to content

Archived shipments never get their TTL extended — silent eviction from temporary storage #785

Description

@dinahmaccodes

Tier: Medium
Description: archive_shipment (storage.rs:1545-1594) writes into env.storage().temporary() but never calls extend_ttl on the ArchivedShipment(id) key. Persistent shipment data is kept alive by extend_shipment_ttl called from ~15 sites in lib.rs; archived data has no equivalent, so delivered/cancelled shipment history will eventually be silently and permanently evicted with no restore path.
Files: contracts/shipment/src/storage.rs:1545-1594, contracts/shipment/src/lib.rs:3398-3423
Tasks:

  • Extend TTL for archived shipment entries on write, and/or provide a way to refresh it on read
    Acceptance Criteria:
  • Archived shipment records don't silently expire from temporary storage

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions