Open jenna-a2ai opened 1 week ago
It seems that there's no way to handle this without an explicit manual sign-off on a final QC commit OR a QC branch
1) the report app can give a drop-down telling the user to explicitly say what the final commit is
Right now, there is not a way of verifying the actual final QC commit
longer form conversation tracked here https://a2ai.slack.com/archives/C07LYA3JLCA/p1727117830055259?thread_ts=1726859324.634579&cid=C07LYA3JLCA
Issue: Given a set of comparator commits for an issue, get the most recent one
How to go about this? I can use gert::git_log(), but this output is determined by the git HEAD of the report app user by default - if a QC branch was created, or the user isn't on the given branch at the time this function is called, the set of commits might not be in the list
What if a QC branch was created halfway through the qc feedback? then the log might not contain those commits because they're on another branch (example here https://github.com/A2-ai/project_x/issues/111)
git_log() gives all commits before a commit - giving the initial QC commit wouldn't work
the only solution I can think of:
Ways to define final QC state: 1) the state of the scientist's local repo
2) the last commit of the scientist's branch/the branch of the QC initialization commit
3) define different final QC states for each issue. Each issue's final QC state is the most recent comparator commit in the set of comparator commits given in the issue (or the initial QC commit if there are no comparator commits)
4) the final milestone QC commit: the most chronologically recent comparator commit out of all the issues in the milestone
5) assume the final QC commit for each milestone, and let the report user confirm