audit surface: migrate to the consolidated campus_python.audit client (post-#178) and re-pin

Abierto
#100 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
43/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
api, cli

Línea de trabajo

Start in campus_cli/audit/client.py and inspect the audit call sites under campus_cli/audit/; the issue estimates about 46 call sites whose dict-consuming code may need to handle CampusResponse via .json(). Read the consolidated client changes in campus-api-python#178 and the response and query fixes in #180, then run the audit tests. Done means the audit commands work with campus-api-python v0.11.0, the dependency is pinned, and release 0.8.2 is cut.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Follow-up from the 2026-11-21 bugfix sweep.

Current state (campus-cli 0.8.0/0.8.1 + campus-api-python v0.10.9 wheel):

  • campus audit traces list/search and apikeys list crash client-side:
    CampusRequest.get() got an unexpected keyword argument 'params' — the
    v0.10.9 wheel's audit resources pass params= where get() takes
    query= (kwarg fix: campus-api-python#180).
  • The installed 0.8.0 is affected today; cli#99 (0.8.1) stays pinned at
    v0.10.9 so it inherits the crash. Workaround until the migration: drive
    traces via the campus-admin audit UI, raw HTTP, or the SDK directly.

The migration: the audit-namespace reorg (campus-api-python#178,
merged unreleased) consolidated the flask-campus audit client into the
SDK as campus_python.audit — the PR itself notes "campus-cli vendors a
duplicate today, can adopt it later". The next SDK release from main is
v0.11.0 (minor: CampusResponse return types are breaking for the CLI's
dict-consuming audit code, ~46 call sites in campus_cli/audit/).

Scope: adopt the consolidated client in campus_cli/audit/
(AuditRoot/CampusRequest construction in client.py already matches the
new surface's auth style), unwrap CampusResponse (.json()) at the
render boundary, pin campus-api-python v0.11.0, cut 0.8.2.

Lenguaje dominante
Python
Estrellas
0
Forks
0
Merge medio
14 min
PR fusionados (30 d)
24

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nyjc-computing/campus-cli

Todos los issues de nyjc-computing/campus-cli

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.