check-config: groupProfiles order warning compares fields lists, not effective levels

Offen
#440 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
78/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
javascript
Bereich
backend, cli

Rechercherichtung

Find the check-config logic that checks groupProfiles order and the related tests. Read how source policies are merged with profiles, then compare effective levels per source. Add the finance/staff example as a regression test; done means it no longer reports an order warning when both profiles effectively show the fields.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:server bug

check-config reports a false order warning for groupProfiles. It fires when a later profile lists only fields at a level that the earlier profile already gets from the source policy.

Example:

  • finance: {fields: {Sales: show, amount: show, Customer: show}}
  • staff: {fields: {Region: show, Product: show}}

check-config warns "entry 2 (staff) shows fields that entry 1 (finance) holds back". But the source policy already shows Region and Product, so the effective level is show for both profiles.

Not affected: runtime behaviour. The profile choice is correct; only the warning is wrong.

Fix: compare the effective levels per source (source policy merged with the profile), not the profiles' fields lists. Add the example as a test.

Found while setting up a live test stack with three test users.

Vorherrschende Sprache
JavaScript
Sterne
1
Forks
1
Ø Merge
3 Std. 21 Min.
Gemergte PRs (30 T.)
250

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus eizedev/pivotkit

Alle Issues in eizedev/pivotkit

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.