Conversation
…stics and management - Implemented TaskStatsDialog for displaying task execution statistics and audit logs. - Added TaskTableView for rendering a table of tasks with sorting and selection capabilities. - Created taskPageConfig for managing task-related constants and utility functions.
- Add shared Bruno contracts and validation - Add Bruno file parser for .bru request metadata - Add Bruno JSON report parser for result normalization - Add safe CLI runner with artifact path management - Add Bruno persistence layer with DB schema - Add Bruno repository sync service - Add Bruno manual run orchestration - Add REST API routes for Bruno automation - Mount /api/bruno routes in server
- Introduced a comprehensive design document for integrating Bruno as a native API automation capability within the existing platform. - Outlined the context, goals, architecture, execution engine model, data model, REST API design, and security considerations. - Defined phased delivery approach for implementation, including manual execution, scheduler integration, platform experience enhancements, and GitLab triggering.
- Deleted the Bruno automation types and interfaces from shared types. - Removed the BrunoAutomation component and its associated hooks from the frontend. - Cleaned up references to Bruno automation in the sidebar and routing. - Removed related tests for Bruno automation from both backend and frontend.
- Implement tests for useCases, useExecutions, and useTasks hooks to ensure correct API interactions and state management. - Create tests for authApi service functions including token management, user registration, login, and password reset functionalities. - Mock fetch and localStorage/sessionStorage to isolate tests from actual API calls and storage. - Validate query parameters and request bodies for various scenarios in the hooks and services.
…ntain permissions' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Comment on lines
+40
to
+43
| router.post('/callback/test', [ | ||
| ipWhitelistMiddleware.verify, | ||
| rateLimitMiddleware.limit | ||
| ], async (req: Request, res: Response) => { |
Comment on lines
+222
to
+225
| router.post('/callback/manual-sync/:runId', [ | ||
| ipWhitelistMiddleware.verify, | ||
| rateLimitMiddleware.limit | ||
| ], async (req: Request, res: Response) => { |
| * | ||
| * 访问控制:需要认证(通过 optionalAuth 获取用户信息,如未认证则仅返回部分指标) | ||
| */ | ||
| router.get('/metrics', [generalAuthRateLimiter, optionalAuth], (_req: Request, res: Response) => { |
Comment on lines
+149
to
+154
| router.post('/run-case', [ | ||
| generalAuthRateLimiter, | ||
| optionalAuth, | ||
| rateLimitMiddleware.limit, | ||
| requestValidator.validateSingleExecution | ||
| ], async (req: Request, res: Response) => { |
Comment on lines
+336
to
+341
| router.post('/run-batch', [ | ||
| generalAuthRateLimiter, | ||
| optionalAuth, | ||
| rateLimitMiddleware.limit, | ||
| requestValidator.validateBatchExecution | ||
| ], async (req: Request, res: Response) => { |
Comment on lines
+603
to
+607
| router.post('/callback', [ | ||
| ipWhitelistMiddleware.verify, | ||
| rateLimitMiddleware.limit, | ||
| requestValidator.validateCallback | ||
| ], (req: Request, res: Response) => { |
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.
描述
请简要描述此 PR 的更改。
相关 Issue
关闭 #(Issue 号)
修改类型
请选择相关选项:
修改清单
测试
请描述你测试了这些更改的方式:
npx tsc --noEmit -p tsconfig.jsonnpx tsc --noEmit -p tsconfig.server.jsonnpm run start截图(如果适用)
请添加相关的截图来演示你的更改。
其他信息
添加任何其他应该注意的信息。