Open SachaG opened 11 months ago
First step in surveyform, I track the monorepo SHA that is given by process.env.VERCEL_GIT_COMMIT_SHA || process.env.RENDER_GIT_COMMIT
and env variables, during response creation or update. Since they are available as environment variables we can get them synchronously "for free" + they are correct (since there is a deployment step, we often have an older commit in production than what is on main when the build fails)
This is on the development branch
The harder part is getting the values from other repos, for that we need an asynchronous call. It should be done at the same time we get the data so probably somewhere in the API indeed.
It might be useful to have a way to know exactly what content any given respondent was seeing when they filled out the survey.
This would mean obtaining (probably via the API) and saving git commit hashes for:
We can probably do this together with the other issue about tracking the latest commit hashes inside the API.