Commit afc9dbe
Conduction Release Bot
fix(softwarecatalog): resolve the config key through one map, not by derivation
CI's PHPUnit matrix went red on all six cells. Three separate causes, and
all three are the same shape: something DERIVED the app-config key from the
object type, and the slug half of that pair was just translated.
- `getRegisterIdForObjectType()` builds `$objectType . '_schema'`. With
slugs English and the stored keys still Dutch that lookup misses, and a
miss is not an error — it returns null and the caller reads "not
configured". Ratings and every catalog type resolved to no register.
- `FacetService::fetchBaseObjects()` did the same and returned an empty
facet set, which renders as a page with no filters rather than a failure.
- `catalog-ratings.json` still declared the schema map key `beoordeeling`.
The by-hand fix for map keys covered the main register file only; the
register.d fragments were not swept. Found systematically this time.
All three now go through `SettingsService::LEGACY_SCHEMA_KEY`, the one
place that knows slug and stored key diverge. FacetService reads it as a
CONSTANT rather than calling the service: it takes SettingsService as a
collaborator and every test mocks it, so a method call there returns the
mock default and misses in exactly the tests meant to catch this.
Also: one assertion hardcoded the old name inside a REGEX literal
(`/module.*dienst|dienst.*module/`) — a position no rename pattern reaches.
The control I used before this was WRONG. `git stash` reverts uncommitted
work only, and this branch already had three commits, so what I compared
against was my own branch. It reported 7 pre-existing failures where a
real control from `origin/development` reports none. Rebuilt with
`git archive origin/development`.
Verified against that real control, full unit suite both sides:
684 tests, 1 error, 25 skipped on BOTH — same count, so nothing silently
stopped running, and the one error (Symfony HeaderUtils missing under the
unit bootstrap) is identical on development.1 parent 8067241 commit afc9dbe
4 files changed
Lines changed: 58 additions & 5 deletions
File tree
- lib
- Service
- Settings/register.d
- tests/Unit/Service
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
403 | 413 | | |
404 | 414 | | |
405 | 415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
105 | 133 | | |
106 | 134 | | |
107 | 135 | | |
| |||
986 | 1014 | | |
987 | 1015 | | |
988 | 1016 | | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
989 | 1032 | | |
990 | 1033 | | |
991 | 1034 | | |
| |||
1029 | 1072 | | |
1030 | 1073 | | |
1031 | 1074 | | |
1032 | | - | |
| 1075 | + | |
1033 | 1076 | | |
1034 | | - | |
| 1077 | + | |
1035 | 1078 | | |
1036 | 1079 | | |
1037 | 1080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments