-
[NA] [BE] refactor: use version number in restored prompt description (#6811)
发布于
2026-05-21 10:39:03 +00:00 - [OPIK-6457] [BE] refactor: use version number in restored prompt description
Update PromptService.restorePromptVersion to set the restored version's
change description to "Restored from version " instead of
the opaque commit hash, so users see a meaningful reference like
"Restored from version v1".Implements OPIK-6457: prompts improvements.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
- [OPIK-6457] [BE] fix: fall back to commit when restored version has no version number
versionNumber is null for MASK prompt versions, which would otherwise
produce "Restored from version null". Falls back to the source commit
hash when versionNumber is null/blank so the change_description is
always meaningful and non-null.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com
下载附件