Org Web Adapter

hungryroot/jira/be_6861_remove_quiz_redirect_route_from_django_after_verifying_no_active_traffic.org

ID
78025a1f-200b-42ae-82d1-c250ea4de6e3

BE-6861 Remove quiz redirect route from Django after verifying no active traffic

- source :: https://hungryroot.atlassian.net/browse/BE-6861

- tags :: Hungryroot API Project

- epic :: EP-411 Eng Parking Lot

- sprint :: HR BE Sprint 101 HR BE Sprint 102

- status :: Status - Complete

Tasks

DONE Review existing PR and remove quiz redirect

workchorebe6861ep411sprint101hungryrootapi
ID
2d318887-aa07-e624-a8df-a77017b31dbc

DONE Document why there are still some hits in Datadog

workchorebe6861ep411sprint101hungryrootapi
ID
11beed7f-7edd-cec3-83f6-4d7bc10bdaf9

DONE Test on QA

workhungryrootprojectqabe6861ep411sprint102
ID
4700e9a7-b000-786e-3257-5a81e15f17b7

DONE Test on Staging

workhungryrootprojectqabe6861ep411sprint102
ID
e503d932-f127-b6e5-91ba-cf4b9d08a7a6

Description

https://hungryroot.slack.com/archives/C09QLJ356R1/p1765997789755939?thread_ts=1765997396.464199&cid=C09QLJ356R1

Before removing the route, verify in Datadog that there are no meaningful or

recent calls to the quiz-redirect endpoint in production (and staging, if

applicable). This is to ensure there are no remaining consumers or unexpected

dependencies.

We should remove the legacy quiz-redirect route from the Django application as

part of the web platform’s migration to Astro pages. The web client no longer

relies on this Django backend route for quiz redirects, and the route should be

safely decommissioned once we confirm it is no longer receiving traffic.

Once confirmed, proceed with removing the route and any related view logic, URL

configuration, and supporting code from the Django application.

DD logs

https://app.datadoghq.com/logs?query=env%3Aprod%2A%20service%3Adjango%20-%40path%3A%22%2Fheartbeat%2F%22%20%40route%3Aquiz-redirect&agg_m=count&agg_m_source=base&agg_t=count&cols=%40event%2C%40route&messageDisplay=inline&refresh_mode=sliding&saved-view-id=1931212&storage=hot&stream_sort=desc&viz=stream&from_ts=1765983990800&to_ts=1765998390800&live=true

Context

Web has migrated quiz flows to Astro pages and no longer depends on this Django

route

Removing unused backend routes reduces maintenance overhead and risk of stale

dependencies

Slack discussion and confirmation:

Acceptance Criteria

Datadog confirms no recent or significant traffic to the quiz-redirect route

Quiz-redirect route and associated Django code are fully removed

No regressions or errors related to quiz or onboarding flows after removal

Deployment is verified in production with no increase in 4xx/5xx errors related

to redirects

Note: There is a PR with broken tests here: https://github.com/hungryroot/hungryroot/pull/12875/changes