Bugfix: Store created_by when rolling back version#3175
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts agent version publish metadata by ensuring the updated_by audit field is populated at creation time.
Changes:
- Set
updated_byto the publishing user when inserting a newAgentVersionrecord.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
128
to
132
| 'status': STATUS_RELEASED, | ||
| 'is_a2a': publish_as_a2a, | ||
| 'created_by': user_id, | ||
| 'updated_by': user_id, | ||
| } |
Dallas98
approved these changes
Jun 2, 2026
JasonW404
reviewed
Jun 24, 2026
| 'status': STATUS_RELEASED, | ||
| 'is_a2a': publish_as_a2a, | ||
| 'created_by': user_id, | ||
| 'updated_by': user_id, |
Member
There was a problem hiding this comment.
添加 updated_by 字段到版本发布记录是合理的。但请确认 insert_version 函数是否已支持 updated_by 字段——如果数据库表或 ORM 模型中没有这个列,会导致插入失败。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bugfix: Store created_by when rolling back version