OrderNot attempted
Renaming an API field safely
Order the steps to rename the API field price to amount while old tabs are still open.
Drag the rows, or use the arrows, to put them in order from first to last.
- Remove
pricefrom the backend - Wait until no client still uses
price(check logs of the app-version header) - Deploy the frontend that reads and sends only
amount - Backend returns and accepts both
priceandamount
Show answer & explanation
Correct order:
- Backend returns and accepts both
priceandamount - Deploy the frontend that reads and sends only
amount - Wait until no client still uses
price(check logs of the app-version header) - Remove
pricefrom the backend
Expand → migrate → contract. Old and new clients overlap after every deploy, so the backend must support both until the old ones are gone. Removing the field first would break every tab that loaded the old code.