Commit ca07d19
committed
- Introduced `UNCHANGED` as a new operation type for settings.
- Updated `convertToJson` method to include unchanged settings in JSON output.
- Enhanced `replaceAllSettings` logic to track unchanged settings when content remains identical.
- The reason for this is idempotency: if nothing changed, nothing should be done. Replacing the present content of an existing setting is unnecessary, wasting CPU cycles, and we also want the admin to be informed about what actually is getting changed. Before, all of these unchanged elements would be counted as "updated".
1 parent 069ec88 commit ca07d19
1 file changed
Lines changed: 14 additions & 6 deletions
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
1194 | | - | |
| 1194 | + | |
| 1195 | + | |
1195 | 1196 | | |
1196 | 1197 | | |
1197 | 1198 | | |
1198 | 1199 | | |
1199 | 1200 | | |
1200 | 1201 | | |
1201 | 1202 | | |
| 1203 | + | |
1202 | 1204 | | |
1203 | 1205 | | |
1204 | 1206 | | |
1205 | 1207 | | |
1206 | 1208 | | |
1207 | 1209 | | |
1208 | 1210 | | |
| 1211 | + | |
1209 | 1212 | | |
1210 | 1213 | | |
1211 | 1214 | | |
1212 | 1215 | | |
1213 | 1216 | | |
1214 | 1217 | | |
1215 | | - | |
| 1218 | + | |
| 1219 | + | |
1216 | 1220 | | |
1217 | 1221 | | |
1218 | 1222 | | |
| |||
1268 | 1272 | | |
1269 | 1273 | | |
1270 | 1274 | | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
1275 | 1283 | | |
1276 | 1284 | | |
1277 | 1285 | | |
| |||
0 commit comments