Production case study
A cross-system data mismatch, caught before release
A module decided test weeks from a column another system never writes. I traced it across the system boundary before release and fixed detection at 6 read sites.
- Role
- Backend owner
- When
- 2025–2026
- Where
- The in-centre module of a learning platform
- Stack
- ASP.NET Core 8
- EF Core
- SQL Server
- xUnit
6 read sitesfixed before release
Context
I had taken over the backend of a learning platform's in-centre module after its initial build. The module covers test weeks, test logs and progress reports, and what teachers, centre staff and parents each see and can do.
My job was to get the module through its production release and own it afterwards. That meant reading every feature end to end, not only the parts I was changing.
Problem
In pre-release testing, test weeks did not show up as test weeks. Every week behaved like a normal week, so the test-report feature could not be reached. There was no earlier working version to compare against, because the feature was new.
Investigation
I followed the data instead of the screens. The module decided whether a week was a test week by reading one database column. The next question was simple: who writes that column?
The schedule is set up in a separate admin application. I traced what that application writes when a test week is configured, and the column the module relied on was not part of it.
Root cause
The module was reading a column the admin application never writes. The two systems disagreed about where "this is a test week" lives, so the value the module saw was always the default. The feature had been built and tested against data that production would never produce.
Fix
I changed test-week detection to use what the admin application actually records, and I did it everywhere the module made that decision: 6 separate read sites. Fixing only the screen where the bug was visible would have left the other five to fail later.
Result
It was a release blocker, and it was found and fixed before the release, not by users after it. Test weeks became visible and the test-report feature worked as designed.
What I learned
Check the data the code depends on, not just the code. Passing tests prove the code agrees with the test data. They do not prove the test data looks like production. For anything that crosses a system boundary, I now check who writes the data before I trust code that reads it.