Skip to content

CASE STUDY · CLIENT PROJECT

Psikotest

An assessment platform people were already using, rewritten from scratch. One thing was not allowed to shift at all: the numbers it produces.

CLIENT
Psikotest.id
OUR ROLE
Rewrite, then multi-tenancy
USED BY
Companies, universities, schools
STATUS
Live

Rewriting software people already depend on

The platform had been running for years on a stack that was starting to show its age: an older-generation JavaScript framework, a MySQL database, and — the most awkward part — participants' answers and results stored as files on disk, one file per person.

Rewriting software people already use carries a different kind of risk than building something new. Nobody is waiting for a new feature. What you have instead is people who will notice immediately if something goes missing, and psychologists whose reports have to come out exactly as they did yesterday.

The numbers were the thing that could not move

The substance of this platform is its scoring: ten algorithms that turn someone's answers into scores, then into a psychogram and a recommendation. People use those results to decide who gets hired and who gets admitted.

Changing scoring code is easy, and the damage is invisible. The report still comes out, still neatly formatted — only wrong. Nothing errors, nothing turns red, nothing tells you.

So before a single line was rewritten, the old code was run exactly as it stood — unmodified — against thousands of inputs, and every input together with its result was saved to a file. That came to 856 cases across ten files. The new code has to produce byte-identical output for all of them; one number out of place turns the automated check red and the change cannot land.

We did not decide what the right answer was. The old code decided, and the new code is only permitted to agree with it.

The client list in the Psikotest back office, showing name, company and email.
The back office. One platform serves many organisations at once — companies, schools and universities each stand as a separate client.

Multi-tenancy, shipped switched off

The next request: organisations wanted their candidates to take tests at an address carrying their own name and logo, with their data kept apart from everyone else's.

There were two routes. A separate database per organisation — perfect isolation, but the maintenance burden grows with every new one. Or a single database with an owner marker on every row — light, but it depends on every query remembering to filter. We took the second, with a safety net: row-level security rules in PostgreSQL. If a query ever forgets to filter, what stops it is not a programmer's memory but the database itself.

One thing was deliberately left outside the scheme: the question bank and the scoring algorithms stay global, with no owner marker. Which means a change this large touched none of those 856 test cases.

And all of it shipped to production with the switch off. Until someone turns it on, the application behaves exactly as it did before — not nearly, exactly. A feature that size sat in production for a while changing nothing at all, until the moment was judged right.

The participant list in the Psikotest back office with name and email columns and an Excel import button.
The participant list. The “Import Excel” button exists because that is how real HR teams send data: one file with hundreds of names, not typed in one at a time.

Smaller things fixed along the way

Answers and results that used to live as files on disk became columns in the database. One place, searchable, and carried along every time the database is backed up — previously, backing up the database alone was not enough, and not everyone realised that.

Login sessions are kept on the server behind a cookie JavaScript cannot read. No token sits in browser storage, where any third-party script on the page could pick it up.

About the results numbers

The “Results” section here has no numbers yet. How long a report takes now compared to before, and how many candidates are handled per month, belong to the Psikotest.id team. If they are happy for us to publish them, they will go here.

Screenshots are from a local test installation. Client names, participant names and email addresses are invented. Screens containing questions, answers or test results are deliberately not shown, and the names of the test instruments appear nowhere, at the request of Psikotest.id's management.

BUILT ON

  • Go
  • PostgreSQL
  • Redis
  • Garage (S3)
  • Gotenberg
  • Vue 3
  • Docker

All work

Let's build something worth running

Tell us what you are trying to build or monitor. We will be straightforward about whether we can solve it, and how we would approach it.

Tell us about your project

No commitment. We reply personally within 1–2 business days.

WhatsApp