Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Archive tasks optimistically - #3584

Closed
MattPua wants to merge 2 commits into
mainfrom
posthog-code/optimistic-task-archiving
Closed

Archive tasks optimistically#3584
MattPua wants to merge 2 commits into
mainfrom
posthog-code/optimistic-task-archiving

Conversation

@MattPua

@MattPua MattPua commented Jul 20, 2026

Copy link
Copy Markdown
Member

Problem

Why: Single-task archives use the non-optimistic path, so the task stays visible until archive work finishes.

Changes

  • Enable the existing optimistic archive option for single-task archives

How did you test this?

  • pnpm --dir packages/core exec vitest run src/archive/archiveOrchestration.test.ts
  • pnpm turbo typecheck --filter=@posthog/ui
  • pnpm exec biome check packages/ui/src/features/archive/useArchiveTask.ts

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Remove archived tasks from the UI before host cleanup completes, while preserving rollback on failure and refreshing the authoritative archive record after success.

Generated-By: PostHog Code
Task-Id: ac916f1c-ce06-4167-b1bb-726a17a3fa02
@trunk-io

trunk-io Bot commented Jul 20, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit c5bfe01.

Restore the existing archive orchestration API and enable its optimistic mode explicitly for single-task archives.

Generated-By: PostHog Code
Task-Id: ac916f1c-ce06-4167-b1bb-726a17a3fa02
@MattPua MattPua closed this Jul 20, 2026
@MattPua
MattPua deleted the posthog-code/optimistic-task-archiving branch July 20, 2026 14:13
@posthog

posthog Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

👋 Visual changes detected for this PR.

Review and approve in PostHog Visual Review

If these changes are unexpected, they may be caused by a flaky test or a broken snapshot on master. Don't approve — rerun the job or wait for a fix.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant