Skip to content

[LFXV2-1251][LFXV2-1252] chore: remove voting and survey handlers from lfx-v1-sync-helper#65

Merged
andrest50 merged 4 commits intomainfrom
andrest50/remove-handlers
Mar 17, 2026
Merged

[LFXV2-1251][LFXV2-1252] chore: remove voting and survey handlers from lfx-v1-sync-helper#65
andrest50 merged 4 commits intomainfrom
andrest50/remove-handlers

Conversation

@andrest50
Copy link
Contributor

@andrest50 andrest50 commented Mar 11, 2026

Summary

  • Remove handlers_voting.go and models_voting.go — voting events (itx-poll, itx-poll-vote) are now handled by lfx-v2-voting-service
  • Remove handlers_survey.go and models_surveys.go — survey events (itx-surveys, itx-survey-responses) are now handled by lfx-v2-survey-service
  • Remove corresponding routing cases from handlers.go to eliminate duplicate indexer and FGA messages

Ticket

🤖 Generated with Claude Code

The itx-poll and itx-poll-vote v1-objects events are now handled by the
lfx-v2-voting-service, making these handlers redundant. Removes
handlers_voting.go, models_voting.go, and the corresponding routing
cases in handlers.go to eliminate duplicate indexer and FGA messages.

Generated with [Claude Code](https://claude.ai/claude-code)

Signed-off-by: Andres Tobon <andrest2455@gmail.com>
The itx-surveys and itx-survey-responses v1-objects events are now
handled by the lfx-v2-survey-service, making these handlers redundant.
Removes handlers_survey.go, models_surveys.go, and the corresponding
routing cases in handlers.go to eliminate duplicate indexer and FGA
messages.

Generated with [Claude Code](https://claude.ai/claude-code)

Signed-off-by: Andres Tobon <andrest2455@gmail.com>
@andrest50 andrest50 requested a review from emsearcy as a code owner March 11, 2026 18:09
Copilot AI review requested due to automatic review settings March 11, 2026 18:09
@andrest50 andrest50 requested a review from a team as a code owner March 11, 2026 18:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes voting and survey ingestion from lfx-v1-sync-helper now that those DynamoDB event streams are handled by dedicated v2 services, preventing duplicate indexer/FGA messages.

Changes:

  • Deleted voting handler/model implementations (handlers_voting.go, models_voting.go).
  • Deleted survey handler/model implementations (handlers_survey.go, models_surveys.go).
  • Removed itx-poll* and itx-survey* routing cases from handleKVPut in handlers.go.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
cmd/lfx-v1-sync-helper/models_voting.go Removed voting data models and custom unmarshaling logic.
cmd/lfx-v1-sync-helper/models_surveys.go Removed survey data models and custom unmarshaling logic.
cmd/lfx-v1-sync-helper/handlers_voting.go Removed vote / vote-response KV handlers and NATS indexer/FGA publishers.
cmd/lfx-v1-sync-helper/handlers_survey.go Removed survey / survey-response KV handlers and NATS indexer/FGA publishers.
cmd/lfx-v1-sync-helper/handlers.go Removed routing for voting/survey KV prefixes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Voting and survey KV events are now handled by lfx-v2-voting-service
and lfx-v2-survey-service respectively. Add explicit no-op cases in
both handleKVPut and handleResourceDelete to log a debug message and
return, consistent with how other delegated handlers are treated.

Generated with [Claude Code](https://claude.ai/claude-code)

Signed-off-by: Andres Tobon <andrest2455@gmail.com>
@andrest50 andrest50 merged commit cf3cabf into main Mar 17, 2026
3 checks passed
@andrest50 andrest50 deleted the andrest50/remove-handlers branch March 17, 2026 17:27
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.

4 participants