Skip to content

feat: add explicit endpoint removal and tombstones - #44

Closed
mojtaba-arvin wants to merge 49 commits into
mainfrom
feature/endpoint-removal-tombstones-v2
Closed

mojtaba-arvin wants to merge 49 commits into
mainfrom
feature/endpoint-removal-tombstones-v2

Conversation

@mojtaba-arvin

@mojtaba-arvin mojtaba-arvin commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add explicit endpoint removal for decorator registrations and individual VersionedRouter routes.
  • Preserve earlier versions while suppressing removed routes from the declared version onward.
  • Allow intentional reintroduction only from a later source version.
  • Keep removal independent of import order and prevent stale registrations from resurrecting removed routes.
  • Make removed routes absent from URL resolution, reject reverse lookups, and expose a distinct <removed> state in version matrices and check_versions.
  • Add regression tests and document the public contract.

Verification

Latest head: 7666fbba71545e3146428cac329106f8ca29f18d

  • Pull request gate: passed (run 44344785419).
  • OpenAPI contract integration: passed (run 44344785382).
  • CodeQL (Python and JavaScript/TypeScript): passed (run 44344785380).
  • The gate includes unit/integration tests, lint, wheel build and installed-wheel smoke, website build, Windows/macOS compatibility smoke, and Python 3.10/Django 4.2 plus Python 3.15/Django 6.1 smoke environments.

The PR remains a draft pending final review; it has not been merged.

Copy link
Copy Markdown
Owner Author

Cross-PR audit note before this draft is advanced:

  • The lifecycle middleware behavior changed in the earlier VersionedRouter work (feat: add version-aware DRF ViewSet routing #37), but the review found that LifecycleMiddleware.__call__() extracts version before Django resolves the URL. Its normal path therefore still depends on regex parsing, and nested mounts containing an API-like parent prefix can select the wrong version. This is tracked as #47; do not treat the lifecycle/route-version objective as closed until the route-aware design and real middleware-chain tests pass.
  • The OpenAPI workflow's path filter does not cover core registry/decorator changes, and the consumer schema test does not yet exercise a DRF action removed through VersionedRouter.remove(). Follow-up criteria are in #48.

The current PR #44 gate, OpenAPI run, and CodeQL runs were observed passing on this head. These are cross-cutting acceptance gaps, not claims that the current PR's own test run failed.

Copy link
Copy Markdown
Owner Author

Superseded by the consolidated integration PR #58, which includes this work and passed the complete required PR gate on exact head 98f79472777f9e8e0bbf78c16531d97a46ad0a3a. The consolidated change is now merged to main as a8b39343c478bb5a8afbe1de20d95a2b10630f37. Closing this focused PR to avoid leaving duplicate, already-integrated branches open; its implementation history remains in the PR conversation and the consolidated merge.

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.

1 participant