Add mc_is_infrastructure flag and feeder/admin CRUD for MeshCore infra nodes
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Tranquilla
- Ambito
- api, authorization
Direzione di ricerca
Start with the ObservedNode model and its migrations, then the infrastructure action on the observed-nodes endpoint (GET /api/nodes/observed-nodes/infrastructure/), which currently filters only on protocol for MeshCore. Add mc_is_infrastructure as a default-False field, filter MeshCore results on it, and gate writes to the feeder group or is_staff, documenting the rules in docs/permissions/README.md and openapi.yaml. Done when only flagged MeshCore nodes are returned, non-feeder users get 403 on writes, and Meshtastic infrastructure output is unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
MeshCore infrastructure listing should not return every observed MC node. Add an explicit operator-controlled flag on ObservedNode and tighten the infrastructure endpoint.
UI tracking: meshflow-ui#307
Background
GET /api/nodes/observed-nodes/infrastructure/?protocol=meshcore currently returns all protocol=MESHCORE rows in the time window. Meshtastic infra correctly uses meshtastic_role ∈ INFRASTRUCTURE_ROLES. MeshCore has no equivalent role model; filtering by repeater/type alone is too loose.
Design
ObservedNode.mc_is_infrastructure
BooleanField,default=False- Meaningful only for
protocol=MESHCORE; ignore or reject writes on Meshtastic rows - Does not replace MT infrastructure semantics
Infrastructure list
protocol=meshtastic(default): unchanged (protocol=MESHTASTIC+ infrastructure roles)protocol=meshcore:protocol=MESHCOREandmc_is_infrastructure=True
Write API
- Expose on observed-node PATCH and/or dedicated action (e.g.
POST …/observed-nodes/{id}/set-mc-infrastructure/) - Permissions: Django
feedergroup oris_staffonly; deny for plain authenticated users - Document in
docs/permissions/README.mdandopenapi.yaml
Tasks
- Migration + model field
- Serializer(s) + validation (MC only)
- Permission class / object checks
- Update
infrastructureaction filter for meshcore - Unit tests (permissions + queryset)
- Optional: admin list filter
Acceptance criteria
- Only flagged MC nodes appear in meshcore infrastructure API results.
- Non-feeder non-admin users receive 403 on flag writes.
- MT infrastructure list unchanged.
- Lingua principale
- Python
- Stelle
- 1
- Fork
- 0
- Merge medio
- 1g 20h
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna 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 pskillen/meshflow-api
-
enhancement meshtastic-2.8
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
pskillen/meshflow-api#459 ·
-
enhancement meshtastic-2.8
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
pskillen/meshflow-api#465 ·
-
enhancement meshtastic-2.8
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
pskillen/meshflow-api#464 ·
-
enhancement meshtastic-2.8
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
pskillen/meshflow-api#463 ·
-
[2.8] Handle missing rxTimeApertaenhancement meshtastic-2.8
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
pskillen/meshflow-api#462 ·
Tutte le issue di pskillen/meshflow-api
Issue simili
-
ci-rerun: collect.py fails a whole pr-babysit cycle on one transient GitHub 5xx and never retriesApertafollow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Built-in QUBO fallback applies bitwise xor to floating binary statesForse già presa @iloveeyjafjalla l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
qboson/kaiwu-pytorch-plugin#1702 ·
I maintainer di solito rispondono entro 3 giorni
-
bug v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
modelcontextprotocol/python-sdk#3811 ·
I maintainer di solito rispondono entro 1 giorno
-
cost:cheap practicality:seen-in-the-wild severity:medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
fairagro/m4.2_advanced_middleware_api#620 ·
I maintainer di solito rispondono entro 1 giorno