fix(newsletters): remove dead code reintroduced by stale merge base - #1202
Conversation
missingDraftRequirements and formatMissing were reintroduced onto main by PR #1198's squash merge, whose branch predated the #1133 revert. Neither method is called anywhere, and missingDraftRequirements referenced bodyPersistable, a signal that no longer exists post-revert - breaking the release build (TS2339). Refs: LFXV2-2386 Signed-off-by: David Deal <ddeal@linuxfoundation.org>
PR SummaryLow Risk Overview The PR removes Reviewed by Cursor Bugbot for commit 93e56fa. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
WalkthroughRemoves two private helper methods that computed and formatted missing newsletter draft requirements. No replacement logic or public declarations were added. ChangesNewsletter helper removal
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
Removes stale newsletter helper methods that caused the release build’s TS2339 failure.
Changes:
- Deletes two unused draft-validation helpers.
- Removes the orphaned
bodyPersistable()reference.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
MRashad26
left a comment
There was a problem hiding this comment.
Code standards review: all clean. Pure dead-code removal — two unreachable private methods deleted, no logic changes, no new patterns introduced. Approving.
Fixes the release build break in run https://github.com/linuxfoundation/lfx-self-serve/actions/runs/30282716458 (
TS2339: Property 'bodyPersistable' does not exist).Root cause: PR #1198 ("dashboards: trend indicators") squash-merged from a branch cut before the #1133 revert (#1200) landed on
main. Its squash diff against a stale merge base reintroduced two orphaned helper methods —missingDraftRequirementsandformatMissing— intonewsletter-manage.component.ts. Neither is called anywhere;missingDraftRequirementsreferencesbodyPersistable(), a signal that only existed as part of the (now-reverted) block-composer feature from #1133.Fix: deletes both dead methods. Verified
yarn check-typesandyarn workspace lfx-one-ui build:productionboth pass locally.No other files were affected by the same stale-merge-base issue (checked full diff between the revert commit and current
maintip).Refs: LFXV2-2386