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

Aberta
#3,942 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
54/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
c
Domínio
mobile

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
C
Estrelas
3.9k
Forks
1.5k
Merge médio
2d 19h
PRs com merge (30d)
61

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de meshcore-dev/MeshCore

Todas as issues de meshcore-dev/MeshCore

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.