Skip to content

Conversation

@F-cq
Copy link
Collaborator

@F-cq F-cq commented Oct 24, 2025

Description

fix(apis/web): 修复 mcp tool 详情更新时间改为资源更新时间

Fixes # (issue)

Checklist

  • 填写 PR 描述及相关 issue (write PR description and related issue)
  • 代码风格检查通过 (code style check passed)
  • PR 中包含单元测试 (include unit test)
  • 单元测试通过 (unit test passed)
  • 本地开发联调环境验证通过 (local development environment verification passed)

@F-cq F-cq requested review from Han-Ya-Jun and wklken October 24, 2025 07:17
@wklken wklken requested a review from Copilot October 25, 2025 12:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the MCP tool detail page to display the resource's actual update time instead of the documentation's update time.

Key Changes:

  • Added a new method get_updated_time to retrieve a resource's update time by gateway ID and name
  • Modified the documentation retrieval logic to inject the resource's update time into the documentation data

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/dashboard/apigateway/apigateway/biz/resource/resource.py Added get_updated_time method to ResourceHandler class for retrieving resource update times
src/dashboard/apigateway/apigateway/biz/released_resource_doc/released_resource_doc.py Updated get_released_resource_doc_data to use resource update time instead of doc update time

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wklken wklken merged commit d7b1f49 into TencentBlueKing:master Oct 27, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants