Reports: terminal and Vision capability columns in the devices CSV export
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 85/100
Direzione di ricerca
In Backend/pops/routers/reports.py, trova report_export e il suo ramo kind == "devices"; leggi la gestione esistente dell’intestazione, della query e di _cell(). Aggiungi le due colonne delle funzionalità alla fine, nello stesso ordine, poi estendi i controlli del CSV dei dispositivi in Backend/tests/test_features.py e aggiungi la voce richiesta a CHANGELOG.md. Il lavoro è terminato quando l’ordine delle intestazioni e i valori soddisfano i criteri e flake8 Backend/ non segnala errori.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 1
- Fork
- 2
- Merge medio
- 8h 6m
- PR unite (30g)
- 122
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PashaCore/POps
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue türkçe
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue türkçe
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue türkçe
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue türkçe
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PashaCore/POps
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
TomerAberbach/profiler-md#733 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
its-me-prash/vwgroup-connect-ha#1858 ·
I maintainer di solito rispondono entro 1 giorno
-
area: client bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Deleting all alarms or timers shows deleted ones until the next update when there are none leftApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
leikoilja/ha-google-home#1107 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Graphify-Labs/graphify#4524 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno