chore: delete legacy ScheduledEventService (duplicate of TaskService) #79
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
src/modules/nostr-feed/services/ScheduledEventService.tsis a legacy duplicate ofsrc/modules/tasks/services/TaskService.ts. The DI token is already marked deprecated andFeedServicealready routes incoming event handling toTASK_SERVICE, but the publish-side hasn't been deduped yet.This is the direct parallel to
#78(ReactionService dedup) and blocks phase-2 bucket-B migration for the same reason: touching everyfinalizeEventsite twice or leaving dead-code paths that still try to readprvkey.Evidence
src/core/di-container.ts:142-143:src/modules/nostr-feed/services/FeedService.ts:75-77:claimTask/startTask/completeEvent/unclaimTask/deleteTask/updateTaskStatus.ActivitiesNostrService.publishCalendarEvent(bucket A; tracked by the broader#9migration).ScheduledEventService←nostr-feed/composables/useScheduledEvents←nostr-feed/components/NostrFeed.vueTaskService←tasks/composables/useTasks←tasks/components/TaskList.vueSame domain, two callers, two implementations.
Concrete proposal
src/modules/nostr-feed/services/ScheduledEventService.ts.src/modules/nostr-feed/composables/useScheduledEvents.ts.src/modules/nostr-feed/components/NostrFeed.vuefromuseScheduledEvents→useTasks(or eliminate the call site if the feed page is moving away from inline task interaction).SCHEDULED_EVENT_SERVICEtoken fromsrc/core/di-container.ts.src/modules/nostr-feed/services/FeedService.ts:75-77— thetryInjectService(SERVICE_TOKENS.TASK_SERVICE)aliasing-to-this.scheduledEventServicefield name is misleading post-deletion. Either rename the field or accept the rename as part of this cleanup.Why this matters now
Blocker for phase-2 bucket-B migration per the
aiolabs/lnbits#9signer-abstraction adoption. The migration touches everyfinalizeEvent(eventTemplate, prvkeyBytes)site; doing it on both copies wastes effort and risks one branch silently keeping the prvkey-read path alive.Acceptance
nostr-feed/services/ScheduledEventService.tsremoved.nostr-feed/composables/useScheduledEvents.tsremoved.NostrFeed.vuerepointed (or call sites removed if no longer needed).SCHEDULED_EVENT_SERVICEDI token removed.npm run buildclean.NostrFeed.vueandTaskList.vue(tasks standalone app).Refs
#78(ReactionService dedup).~/dev/coordination/log.mdentry2026-05-28T22:00Z(where the legacy-duplicate finding landed) and2026-05-28T22:30Z(lnbits explicitly authorized opening this).~/dev/coordination/webapp-design-questions.md.aiolabs/lnbits#9(signer abstraction / bunker integration).