Skip to content

Migrate from deprecated yemot v1 to v2 handler service - #69

Merged
buzz-code merged 2 commits into
mainfrom
copilot/migrate-to-new-yemot-service
Jan 14, 2026
Merged

buzz-code merged 2 commits into
mainfrom
copilot/migrate-to-new-yemot-service

Conversation

Copilot AI commented Jan 14, 2026 •

Copy link
Copy Markdown
Contributor

Removes deprecated chain-based yemot call handling (v1) and replaces with modern v2 handler service architecture. The old implementation used a complex chain pattern with ~1,400 lines of code that is no longer maintained.

Changes

New handler service

  • Created YemotHandlerService extending BaseYemotHandlerService from v2
  • Returns maintenance mode message (placeholder for future logic)

Module registration

// Before (v1)
import { YemotModule } from '@shared/utils/yemot/yemot.module';
YemotModule.register(yemotChain, YemotRequestImpl)

// After (v2)
import { YemotModule } from '@shared/utils/yemot/v2/yemot.module';
YemotModule.register(YemotHandlerService)

Endpoint setup

// main.ts
const yemotRouterSvc = app.get(YemotRouterService);
app.use('/yemot/handle-call', yemotRouterSvc.getRouter());

Removed deprecated files

  • All chain files (attReport.chain.ts, reportType.chain.ts, etc.)
  • YemotRequestImpl and associated tests
  • Entire server/src/yemot/ directory (1,450 lines)

The v2 architecture provides built-in call tracking, error handling, and cleaner abstractions through BaseYemotHandlerService helper methods (hangupWithMessage, askForInput, etc.).

Original prompt

This section details on the original issue you should resolve

<issue_title>Migrate to new yemot handler service</issue_title>
<issue_description>In server/shared you can see version v2 for yemot call handling
Here is an example how this is used:

You can also check the example default yemot handle service

You task is to remove existing old and depracated yemot call handling, and replace it with v2 version
Remove all relevant file that is no longer in use (except for files inside shared folder where you can't touch). The new yemot handler service will return a maintanance mode message, later we'll fill it with logic (current yemot handler & logic is not used at all)</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: buzz-code <72219643+buzz-code@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate to new yemot handler service and remove old version Migrate from deprecated yemot v1 to v2 handler service Jan 14, 2026
Copilot AI requested a review from buzz-code January 14, 2026 06:33
@buzz-code
buzz-code marked this pull request as ready for review January 14, 2026 07:34
@buzz-code
buzz-code merged commit a4a3d33 into main Jan 14, 2026
3 checks passed
buzz-code pushed a commit that referenced this pull request Oct 11, 2026
- client/shared -> 46e2e98 (nra-client main, merge of #59; also picks up #58 isPaid user filter)
- server/shared -> fc2c5f4 (nra-server main, merge of #69)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AxGDngmD8yeYDDm3rcXX4n
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.

Migrate to new yemot handler service

2 participants