Skip to content

176990 Implement get presubmit guard api#4940

Open
ievdokdm wants to merge 12 commits intoflutter:mainfrom
ievdokdm:176990-api
Open

176990 Implement get presubmit guard api#4940
ievdokdm wants to merge 12 commits intoflutter:mainfrom
ievdokdm:176990-api

Conversation

@ievdokdm
Copy link
Contributor

@ievdokdm ievdokdm commented Feb 4, 2026

Implement get presubmit guard api

Partial Fix: flutter/flutter#176990

Task: Implement get presubmit guard api
Summary: Implemented a new API endpoint /api/get-presubmit-guard to serve consolidated presubmit guard statuses.
Files:
- app_dart/lib/server.dart: Registered the new endpoint.
- app_dart/lib/src/request_handlers/get_presubmit_guard.dart: Implemented the request handler.
- app_dart/lib/src/service/firestore.dart: Added queryPresubmitGuards method.
- app_dart/test/request_handlers/get_presubmit_guard_test.dart: Added unit tests for the handler.
- app_dart/test/service/presubmit_guard_query_test.dart: Added unit tests for the firestore query.
- app_dart/test/src/utilities/entity_generators.dart: Added PresubmitGuard generator for tests.
- packages/cocoon_common/lib/rpc_model.dart: Exported new DTO.
- packages/cocoon_common/lib/src/rpc_model/presubmit_guard.dart: Defined response DTO.
- packages/cocoon_common/lib/src/rpc_model/presubmit_guard.g.dart: Generated JSON serialization code.
Why: Provides the dashboard with real-time visibility into presubmit checks.
@ievdokdm ievdokdm requested a review from jtmcdole February 4, 2026 23:47
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.

Implement Dashboard back-end for LUCI Tests statuses

1 participant