Skip to content

fix(radar): bypass stale flag-off responses - #10464

Merged
diegosouzapw merged 1 commit into
release/v3.8.50from
fix/radar-stale-flag-404
Aug 15, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.50from
fix/radar-stale-flag-404

Conversation

@diegosouzapw

Copy link
Copy Markdown
Owner

Problema

Depois de ativar RADAR_ENABLED na UI, o dashboard podia continuar exibindo o 404 recebido enquanto a flag estava desligada. Os GETs de settings/catalog não impediam cache do 404, e o cliente não forçava revalidação.

Correção

  • marca os 404 flag-off de settings e catálogo como Cache-Control: no-store;
  • usa cache: "no-store" nos fetches flag-gated da página Radar;
  • adiciona regressões para as duas pontas.

Provas

  • RED: GET /api/radar/settings retornava cache-control: null; o teste do cliente não encontrava política no-store.
  • GREEN: 38/38 testes Radar relevantes.
  • npm run typecheck:core verde.
  • git diff --check verde.

Relato live: VPS .15, flag persistida como ativa (/api/radar/status passou de 404 para 401 antes da autenticação), mas a página permaneceu no 404 anterior.

@diegosouzapw
diegosouzapw merged commit ee221d8 into release/v3.8.50 Aug 15, 2026
21 of 22 checks passed
@diegosouzapw
diegosouzapw deleted the fix/radar-stale-flag-404 branch August 15, 2026 11:41
diegosouzapw added a commit to Chewji9875/OmniRoute that referenced this pull request Aug 15, 2026
…CI merge-ref)

Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>
tkgo11 pushed a commit to tkgo11/OmniRoute that referenced this pull request Sep 23, 2026
Co-authored-by: Xiangzhe <bakryun0718@proton.me>
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
Co-authored-by: Xiangzhe <bakryun0718@proton.me>
Rimonkumar pushed a commit to Rimonkumar/OmniRoute that referenced this pull request Oct 9, 2026
Co-authored-by: Xiangzhe <bakryun0718@proton.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants