App - sorting already loaded neighbors of a repeater glitches on fail

Aperta
#3,942 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
54/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c
Ambito
mobile

Direzione di ricerca

The report describes sorting neighbours in the app after the full list has loaded, then a timeout leaves the banner at “Showing 0 of 21” while the previous rows remain. Start by locating the app’s repeater-neighbour list, ordering controls, and timeout handling; the payload names no files or tests. Done when changing the order and timing out keeps the displayed count consistent with the retained list and the issue can be reproduced and checked.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I've encountered this bug on MeshCore-v1.52.0-windows-x64.

I loaded the full list of neighbours (21) for my repeater, then I noticed there was ordering available under the filter-like button and tried to sort from the strongest.

My expectations were that the already loaded list was going to get reordered. Instead, it seemed like the app tried to pull neighbours from the repeater again (failed with a timeout that one time, I don't have a perfect route to this one). After that, the info banner is saying "Showing 0 of 21 neighbours," although all of the 21 previously loaded repeaters are still listed and don't disappear when I switch back and forth between the list and map views. No actual reordering happened. The list view got a "Load more" button by that ordering change, too - it wasn't present before because the whole list had been pulled already.

It seems that this "0 out of n repeaters while the old list is still present" reliably occurs when you change the ordering and the first pull times out, otherwise it replaces the previous list normally (the "load more" button over the previous list also achieves this).

It's still a bit weird to start pulling the whole list again instead of sorting the already loaded one but I understand that it's at least consistent with change of ordering on partially loaded lists.

image image
Lingua principale
C
Stelle
3.9k
Fork
1.5k
Merge medio
2g 7h
PR unite (30g)
56

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di meshcore-dev/MeshCore

Tutte le issue di meshcore-dev/MeshCore

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.