Retire GET /workstreams/workplan-index with 410; railiance01 deploy runbook
Return 410 Gone for legacy workplan-index route (replacement /workplans/index). Add tests, update transition backlog, operator deploy evidence doc, and STATE-WP-0070 progress notes.
This commit is contained in:
parent
7e68f9e8e3
commit
14b7d8418d
7 changed files with 88 additions and 9 deletions
|
|
@ -412,21 +412,26 @@ async def list_workplans(
|
|||
)
|
||||
|
||||
|
||||
@router.get("/workplan-index")
|
||||
@router.get("/workplan-index", status_code=status.HTTP_410_GONE)
|
||||
async def workplan_index(
|
||||
request: Request,
|
||||
response: Response,
|
||||
refresh: bool = Query(False, description="Force cache invalidation"),
|
||||
session: AsyncSession = Depends(get_session),
|
||||
) -> dict[str, Any]:
|
||||
) -> None:
|
||||
replacement_ref = "/workplans/index"
|
||||
await _meter_legacy_route(
|
||||
session=session,
|
||||
request=request,
|
||||
response=response,
|
||||
interface_key=_legacy_key("GET", "/workstreams/workplan-index"),
|
||||
replacement_ref="/workplans/index",
|
||||
replacement_ref=replacement_ref,
|
||||
)
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_410_GONE,
|
||||
detail="Legacy GET /workstreams/workplan-index retired; use GET /workplans/index",
|
||||
headers=legacy_response_headers(replacement_ref),
|
||||
)
|
||||
return await _workplan_index(refresh=refresh, session=session)
|
||||
|
||||
|
||||
@workplan_router.get("/index")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue