Skip to content

feat(forms): use camelCase keys in messages to/from mystique (FORMS-20458)#2571

Open
05rahulsingh wants to merge 4 commits into
mainfrom
feat/FORMS-20458-camel-case-msg-keys
Open

feat(forms): use camelCase keys in messages to/from mystique (FORMS-20458)#2571
05rahulsingh wants to merge 4 commits into
mainfrom
feat/FORMS-20458-camel-case-msg-keys

Conversation

@05rahulsingh

Copy link
Copy Markdown
Contributor

Summary

  • Replace all snake_case message keys (form_source, cta_text, cta_source, form_details, form_navigation, page_views, form_views, cta_clicks) with camelCase equivalents in SQS messages sent to mystique via sendMessageToFormsQualityAgent and sendMessageToMystiqueForGuidance
  • Update detect-form-details.js to read formSource and formDetails from incoming mystique responses
  • Update the three guidance handlers to destructure formSource instead of form_source from incoming mystique guidance messages
  • Update all affected tests and fixtures to match the new camelCase keys

Motivation

Consistent camelCase convention for all SQS message keys across the audit-worker ↔ mystique boundary. Jira: FORMS-20458

Test plan

Co-authors

🤖 Generated with Claude Code

…0458)

Replace snake_case keys (form_source, cta_text, cta_source, form_details,
form_navigation, page_views, form_views, cta_clicks) with camelCase equivalents
in all SQS messages exchanged with mystique for consistent naming convention.

Co-Authored-By: Rahul Kumar Singh <rahulksi@adobe.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov

codecov Bot commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown
Contributor

This PR will trigger a minor release when merged.

05rahulsingh and others added 2 commits May 28, 2026 14:49
…reFormByDetails

Follow-up to the SQS message key rename — `shouldIgnoreFormByDetails` was
still reading `form_type`/`is_lead_gen` (snake_case), which would always
return false once mystique started sending camelCase. Updated source and
all affected test stubs to use `formType`/`isLeadGen`/`formCategory`.

Co-Authored-By: Rahul Kumar Singh <rahulksi@adobe.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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