check-config: groupProfiles order warning compares fields lists, not effective levels
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
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
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
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus eizedev/pivotkit
-
accessibility area:react bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:tests
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:cli bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:cli enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:react enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in eizedev/pivotkit
Ähnliche Issues
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
mattabate/life-distributable#231 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
sfbrigade/pocket-gardens#60 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
The print preview leaves writing space short by the margins of hidden headers, footers and solutionsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
PreTeXtBook/pretext#3329 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
devarshishimpi/codra#178 ·
Maintainer antworten meist innerhalb von 1 Tag