Skip to content

Drop the Operations helpers nothing calls any more - #79

Merged
loevgaard merged 1 commit into
2.xfrom
chore/drop-vestigial-operations-helpers
Aug 17, 2026
Merged

loevgaard merged 1 commit into
2.xfrom
chore/drop-vestigial-operations-helpers

Conversation

@loevgaard

Copy link
Copy Markdown
Member

Fixes A4 of #71. Stacked on #73 (which is stacked on #72) — all three touch Operations.php; retarget to 2.x before merging its base.

Operations::latest(), isLatestApproved() and authorizedAmount() lost their last callers in src/ when StatusAction moved to the last approved operation (#65) and ConfirmPaymentAction stopped capturing (#69). They only ever existed for those callers; keeping them would make them accidental public API to carry into 3.0. Dropped before 2.0, with their tests; CLAUDE.md's helper list updated (latestOfType() from #72 is the one addition).

composer all green.

@loevgaard
loevgaard force-pushed the fix/rejected-auto-capture branch from 0d477cd to 5180cfb Compare August 17, 2026 09:39
@loevgaard
loevgaard force-pushed the chore/drop-vestigial-operations-helpers branch from 3139f86 to 642eed3 Compare August 17, 2026 09:39
@codecov

codecov Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.38%. Comparing base (ef3db7f) to head (cb0c056).

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x      #79      +/-   ##
============================================
- Coverage     98.41%   98.38%   -0.04%     
+ Complexity      202      195       -7     
============================================
  Files            19       19              
  Lines           506      495      -11     
============================================
- Hits            498      487      -11     
  Misses            8        8              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Operations::latest(), isLatestApproved() and authorizedAmount() lost
their last callers in src/ when StatusAction moved to the last APPROVED
operation (#65) and ConfirmPaymentAction stopped capturing (#69). They
were only ever there for those callers; keeping them would make them
accidental public API to carry into 3.0. Gone before 2.0, tests with
them.

Refs #71 (A4).
@loevgaard
loevgaard force-pushed the chore/drop-vestigial-operations-helpers branch from 642eed3 to cb0c056 Compare August 17, 2026 09:42
@loevgaard
loevgaard changed the base branch from fix/rejected-auto-capture to 2.x August 17, 2026 09:42
@loevgaard

Copy link
Copy Markdown
Member Author

Rebased onto 2.x and retargeted: with #72 merged this no longer depends on #73 (R1 does not touch Operations.php), so it can go in on its own. Will merge once CI is green.

@loevgaard
loevgaard merged commit 3f6a6d8 into 2.x Aug 17, 2026
40 checks passed
@loevgaard
loevgaard deleted the chore/drop-vestigial-operations-helpers branch August 17, 2026 09:43
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.

1 participant