Repository navigation
refactor: remove the middleware management API - #317
Merged
Merged
Conversation
The middleware management API was specified but never served, and is not planned any more: the stack of middlewares (task plugins, with FOCA) is managed by config only. Its specification (`api/middleware_management.yaml`) and its collection (`middlewares`, with two unique indexes) are removed; the tests of failing unique indexes other than that of task identifiers use a collection of a test overlay instead. The upgrading notes say that the collection can be dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideRemoves the unserved middleware management API, its OpenAPI specification, and default database collection/index configuration, then updates documentation and database tests to treat middleware as configuration-only while retaining unique-index error coverage. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
uniqueg
marked this pull request as ready for review
October 24, 2026 22:41
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #317 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 29 29
Lines 2469 2469
=========================================
Hits 2469 2469 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
Removes the middleware management API: its OpenAPI specification (
pro_tes/api/middleware_management.yaml, never served) and themiddlewarescollection with its indexes inconfig.yaml. Plugins are managed by configuration only (maintainer decision; #197 and PR #199 are superseded). The upgrade guide says the collection is no longer created and can be dropped. The database tests that used themiddlewarescollection as an example of another unique index now use an overlay with a collection of their own.Light lane: removes files and configuration; no runtime code changes. I reviewed the diff myself.
Verification
Run locally on the branch:
mkdocs build --strict: passedNot run locally: the Docker Compose smoke test and the MongoDB 7.0 CI entry (they run in CI).
Open questions
None.
Closes #316
🤖 Generated with Claude Code
Summary by Sourcery
Remove the unused middleware management API and its database configuration, making middleware management configuration-only.
Enhancements:
Tests: