Skip to content

refactor(model): remove campus.webauth.models shim - #985

Merged
ngjunsiang merged 1 commit into
weeklyfrom
refactor/webauth-models-shim-removal
Oct 28, 2026
Merged

ngjunsiang merged 1 commit into
weeklyfrom
refactor/webauth-models-shim-removal

Conversation

@nycomp

@nycomp nycomp commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Step 3 of the coordination plan on #982 (parent: #970) — follow-up to #984, unblocked by campus-api-python#120 (merged, SDK main 695992d).

What

  • Delete campus/webauth/models/ — the temporary re-export shim from refactor(model): remigrate webauth models into campus.model #984. Its only consumer (the SDK's json_client) now imports from campus.model import HttpHeader.
  • Drop models from campus/webauth/__init__.py (__all__ + package import).
  • Advance campus-api-python lock 14ef22c → 695992d in the same change — required, or the locked SDK (still importing the old path) would break auth/api/audit boots on the weekly autodeploy. This makes the contract suite the integration gate: it runs the flipped SDK against shim-free campus.

Grep gate (zero webauth.models importers)

Verification (worktree venv with SDK force-reinstalled to 695992d)

  • unit: all passed · contract: all passed (integration gate) · ruff check .: green
  • Import smoke: campus.webauth.models → ModuleNotFoundError; campus.webauth no longer re-exports it; json_client.HttpHeader is campus.model.HttpHeader; all packages import.

Acceptance (#982)

campus.model.HttpHeader / HttpAuthProperty / HttpHeaderWithAuth importable; campus.webauth.models gone; model boundary unchanged ({common}-only).

After merge: downstream relocks (classroom / admin / profile-dev / cli) bump campus-suite + campus-api-python together per repo — #982 closes once those land.

Refs #982 #970

Follow-up to #984: campus-api-python#120 flipped the SDK's json_client
to campus.model, so the temporary compatibility shim at
campus.webauth.models has no importers left (grep gate: zero hits —
in-repo, SDK main, downstream heads).

- delete campus/webauth/models/
- drop models from campus/webauth/__init__.py (__all__ + import)
- advance campus-api-python lock 14ef22c -> 695992d (#120 merge) in
  the same change: the contract suite is the integration gate proving
  the flipped SDK resolves campus.model.HttpHeader against shim-free
  campus

Completes the campus-model remigration acceptance: campus.model.HttpHeader /
HttpAuthProperty / HttpHeaderWithAuth importable, campus.webauth.models
gone.

Refs #982 #970
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.

2 participants