Skip to content

chore: retire the legacy RetryPendingDeleteJob shim (#111)#132

Merged
Jaggob merged 1 commit into
mainfrom
chore/111-retire-legacy-job
Jun 7, 2026
Merged

chore: retire the legacy RetryPendingDeleteJob shim (#111)#132
Jaggob merged 1 commit into
mainfrom
chore/111-retire-legacy-job

Conversation

@Jaggob

@Jaggob Jaggob commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

What

RetryPendingDeleteJob was kept only so Application::boot could $jobList->remove(...) it; live retries run through the Hot/Warm/Cold timed jobs (retryByAge). Now that the cleanup window has passed it can go.

Safe to remove now

  • On NC 33 occ background-job:list shows only the Hot/Warm/Cold jobs — no RetryPendingDeleteJob queued (the boot-time remove() already cleared it).
  • The plugin is pre-release (alpha), so there are no other installs holding a stale legacy job.

Changes

  • Delete lib/BackgroundJob/RetryPendingDeleteJob.php.
  • Drop the $jobList->remove(RetryPendingDeleteJob::class) line from boot() (still adds Hot/Warm/Cold).
  • Kept PendingDeleteRetryService::retry() — the no-age-filter entry point is still used by the admin "retry pending deletes" action (AdminController), not just the old job. Its test is kept, renamed/recommented to reflect that caller (caught by the test suite when I initially over-removed it).

Acceptance

  • Confirmed no installs still have the old job queued
  • Removed class + remove() call

Verification

  • PHPUnit 409 + Psalm green (baseline shrank by 1 — the deleted class's MissingOverrideAttribute entry).
  • Full Playwright 23 passed, 0 flaky on NC 33 — Application::boot still loads cleanly.

Closes #111.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 156e8c20f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/AppInfo/Application.php
The class only existed so Application::boot could $jobList->remove() it;
live retries run via the Hot/Warm/Cold timed jobs (retryByAge). Verified on
NC 33 that no RetryPendingDeleteJob is queued (background-job:list shows only
Hot/Warm/Cold), and the plugin is pre-release so no other installs hold a
stale legacy job — the boot remove() has done its job and can go.

- Delete lib/BackgroundJob/RetryPendingDeleteJob.php.
- Drop the $jobList->remove(RetryPendingDeleteJob::class) call from boot().
- Keep PendingDeleteRetryService::retry() (the no-age-filter entry point is
  still used by the admin manual-retry action in AdminController) and its
  test, renamed/recommented to reflect the real caller.

PHPUnit 409 + Psalm green (baseline -1: the removed class's MissingOverride
entry is gone); full Playwright 23/23 on NC 33 (boot still loads cleanly).

Closes #111.
@Jaggob Jaggob force-pushed the chore/111-retire-legacy-job branch from 156e8c2 to 7a51694 Compare June 7, 2026 14:32
@Jaggob Jaggob merged commit ad095b2 into main Jun 7, 2026
13 checks passed
@Jaggob Jaggob deleted the chore/111-retire-legacy-job branch June 17, 2026 14:35
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.

Tracking: retire the legacy RetryPendingDeleteJob shim

1 participant