feat(manager): remove V1 Preheat API and related components #4070
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.
Description
This pull request removes the deprecated "V1 Preheat" functionality from the project. It includes the deletion of associated API endpoints, data models, handlers, and tests, as well as a minor unrelated addition of a rate limiter middleware for the "Create Job" endpoint.
Removal of "V1 Preheat" functionality:
API Endpoints:
/preheats
(POST) and/preheats/{id}
(GET) endpoints fromswagger.json
,swagger.yaml
, anddocs.go
. These endpoints were used for creating and retrieving "V1 Preheat" resources. [1] [2] [3] [4] [5] [6] [7] [8] [9]Data Models:
CreateV1PreheatRequest
,CreateV1PreheatResponse
, andGetV1PreheatResponse
models fromswagger.json
,swagger.yaml
, anddocs.go
. These models were specific to the "V1 Preheat" feature. [1] [2] [3] [4] [5] [6]Handlers:
CreateV1Preheat
andGetV1Preheat
handler functions frompreheat.go
. These functions implemented the logic for the removed endpoints.Tests:
preheat_test.go
. These tests validated the behavior of the deleted handlers.Router Configuration:
/preheats
endpoints fromrouter.go
.Other Changes:
router.go
to control request rates.Related Issue
Motivation and Context
Screenshots (if appropriate)
Types of changes
Checklist