Skip to content

update 5 api related to environment tag#3017

Merged
ColdWaterLW merged 18 commits intomainfrom
3008-commits
Apr 11, 2025
Merged

update 5 api related to environment tag#3017
ColdWaterLW merged 18 commits intomainfrom
3008-commits

Conversation

@Seechi-Yolo
Copy link
Copy Markdown
Collaborator

关联的 issue

#3008

描述你的变更

  1. 更新下述5个接口
    image
  2. 更新dms的依赖

确认项(pr提交后操作)

Tip

请在指定复审人之前,确认并完成以下事项,完成后✅


  • 我已完成自测
  • 我已记录完整日志方便进行诊断
  • 我已在关联的issue里补充了实现方案
  • 我已在关联的issue里补充了测试影响面
  • 我已确认了变更的兼容性,如果不兼容则在issue里标记 not_compatible
  • 我已确认了是否要更新文档,如果要更新则在issue里标记 need_update_doc

- Replace dmsV1 with dmsV2 in import statements
- Update function calls and struct references to use dmsV2
- Modify ListDBServiceReq usage across multiple files
- Adjust error handling and permissions checks for new API
- Move GetInstanceTips endpoint from v1 to v2 router
- Implement new GetInstanceTips function in v2 with updated request and response models
- Add support for filtering by environment tag and workflow template ID
- Improve error handling and code organization
- Update the response schema for instance tips from v1 to v2 in Swagger documentation
- Add new definitions for v2.GetInstanceTipsResV2 and v2.InstanceTipResV2
- Update the API endpoint for getting instance tips to use the new schema
- Changed function name from GetInstancesInProjectByTypeAndBusiness to GetInstancesInProjectByTypeAndEnvironmentTag
- Updated function calls in affected files to reflect the new name
- This change clarifies that the function filters instances by type and environment tag, not by business
- Add new endpoint for getting SQL manage list in v3
- Implement SQL manage list retrieval for enterprise edition
- Add community edition support with error handling
- Update API documentation for new endpoint
- Add new endpoint for getting SQL manage list in v3
- Implement SQL manage list retrieval for enterprise edition
- Add community edition support with error handling
- Update API documentation for new endpoint
- Rename "获取管控sql列表" to "获取SQL管控列表" for better clarity
- Add new response model (v3.GetSqlManageListResp) for SQL management list
- Update query parameter description for environment tag filtering
- Update API endpoint to use new response model
- Add new endpoint for SQL manage export in v2
- Implement export logic with support for fuzzy search and various filters
- Generate CSV file with detailed SQL manage information
- Update old export endpoint to use new implementation
- Move instance audit plan related endpoints from v1 to v2
- Update data structures and API responses for v2
- Deprecate v1 endpoints for instance audit plans
- Improve error handling and data validation in v2 endpoints
…anagement features

- Remove deprecated business parameter from SQL management related APIs
- Update SQL management features to use environment tag instead of business
- Refactor instance retrieval methods to use new API structures
- Update notification body to use environment instead of business
- Remove deprecated flag from getInstanceAuditPlansV1 endpoint
- Add new endpoint for getting instance audit plan details in v2
- Update parameter descriptions across multiple endpoints
- Add new response models for v2 API
- Remove 'Business' field from the notification content
- Rename 'Environment' to '环境属性' in Chinese locale
- Update corresponding English and Chinese locale files
- Add new API endpoint for v2 instance audit plans
- Update existing API to use deprecated flag
- Add new response models for v2 instance audit plans
- Update API documentation in Swagger JSON and YAML formats
…dit plans

- Remove "filter_by_environment_tag" from the data map
- Add logic to fetch instances by environment tag and project ID
- Update query to filter by instance IDs obtained from the environment tag
- Change "Environment" field to "EnvironmentTagName" in the response
- Update "Environment" field to "EnvironmentTagUID" in the detail response
- Add EnvironmentTagUID and EnvironmentTagName fields to Instance model
- Update convertInstance function to include environment tag information
- Modify notification to use EnvironmentTagName instead of Environment
@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

1 similar comment
@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

ColdWaterLW
ColdWaterLW previously approved these changes Apr 11, 2025
@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

@ColdWaterLW ColdWaterLW merged commit 83f16ba into main Apr 11, 2025
4 checks passed
@ColdWaterLW ColdWaterLW deleted the 3008-commits branch April 11, 2025 09:14
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