chore: DAH-4277 cleaning up deprecated I2X code - #3028
Merged
Conversation
alulabeshue-sfgov
temporarily deployed
to
dahlia-webap-dah-4277-d-py3tyk
August 13, 2026 16:49
Inactive
alulabeshue-sfgov
temporarily deployed
to
dahlia-webap-dah-4277-d-py3tyk
August 17, 2026 17:16
Inactive
alulabeshue-sfgov
temporarily deployed
to
dahlia-webap-dah-4277-d-py3tyk
August 17, 2026 17:19
Inactive
alulabeshue-sfgov
temporarily deployed
to
dahlia-webap-dah-4277-d-py3tyk
August 17, 2026 17:27
Inactive
alulabeshue-sfgov
marked this pull request as ready for review
August 17, 2026 18:06
alulabeshue-sfgov
requested review from
a team,
cliu02 and
josh-chou
and
a lite review from Copilot
and removed request for
a team
August 17, 2026 18:07
Contributor
There was a problem hiding this comment.
Pull request overview
Removes deprecated Invite-to-Apply (I2A) / legacy I2X email-recording code paths and standardizes “invite to X” response recording on the /api/v1/message backend endpoint, with corresponding Rails + React + test updates.
Changes:
- Simplifies
DahliaBackend::MessageService#send_invite_to_responseto always post to/api/v1/messageand removes deprecated endpoint mapping/field-building logic. - Updates Rails controllers to send only
(app_id, action)and removes thelistingIdrequirement from the public record-response API. - Updates React next-steps flows and Jest/RSpec coverage to match the new request shape/signatures.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| spec/services/dahlia_backend/message_service_spec.rb | Updates service specs for the new (app_id, action) contract and /api/v1/message payload. |
| spec/controllers/invite_to_controller_spec.rb | Updates controller spec expectations for the new send_invite_to_response signature. |
| spec/controllers/api/v1/invite_to_response_controller_spec.rb | Updates API controller specs to remove listingId from required record params. |
| app/services/dahlia_backend/message_service.rb | Removes deprecated I2A endpoint logic and standardizes I2X sending via /api/v1/message. |
| app/javascript/pages/inviteTo/inviteToInterview/InviteToInterviewNextSteps.tsx | Stops sending listingId in recordResponse calls; cleans up hook deps. |
| app/javascript/pages/inviteTo/inviteToApply/InviteToApplyNextSteps.tsx | Stops sending listingId in recordResponse calls. |
| app/javascript/modules/constants.tsx | Removes deprecated I2A_RESPONSES enum. |
| app/javascript/api/inviteToApiService.ts | Updates recordResponse type to drop listingId. |
| app/javascript/tests/pages/invite-to-interview.test.tsx | Updates tests to expect recordResponse without listingId. |
| app/javascript/tests/api/inviteToApiService.test.ts | Strengthens test to assert exact POST payload without listingId. |
| app/controllers/invite_to_controller.rb | Updates server-side recording to use (app_id, act) only and adjusts token preview encoding. |
| app/controllers/api/v1/invite_to_response_controller.rb | Removes listingId strong-param expectation/validation for record-response. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
alulabeshue-sfgov
requested review from
a team,
cade-exygy and
jimlin-sfgov
and removed request for
a team
August 17, 2026 19:22
alulabeshue-sfgov
temporarily deployed
to
dahlia-webap-dah-4277-d-py3tyk
August 19, 2026 20:19
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The sf-dahlia-backend has two sets of endpoints for sending I2X emails,
/messages/invite-to-applyand/api/v1/message. The former API has been deprecated for the latter, in this ticket we clean up any code used to call/messages/invite-to-apply.Jira ticket
https://sfgovdt.jira.com/browse/DAH-4277
Before requesting eng review
Version Control
angularif it contains updates to Angular codetype: TICKET-NUMBER Descriptionformat, useDAH-000if it does not need a ticketurgent: Descriptionformat if it is urgent and does not need a ticketCode quality
Code conventions
.scssstylesheets andui-seedstokens, rather than inline styles or TailwindReview instructions
Request eng review
needs reviewlabelHousing Enggroup to automatically assign reviewers, and/or assign specific engineersBefore merging
Request product acceptance (PA) testing
needs product acceptancelabel)