Filter ga_standards by saved selection, with ?all=true bypass

Aperta
#1,083 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, typescript
Ambito
api, backend, frontend

Direzione di ricerca

Inizia dal punto di ingresso ga_standards in application/web/web_main.py, poi esamina application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx e il pattern esistente di ResourceSelector ?all=true. Traccia come /standards applica apply_user_resource_filter mantenendo il controllo di idoneità di GA. Il lavoro è completato quando passano gli scenari elencati per utenti autenticati, bypass, utenti anonimi e flags disattivati, e Map Analysis usa come impostazione predefinita la selezione salvata supportando al contempo tutti gli standard idonei.

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

Descrizione

enhancement not ready for development P2 untriaged

Parent: #1079 · Splits #1043 §2 · Project: https://github.com/orgs/OWASP/projects/60

What

GET /rest/v1/ga_standards feeds Map Analysis / gap-analysis dropdowns. It is not passed through apply_user_resource_filter. Completing the profile view means:

  1. Filter ga_standards the same way as /standards when the user has a non-empty selection (keep OpenCRE; empty selection = full eligible list).
  2. Frontend must pass ?all=true wherever GA should still span all eligible standards (same pattern as ResourceSelector).

Left out of #586 on purpose so we would not silently shrink the dropdowns.

Do

  • Apply apply_user_resource_filter (or equivalent) on /rest/v1/ga_standards
  • Keep GA eligibility gating (resource_name_ga_eligible_in_db)
  • Map Analysis UI: default to filtered list when a selection exists; explicit “all eligible standards” uses ?all=true
  • Tests: logged-in filtered, ?all=true bypass, anonymous full, flags off = full

Success

A user who saved ASVS+CWE sees those (if GA-eligible) in the dropdowns by default, and can still run a comparison against the full eligible set without clearing their profile.

Related

  • application/web/web_main.py ga_standards
  • application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx
  • #1043
Lingua principale
Python
Stelle
210
Fork
167
Merge medio
4g 12h
PR unite (30g)
28

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 OWASP/OpenCRE

Tutte le issue di OWASP/OpenCRE

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.