Skip to content

refactor: import HttpHeader from campus.model - #120

Merged
nycomp merged 1 commit into
mainfrom
refactor/model-header-import
Oct 28, 2026
Merged

nycomp merged 1 commit into
mainfrom
refactor/model-header-import

Conversation

@nycomp

@nycomp nycomp commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Step 2 of the coordination plan on nyjc-computing/campus#982 (parent: nyjc-computing/campus#970, phase 3 prep).

campus PR nyjc-computing/campus#984 remigrated the webauth header models (HttpAuthProperty / HttpHeader / HttpHeaderWithAuth) into campus.model (campus/model/http.py, re-exported via campus.model), restoring the pre-extraction campus.model.HttpHeader API. campus.webauth.models remains on weekly only as a temporary compatibility shim serving this repo.

What

  • campus_python/json_client/__init__.py: from campus.webauth.models import HttpHeader → from campus.model import HttpHeader (same class object — the shim re-exports identities, so no behavior change).
  • poetry lock: campus-suite relocked 50e69c9 → 56ee636 (the #984 merge commit, carrying the new path). Required in the same PR or CI would fail to import.

Verification

  • poetry install from the new lock (campus-suite @ 56ee636) + pytest: 321 passed locally in a worktree — the exact CI configuration.
  • Import identity checked against real weekly code: json_client.HttpHeader is campus.model.HttpHeader.

After this merges (per #982 plan)

  1. campus PR: delete the campus.webauth.models shim + advance campus's campus-api-python lock in the same PR (grep gate: zero webauth.models importers).
  2. Downstream relocks, one PR each — classroom (main), admin (main), profile (dev branch), cli (main): bump campus-suite + campus-api-python together in one commit (mixed relock is the only breakage vector).

Refs nyjc-computing/campus#982

campus#982 remigrated the webauth header models back into
campus.model (campus.model.http, re-exported via campus.model);
campus.webauth.models remains only as a temporary compatibility shim
on campus weekly. Flip json_client to the canonical path and relock
campus-suite to the weekly commit carrying the new path (56ee636).

Coordinated with campus#982: after this merges, campus deletes the
shim and downstream consumers relock both campus-suite and
campus-api-python together.

Refs nyjc-computing/campus#982
@nycomp
nycomp merged commit 695992d into main Oct 28, 2026
5 checks passed
@nycomp
nycomp deleted the refactor/model-header-import branch October 28, 2026 01:32
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