Reports: terminal and Vision capability columns in the devices CSV export
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
Línea de trabajo
En Backend/pops/routers/reports.py, busca report_export y su rama kind == "devices"; lee el tratamiento existente de la cabecera, la consulta y _cell(). Añade las dos columnas de capacidades al final y en el mismo orden, luego amplía las comprobaciones del CSV de dispositivos en Backend/tests/test_features.py y añade la entrada requerida a CHANGELOG.md. El trabajo está terminado cuando el orden de las cabeceras y los valores cumplen los criterios y flake8 Backend/ no devuelve errores.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
A PC can have the remote terminal and/or screen view (Vision) turned off by its capability policy (TERMINAL_ENABLED=0 / VISION_ENABLED=0 at install, or switched off from the server). Schools use this to keep staff PCs out of reach of remote commands, and they want to show it to management or auditors as a list. The panel shows it per device, but the CSV export of devices (Raporlar → CSV olarak indir → devices) does not include it.
The agent reports its current state, and the server stores it in clients.cap_terminal_enabled and clients.cap_vision_enabled (NULL means the agent has not reported it, for example an old agent; see migration Backend/migrations/0006_agent_capabilities.sql).
What to do
In Backend/pops/routers/reports.py, function report_export, branch kind == "devices":
- add the two columns
terminal_enabledandvision_enabledat the end of the header (so existing spreadsheets that rely on column positions keep working), - select
c.cap_terminal_enabledandc.cap_vision_enabledin the query, in the same order.
Acceptance criteria
- The devices CSV has
terminal_enabledandvision_enabledas its last two columns; values follow the existing boolean columns (enrolled,quarantined), and an unknown state is an empty cell. - Cells still go through
_cell()(formula-safe export). -
Backend/tests/test_features.pychecks that the devices CSV header ends with the two new columns (next to the existing CSV checks). -
CHANGELOG.mdhas a line under## [Unreleased]→### Addedstarting with**Backend:**. -
flake8 Backend/is clean.
The integration tests need PostgreSQL and a running backend; CONTRIBUTING.md explains how to run them against a throwaway database. CI runs them on every pull request too.
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 2
- Merge medio
- 6 h 9 min
- PR fusionados (30 d)
- 109
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PashaCore/POps
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
documentation good first issue türkçe
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
good first issue türkçe
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
documentation good first issue türkçe
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
good first issue türkçe
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de PashaCore/POps
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
UKGovernmentBEIS/inspect_ai#5802 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
no-human-ai/no_human#660 ·
Los mantenedores suelen responder en 1 día
-
Add a Security Insights v2 fileAbiertodocumentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
documentation need help question
Dificultad 1/5 1-3 horas Aptitud para principiantes 66/100
phonology024/babelscribe#26 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100