Draft logs get converted to live logs once the draft version is merged
Opened this issue · 1 comments
geclos commented
- Create a new prompt version
- Run the prompt
- check logs: you should see a "draft" log of that prompt
- publish the commit
- check logs: the previously tagged "draft" log is now tagged as a new "live" log
We should persist the state of prompt commit at the time of the log creation
Ashad-h commented
By displaying a "live" tag when _documentLog.commit.mergedAt <= documentLog.createdAt_
, this would solve this issue.
In DocumentLogsTable.tsx:
<Text.H6 noWrap>
{documentLog.commit.version &&
documentLog.commit.mergedAt &&
documentLog.commit.mergedAt <= documentLog.createdAt
? v${documentLog.commit.version}
: 'Draft'}
</Text.H6>
Is it enough ?