Why my code change did not change the live site

Stored content overrides defaults, and other edge cases of data you do not ship

I changed the hero in code and production still showed the old text. The content store overrides the built-in defaults.

I changed the portfolio hero so the visitor's name leads. The tests passed and the deploy went green. The live page still said "Portfolio".

Why

Site copy is stored in a database and edited through the admin. Stored values override the defaults compiled into the code. My change updated the default; the override kept winning. The code was right and invisible.

Edge cases of the same family

  • Data and code release on different clocks. A tagged deploy moves code; content moves when someone saves it. Know which one a given change belongs to, and say so in the PR.
  • A green check is not the thing you wanted. CI passing, a 200 from the server and a successful deploy each prove one narrow fact. Look at the actual page, bytes included.
  • A "failed" deploy can be a cancelled one. A newer run cancelled an older one through a concurrency rule, and the cancelled run was reported as a failure. Read the newest run before reacting to an old red one.
  • Order of data is data too. Project order on the site lived in live content, not in code, so the change was an edit to stored records rather than a pull request.
  • Habit

    Before closing a change, ask where the value actually comes from at runtime, and check it there.

    Tagged: edge-cases, deploy, content, testing, process

    Area: Thoughts

    Related notes

    עברית