Repository navigation
Conversation
…updated_at on download - UED-92: Agent Market 详情页提示补充定时间隔(1小时),同步更新帮助文档 - UED-93: 下载 Skill ZIP 时显式保留 updated_at,防止 MySQL ON UPDATE CURRENT_TIMESTAMP 导致更新时间变动
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.
提交的变更类型是
需求描述和解决方案
描述
1h,即 1 小时)。解决方案
AgentDetailContent.tsx中,“最近同步代码时间”的 Tooltip 提示更新为:最近一次成功拉取新代码变动并完成同步入库的时间,定时间隔:1小时。docs/docsify/zh-cn/guide/agent-market.md帮助文档中过时的 5 分钟描述,与当前代码及环境变量默认值1h保持一致。skills_items表定义了updated_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP。SkillsItem.increment('downloads', { silent: true }),silent: true仅从 SET 子句省略了updated_at,但在 MySQL 中执行 UPDATE 语句时,若未显式指定updated_at = updated_at,会触发 MySQL 原生ON UPDATE CURRENT_TIMESTAMP从而被更新为当前时间。incrementDownloads调用中显式传入attributes: { updated_at: this.app.Sequelize.col('updated_at') },执行UPDATE ... SET downloads = downloads + 1, updated_at = updated_at,保持原有更新时间不被重置。test/agent-detail-layout.test.js断言 hover 提示包含定时间隔 1 小时。test/skills-registry-contract.test.js断言incrementDownloads在自增下载量时传递了silent: true和attributes.updated_at保护字段。自查清单