Commit 1a1632a
authored
fix(gate-57): delete six orphaned write capabilities (#530)
* fix(gate-57): delete six orphaned write capabilities
gate-57 orphaned-write-capability reported 6 findings over 55 lib/Service
files. All six had zero callers; all six are deleted.
- AangebodenGebruik\GebruikStatusHandler::updateStatus — the whole class is
unreferenced. Its docblock says "AangebodenGebruikService delegates all
updateStatus() logic here"; AangebodenGebruikService has no such method and
never constructs the handler, so the method-decomposition extraction landed
without its caller ever being updated. Deleted with the class, and with
StatusTransitionValidator, whose only consumer it was.
- SoftwareCatalogContactSyncService::importContact — validated a UID and
returned it unchanged. The two live consumers (OrganizationContactSyncJob,
Repair\MigrateContactsToNc) use isAvailable/findContactByUid/
findContactForRecord/syncToContacts, which already serve resolve-or-create.
Spec REQ-SCNC-003 updated: the service no longer names importContact.
- SoftwareCatalogue\ContactPersonHandler::updateUserGroupsFromRoles — already
@deprecated, logged "deprecated - role assignment now based on organization
type" on every call, ignored both role arguments and forwarded to
updateUserGroupsFromContactData(). No caller, so its backward compatibility
had no consumer. Group membership is a permission fact; a second entry point
into it is a surface, not a convenience.
- SoftwareCatalogueService::sendGebruikerWelcomeEmail,
::syncUserWithRevertedContact and ::updateUserFromRevertedGebruiker — each
was a single logger->info() and nothing else. They named capabilities
(send a welcome mail, reconcile a user after an object revert) that have
never been implemented; wiring a log line in would have hidden the gap.
1 parent ece273a commit 1a1632a
7 files changed
Lines changed: 65 additions & 434 deletions
File tree
- lib/Service
- AangebodenGebruik
- SoftwareCatalogue
- openspec/specs/softwarecatalog-contacts-to-nc
- tests/Unit/EventListener
This file was deleted.
Lines changed: 0 additions & 108 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
132 | 127 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 128 | | |
146 | 129 | | |
147 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
963 | 963 | | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | 964 | | |
999 | 965 | | |
1000 | 966 | | |
| |||
0 commit comments