@rentman/rm-core 1.6.12 → 1.6.13-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,487 +1,493 @@
1
- #Changelog
2
- Contains new features, breaking changes and their reasoning
3
-
4
- ## 1.6.12
5
- - Fix error that occurs when trying to resolve a non-deferred collection entry.
6
-
7
- ## 1.6.11
8
- - Fix issue where `QueryMatcher.matchComplexQuery` would return the wrong value.
9
-
10
- ## 1.6.10
11
- - **Breaking**: Remove `linkType`, `linkIdArray` properties from `LinkCollectionDefinition`. Add `linkType`,
12
- `linkIdArray` parameters to `ItemAdministrator.getLinkCollectionsFromDef`.
13
-
14
- ## 1.6.9
15
- - Redeploy of `1.6.8`
16
-
17
- ## 1.6.8
18
- - Add support for `not` in queries
19
-
20
- ## 1.6.7
21
- - Fix issue where `CollectionMatcher.addToCollections` wouldn't return the correct type.
22
-
23
- ## 1.6.6
24
- - Add `callOnAdd` parameter in `CollectionHandler.batchExtend`. Set `updateInitial` to true. Remove `updateInitial` parameter in `CollectionEntry.extend`, as it should always be true.
25
- > The `extend` function only concerns itself with remote items, so no local changes should be generated.
26
-
27
- ## 1.6.5
28
- - Fix issue where a derived column could be marked as the `link` (parent) column in the column set.
29
- > This could lead to instances where a different column would be set to the value of the parent.
30
-
31
- ## 1.6.4
32
- - Fix issue where the `onChange` collection callback would not be called when updating it in the options.
33
- - Add `callOnAdd` parameter to collection matcher. When set to `false`, `onAdd` is not called for the `resultCollectionResource`.
34
-
35
- ## 1.6.3
36
- - Properly type ApiResponseProcessor - fetchObjectArray
37
-
38
- ## 1.6.2
39
- - Fix issue where the collection handler would return collection entries before they were resolved when calling `batchFetch`.
40
-
41
- ## 1.6.1-3
42
- - Check for linkedTo before checking for subqueries in QueryMatcher
43
- > Linkedto also has `.query` and was incorrectly marked as a subquery
44
-
45
- ## 1.6.1-2
46
- - Fixed shorthand query with null values
47
- > The QueryParser would incorrectly identify subqueries when using null in a shorthand
48
-
49
- ## 1.6.1-1
50
- - Fixed shorthand query with Moment values
51
- > The QueryParser would incorrectly identify Moment objects as a subquery
52
-
53
- ## 1.6.1
54
- - Added support for subqueries in QueryParser and QueryMatcher
55
- > Collections using subqueries will always return 'maybe' in the QueryMatcher
56
-
57
- ## 1.6.0
58
- - All external callbacks are now wrapped in a `try ... catch` block. This prevents them from breaking core functionality.
59
- - **Breaking**: Add `ExceptionHandlerInterface` parameter to core constructor.
60
-
61
- ## 1.5.9
62
- - Fix issue that occurs when trying to resolve a `ColumnSet` using a single non-existing column.
63
- Catch exceptions that might occur when resolving an `ItemEntry`.
64
- - Add `mergeRequestColumns`, `mergeResponseColumns` to `ColumnSet`. When encountering new items while expanding a collection, add them to the collection.
65
-
66
- ## 1.5.8
67
- - Introduce `RemoteViewResource` and `LocalViewResource`.
68
- > The `fields` property of a `RemoteViewResource` represents
69
- server values, while the `fields` property of a `LocalViewResource` represents local values.
70
- - The `fields` property of a `ViewResource` is now read only.
71
-
72
- ## 1.5.7-1
73
- - Make ItemResource/CollectionResource base class abstract
74
- - Add missing overload functions in some places
75
- - Fix default comparator `QueryMatcher.parseSimpleQuery`
76
- - Fix `ExtendedCollectionMatchResult` `collection` property type
77
-
78
- ## 1.5.7
79
- - Properly type Collections & ItemResources (and return values) in the whole core.
80
- > The core will now properly return Collections & ItemResources based on the passed CollectionOptions.
81
- > You can now also type the expected collection type
82
-
83
- ```
84
- // Expects a collection with editCollection and editItems both `true`
85
- // Will properly return EditResources for all collection functions
86
- const collection: CollectionEditResource<EditResource>;
87
-
88
- // other variations are:
89
- // CollectionViewResource<ViewResource>
90
- // CollectionViewResource<EditResource>
91
- // CollectionEditResource<ViewResource>
92
-
93
- this.core.itemAdministrator.getCollection(
94
- 'Notitie',
95
- {
96
- editCollection: true, // Will return a CollectionEditResource
97
- editItems: true // Will return EditResources instead of ViewResources in `.items`
98
- }
99
- )
100
- ```
101
-
102
- ## 1.5.6
103
- - Add `getAllLocalCaches` to `LocalCacheManagerInterface`, remove item entries from all local caches on socket delete.
104
-
105
- ## 1.5.5
106
- - Add 'order' column type handling to ApiFormatter functions
107
-
108
- ## 1.5.4
109
- - Fix issue where parent would be incorrectly set when cloning a single item.
110
- - Type functions related to expansion maps in `ItemEntryService`.
111
-
112
- ## 1.5.3
113
- - Fix issue where the `enableSave` collection resource option would default to `false`. This would throw an error when
114
- calling `save` on a collection resource where this option was not explicitly set.
115
-
116
- ## 1.5.2
117
- - Type functions in `ColumnUtil` class.
118
- - Add `getRequestColumnId` and `containsDerivedColumns` to `ColumnUtil`.
119
- > `getRequestColumnId` should be used instead of `Util.getFirstProperty` when retrieving a column ID.
120
- - **Breaking:** Remove `ColumnUtil.isColumnSubset`. Use `ColumnSet.isSuperSetOf` instead.
121
- - Remove `findColumnObject`. Rename `findColumn` to `findRequestColumn`.
122
-
123
- ## 1.5.1
124
- - Properly remove item entry stub from (local) cache when request fails.
125
- - Fix issue where item or collection options could be set to undefined.
126
-
127
- ## 1.5.0
128
- - Add `SocketMessage` type and add types to `SocketMessageHandler`
129
- - Expand local items requested using `getItemById` or `getItemsById` in `ItemAdministrator`.
130
- (`fetchItem` or `fetchItems` in `ItemHandler`.)
131
- - Implement expanding of local collections. This no longer leads to invalid requests.
132
- - **Breaking:** The `expand` function in `CollectionEntry` now has an `ItemCache` parameter.
133
- - **Warning:** This version contains major changes.
134
-
135
- ### Introduce typing of item and collection options
136
- - **Breaking:** Removed `QueryItemType` collection entry option.
137
- - **Breaking:** Removed `ItemResourceService`.
138
- - Removed `processOptions` parameter from `createCollectionResource` (`ItemAdministrator`). It is now equivalent to
139
- `addCollection`.
140
- - When creating an item resource using `ItemResourceFactory`, a collection entry using `CollectionResourceFactory` or a
141
- collection resource using `CollectionResourceFactory` it is no longer necessary to process options beforehand. It is
142
- still necessary when interacting with `CollectionHandler` or `ItemHandler` directly.
143
-
144
- ## v1.4.0
145
- - Add `expandProcessLinkedItems` and `expandAddToCollections` to `ItemAdministrator`. These are analogues to
146
- `processLinkedItems` and `addToCollections`, but also expand the items with (derived) values and columns as necessary.
147
- They have a slightly different type signature.
148
- - Whenever a collection is requested, the `CollectionHandler` now makes sure that added local items are expanded as
149
- necessary.
150
- - **Breaking:** Last parameter of `ItemHandler.createLocalEntries` is now a callback function.
151
- - **Breaking:** Rename `TemplateLinkedItemEntryMap` type to `TemplateItemEntryMap`.
152
-
153
- ## v1.3.8
154
- - Add `isSaving` to `LocalCache`
155
- > We use this to disable the cancel/save buttons while the localCache is saving in the frontend
156
-
157
- ## v1.3.7
158
- - Fix issues that generate invalid requests / changes when moving existing item to another collection, then deleting the parent.
159
- - Remove slip workarounds
160
- - Add api request types
161
- - Add types to `ModuleChangesCompilation`
162
-
163
- ## v1.3.6
164
- - Skip add / remove collection callbacks when calling `revertChanges` (`LocalCache`).
165
-
166
- ## v1.3.5
167
- - Fix issue where items added to collections when resolving wouldn't be removed in `revertChanges` (`LocalCache`).
168
-
169
- ## v1.3.4
170
- - Add country to isFilteredColumn in ColumnUtil
171
-
172
- ## v1.3.3
173
- - Move processLocalConfigColumns and consolidateColumns from ColumnUtil to frontend
174
- > These functions are specifically used for rendering ui-grid in the frontend, so there's
175
- no reason to have them in the core
176
-
177
- ## v1.3.2
178
- - Fix types path in package.json
179
-
180
- ## v1.3.1
181
- - Fix types path in package.json
182
-
183
- ## v1.3.0
184
- - Rename PromiseInterface to PromiseLibraryInterface
185
- > PromiseInterface is now used for the internal promise type
186
-
187
- - Use PromiseInterface instead of Promise as internal promise type
188
- > This allows us to overwrite the PromiseInterface definition in the frontend indicate usage of ng.IPromise
189
-
190
- ## v1.2.9
191
- - Call processOptions in fetchDerivedValuesByColumn
192
- > Bug was introduced earlier but got enabled in v1.2.7
193
-
194
- ## v1.2.8
195
- - Add toJSON methods for ItemResources, ItemEntries, and ColumnSets to fix circular dependencies in JSON.stringify
196
-
197
- ## v1.2.7
198
- - Set itemEntry parent when generating a stub
199
-
200
- ## v1.2.6
201
- - Fix an issue introduced in v1.2.5.
202
-
203
- ## v1.2.5
204
- - When a local item cannot by found, return a newly created item in `getItemByState` (`ItemAdministrator`) only. This
205
- solves an issue with refreshing on a local edit view.
206
-
207
- ## v1.2.4
208
- - **Breaking:** When a local item cannot by found, instead of a new item being created an error is thrown. This means it
209
- is no longer possible to create local items using `getItemById` or `getItemsById` in the `ItemAdministrator` class.
210
- - **Breaking:** Removed `getItemDefinition` and `getItemByDef` in the `ItemAdministrator` class. Added `getItemByState`.
211
- - Renamed types `TemplateResponseItemEntryMap` to `TemplateItemEntryMap` and `TemplateResponseLinkedItemEntryMap` to
212
- `TemplateLinkedItemEntryMap`.
213
- - Removed `getCollectionCacheKey` in `KeyService`. (Legacy code.)
214
-
215
- ## v1.2.3
216
- - Fixed issue where derived values deeper than one layer couldn't be resolved.
217
-
218
- ## v1.2.2
219
- - Fixed issue where in derived values weren't set after create request.
220
-
221
- ## v1.2.1
222
- - **Breaking:** Replaced the `initial` parameter with the `callOnChange` parameter (`true` by default) in the `commit`
223
- function of the `EditResource` class.
224
- - Fixed issue in `setLocalFields` (`ItemEntry`) where some values were wrongly assumed to be present in `initialValues`.
225
- - Optimization: Disabled automatic resolution of derived values in `addItems` (`CollectionEditResource`) when `modInstant` is set to true.
226
-
227
- ## v1.2.0
228
- - **Breaking:** When calling `addItems` or `addItem` on the `CollectionEditResource` class derived values are now
229
- resolved automatically. Instead of a compound object like `{fields: {key: 'value'}, derived: {}}` an object like
230
- `{key: 'value'}` should now be used as argument when calling these functions.
231
- - **Breaking:** Added `localCache` parameter to `CollectionResource` constructor.
232
-
233
- ## v1.1.20
234
- - Fixed minor issue where collection wouldn't be deferred properly before expanding.
235
- - `onChange` is now called automatically when when calling `commit` on an edit resource.
236
-
237
- ## v1.1.19
238
- - **Breaking:** Renamed `getCurrentChanges` to `getModuleChanges` in the `ItemAdministrator` class. Added optional
239
- `localCache` parameter.
240
-
241
- ### Local cache callback refactoring
242
- - Removed `onSaveWithoutClosing` event.
243
- - Added `condition` parameter to `onBeforeSave` and `onSaveSuccess` (possible values are `always`, `onClose` or
244
- `skipOnClose`, defaults to `always`). Callbacks registered with `condition: always` will get executed before other
245
- callbacks.
246
- - Pass the local cache itself to all registered callback functions. Pass the item ID conversion map as second argument
247
- to `onSaveSuccess` callback functions.
248
-
249
- ## v1.1.18
250
- - Calling `expand` on a `CollectionEntry` manually no longer defers the collection entry.
251
- - The `batchFetch` and `batchExpand` functions in the `CollectionHandler` class now properly defer and resolve the
252
- collection entries.
253
-
254
- ## v1.1.17
255
- - Fixed issue where the `getLocalByQuery` function in the `ItemCache` class wouldn't return any items.
256
- - When batch resolving collection entries, `CollectionHandler` now looks for matching items using `getByQuery` instead
257
- of `getByParent`.
258
-
259
- ### Cache invalidation
260
- - Added `queueReload` function to `ItemEntry` class. This will reload the item when the item entry itself or a
261
- collection entry containing the item is requested.
262
- - The `queueReload` function in the `CollectionEntry` class no longer directly defers the item.
263
- - Added `invalidateCache` function to the `ItemAdministrator` class. This will call `queueReload` on all item entries
264
- and collection entries.
265
-
266
- ### Item entry refactoring
267
- - Renamed `process` to `setFields`.
268
- - Replaced `processLocal` with `setLocalFields`. This function no longer has a `modified` parameter.
269
- - `setModified` now also sets local default values.
270
- - Removed `setCreator`. This function was called twice in some instances.
271
- - **Breaking:** Added `derived` parameter to `updateFields`
272
-
273
- ##v1.16
274
- - Pass `hasChanges` as second argument to `onBeforeSave` callbacks in the `LocalCache` class. This fixes an issue with
275
- project financial values in the front-end. [RM4-9577]
276
- - Added `callOnActivate` parameter to `addItems` function in `CollectionEditResource` class. Use this to prevent items
277
- from being added to the local cache.
278
-
279
- ##v1.15
280
- - Fix `fetchItemTypesTranslations` function in `ColumnHandler` class.
281
- - Fix type definition of `PromiseInterface.all`.
282
-
283
- ##v1.14
284
- - The `ChangesCompiler` now always processes local collections. (Even if they don't have edit resources.) This fixes an
285
- issue with recurring appointments in the front-end.
286
-
287
- ##v1.13
288
- - Add option to exclude itemTypes during createLocalEntries.
289
-
290
- ##v1.12
291
- - **Breaking:** `ItemResource.isNew` returns true *only* if the resource was created using
292
- `ItemAdministrator.getNewResource` or `ItemAdministrator.getItemByDef`. This fixes an issue where items where removed
293
- from the local cache inadvertently.
294
- - The `start`, `commit` and `rollback` functions of `EditResource` now return the resource itself to facilitate chaining.
295
- - When calling `CollectionEntry.revertChanges`, callbacks like `onAdd` / `onRemove` and `onActivate` / `onDeactivate`
296
- are now respected. This fixes an issue where items where *not* removed from the local cache.
297
- - When removing *local* items from collections, they are removed from `initial` as well as `modified`. This fixes an
298
- issue where changes were being detected continuously.
299
- - Updated the order of requests in `changesProcessor`. The `update` request is now executed before the `delete` request,
300
- except when updating documents. This fixes several issues.
301
- - `CollectionCache` now uses a map instead of an array to store collections. This fixes an issue where the same
302
- collection was added multiple times.
303
- - Updated all models to use dependency objects. This increases ease of debugging.
304
-
305
- ##v.1.11
306
- - Fixed issue that occurs when saving when having an existing item refer to a newly created item.
307
- - **Breaking:** Removed `ItemResourceService.isNewResource`.
308
- - **Breaking:** Renamed `ItemResource.isNewResource` to `ItemResource.isNew`. Removed parameter.
309
- - `ItemResource.isNew` is equivalent to `ItemResource.isLocal`, while `EditResource.isNew` checks also checks for
310
- completed transactions.
311
-
312
- ##v.1.10
313
- - Fixed issue where changes on different subtabs were not detected.
314
-
315
- ##v1.1.9
316
- - Exposed `noop` function on `RmCore` class.
317
- > This is used in order to check whether a callback has a default value.
318
- - Added `copyRequestColumns` function to `ColumnUtil` class.
319
- - Made parameters of `ItemAdministrator.saveCurrentLocalCache` and `LocalCache.save` optional.
320
- - **Breaking:** Reordered parameters of `ChangesProcessor.execute` to be consistent with
321
- `ItemAdministrator.saveCurrentLocalCache`. The new order is `singleItems` - `collections` - `parameters` -
322
- `breakUpByParent` - `onAfterCreateCallback`.
323
-
324
- ##v1.1.8
325
- - Set default value for `params` to `{filter: false}` in `request` function in `ColumnHandler` class.
326
-
327
- ##v1.1.7
328
- - Fixed issue where cached item entries or collection entries wouldn't be added to the local cache.
329
-
330
- ##v1.1.6
331
- - Fixed issue with deferred item entries.
332
- - Re-enable changes watcher after save.
333
- - Added optional `id` parameter to `LocalCache` constructor.
334
-
335
- ##v1.1.5
336
- - Added `clearItem` function to `LocalCache` class.
337
-
338
- ##v.1.1.4
339
- - Fix issue where items where not added to the local cache automatically when they where added to a collection.
340
- > This depends on the `callOnActivate` parameter. I've added this mainly because extending collections should *not* add
341
- the items to the local cache.
342
- > In other instances this might be debatable because it doesn't do any real harm. *Not*
343
- doing it however can definitely be harmful.
344
-
345
- ##v.1.1.3
346
- - Fixed an issue where all collections in a local cache would be cleared.
347
- - **Breaking:** Renamed `getCacheManager` to `getCurrentLocalCache` and `setCacheManager` to `setCurrentLocalCache` in
348
- `LocalCacheManagerInterface`.
349
-
350
- ##v1.1.2
351
- - Fixed an issue concerning derived values.
352
-
353
- ## v1.1.1
354
- - Fixed an issue where changes wouldn't be detected.
355
- - **Breaking:** Removed the `_hasChanges` function in the `localCache` class. If you want to force changes detection,
356
- call `detectChanges` instead. Otherwise, rely on the `hasChanges` variable.
357
- - **Breaking:** Removed the `enableWatcher` and `disableWatcher` functions. Use `enableChangesWatcher` and
358
- `disableChangesWatcher` instead.
359
-
360
- ## v1.1.0
361
- ### Development
362
-
363
- #### Strict TypeScript compilation
364
- Added the following TypeScript compiler options:
365
- - noImplicitThis
366
- - noImplicitReturns
367
- - strictNullChecks
368
- - noUnusedLocals
369
- - noUnusedParameters
370
-
371
- I would advise enabling these for all TypeScript projects from now on.
372
-
373
- #### Ordered imports and dependencies
374
- Imports are now ordered alphabetically and grouped by folder. Added a TSLint option to enforce this.
375
- Please note that this also applies for imports from the folder the file is currently in.
376
- For example, in `models/ItemResource.ts`, `itemEntry` should be imported like so:
377
- `import { ItemEntry } from '../models';`
378
-
379
- Also, factory and class dependencies should be ordered alphabetically as well. This will make it easier to add and
380
- remove dependencies in the future.
381
-
382
- ### Breaking changes
383
-
384
- - Renamed `changesCompiler` to `changesCompilation`, `changesCompilerFactory` to `changesCompilationFactory`,
385
- `moduleChangesCompiler` to `moduleChangesCompilation` and `moduleChangesCompilerFactory` to
386
- `moduleChangesCompilationFactory`.
387
- - Removed the `allLinks` parameter from the `query` function definition in the `ApiRequestServiceInterface`. This is
388
- no longer supported in the back-end.
389
-
390
- #### Item and collection entries
391
- - Moved *all* functions that handle item entries from the `ItemEntryService` to the `ItemEntry` class.
392
- - Added the following functions to `ItemEntryService`:
393
- - `createLocalConversionMap`;
394
- - `expandLocalConversionMap`;
395
- - `expandConversionMap`;
396
- - `batchExpandConversionMap`;
397
- - `batchClone`.
398
- - Cloning of item entries now works slightly differently. The function will attempt to generate a new
399
- item ID, and update the conversion map accordingly, but will respect the item ID that is already there.
400
-
401
- #### Rework item caching
402
- Newly created item entries and collection entries are no longer added to the global *or* local cache by default.
403
- All entries are added to the global cache on save. Item entries are added to the local cache when resources are created
404
- using the item administrator or when resources are created when adding the items to a collection.
405
-
406
- > This will increase reliability by ensuring the global cache is no longer 'polluted' with local items. Also, this will
407
- > allow for the creation item and collection entries without caching them directly. This is required for the copying and
408
- > pasting of items.
409
-
410
- Other changes:
411
-
412
- - Moved `saveLocal` to `ItemAdministrator`;
413
- - `ItemAdministrator.fetchTitle` should now be called instead of `ItemHandler.fetchTitle`;
414
- - The `ItemAdministrator` collection matching functions (`addToCollections`, `removeFromCollections`) should now be
415
- called instead of those in the `CollectionHandler`. The `CollectionHandler` should only be used to reflect changes
416
- already on the backend. (Use `getCollectionMatcher`.)
417
-
418
-
419
- ##v1.0.33
420
- - Really fix types path
421
-
422
- ##v1.0.33
423
- - Fix types path
424
-
425
- ##v1.0.32
426
- - Update `tsconfig.json` to put definitions in the root folder
427
- > The app had an issue with AOT compilation because of this
428
-
429
- ##v1.0.31
430
- - Fix `columnHandler.fetchItemTypeTranslations`
431
- > It incorrectly looped over the response map, it should now work again
432
-
433
- ##v1.0.30
434
- - Remove `updateTabParams` from LocalCacheManagerInterface
435
- > The function wasn't used
436
-
437
- - Reworked class export
438
- > Imports are now done from @rentman/rm-core, old imports are broken. This is because the old export structure didn't always work
439
-
440
- ##v1.0.29
441
- - Fix inverted inArray check in CollectionEntry.removeItems
442
- > A delete message from the socket deleted all BUT the deleted items, this should now be fixed
443
-
444
- ##v1.0.28
445
- Bug fixes only
446
-
447
- ##v1.0.27
448
- - `ItemEntry.initial` is now undefined by default
449
- > In the SocketMessageHandler we use this check to see if an ItemEntry is a stub
450
-
451
- ##v1.0.26
452
- Bundle both minified and unminified code, include sourcemaps from dev build
453
-
454
- ##v1.0.24, v1.0.25
455
- ! Use version `v1.0.26` !
456
-
457
- - The core now expects a `promiseInterface` that should implement the provided `promiseInterface`
458
- > We need to be able to hook into the promises in order to call a digest cycle to update the ui in the frontend
459
-
460
- - Rename `ItemEntry.entryId` to `ItemEntry.id
461
- > It used to be called `id`, but it was changed in the seperation of the core.
462
- > You can use the `id` to uniquely identify an entry, since itemId can be updated (local to saved id)
463
-
464
- - Rename ItemResource `startTransaction` to `start`
465
- > Other functions are called `commit` and `rollback` so having 'transaction' only for start doesn't make much sense
466
-
467
- - `SocketMessageHandler.onMessageReceived` now returns a promise
468
- > You can now use the updated items or hook into the result to update the ui for example
469
-
470
-
471
- ##v1.0.23
472
- - Rename ResourceCache to LocalCache
473
- > LocalCache only caches local items (name better reflects functionality)
474
-
475
- - Remove getter/setter for hasChanges
476
- > hasChanges is called in a digest loop in the frontend, so for performance reasons we don't want to recompute the value every time
477
-
478
- - Remove `_getCollection` from ItemAdministrator
479
- > `_getCollection` is now named `getCollection` and the old `getCollection` is removed. The query is part of the
480
- > options and should not be given as a separate argument. This was included to support the frontend
481
-
482
- - Remove `saveCurrentTab` from ItemAdministrator
483
- > `saveCurrentTab` makes no sense because the core has no concept of tabs, you should use `saveCurrentLocalCache` instead
484
-
485
- - Remove `getTabEntry` and `resetTabEntry` from ItemAdministrator
486
- > `getTabEntry` and `resetTabEntry` make no sense because the core has no concept of tabs, you should use `getLocalCache` and `resetLocalCache` instead
487
-
1
+ #Changelog
2
+ Contains new features, breaking changes and their reasoning
3
+
4
+ ## 1.6.13
5
+ - When encountering a collection entry with `PROMISED_EXPAND` status, call `getCachedEntryStatus` after the initial
6
+ promise has been resolved.
7
+
8
+ > This is the likely cause of the issue where `_resolve` is called on a non-deferred collection entry.
9
+
10
+ ## 1.6.12
11
+ - Fix error that occurs when trying to resolve a non-deferred collection entry.
12
+
13
+ ## 1.6.11
14
+ - Fix issue where `QueryMatcher.matchComplexQuery` would return the wrong value.
15
+
16
+ ## 1.6.10
17
+ - **Breaking**: Remove `linkType`, `linkIdArray` properties from `LinkCollectionDefinition`. Add `linkType`,
18
+ `linkIdArray` parameters to `ItemAdministrator.getLinkCollectionsFromDef`.
19
+
20
+ ## 1.6.9
21
+ - Redeploy of `1.6.8`
22
+
23
+ ## 1.6.8
24
+ - Add support for `not` in queries
25
+
26
+ ## 1.6.7
27
+ - Fix issue where `CollectionMatcher.addToCollections` wouldn't return the correct type.
28
+
29
+ ## 1.6.6
30
+ - Add `callOnAdd` parameter in `CollectionHandler.batchExtend`. Set `updateInitial` to true. Remove `updateInitial` parameter in `CollectionEntry.extend`, as it should always be true.
31
+ > The `extend` function only concerns itself with remote items, so no local changes should be generated.
32
+
33
+ ## 1.6.5
34
+ - Fix issue where a derived column could be marked as the `link` (parent) column in the column set.
35
+ > This could lead to instances where a different column would be set to the value of the parent.
36
+
37
+ ## 1.6.4
38
+ - Fix issue where the `onChange` collection callback would not be called when updating it in the options.
39
+ - Add `callOnAdd` parameter to collection matcher. When set to `false`, `onAdd` is not called for the `resultCollectionResource`.
40
+
41
+ ## 1.6.3
42
+ - Properly type ApiResponseProcessor - fetchObjectArray
43
+
44
+ ## 1.6.2
45
+ - Fix issue where the collection handler would return collection entries before they were resolved when calling `batchFetch`.
46
+
47
+ ## 1.6.1-3
48
+ - Check for linkedTo before checking for subqueries in QueryMatcher
49
+ > Linkedto also has `.query` and was incorrectly marked as a subquery
50
+
51
+ ## 1.6.1-2
52
+ - Fixed shorthand query with null values
53
+ > The QueryParser would incorrectly identify subqueries when using null in a shorthand
54
+
55
+ ## 1.6.1-1
56
+ - Fixed shorthand query with Moment values
57
+ > The QueryParser would incorrectly identify Moment objects as a subquery
58
+
59
+ ## 1.6.1
60
+ - Added support for subqueries in QueryParser and QueryMatcher
61
+ > Collections using subqueries will always return 'maybe' in the QueryMatcher
62
+
63
+ ## 1.6.0
64
+ - All external callbacks are now wrapped in a `try ... catch` block. This prevents them from breaking core functionality.
65
+ - **Breaking**: Add `ExceptionHandlerInterface` parameter to core constructor.
66
+
67
+ ## 1.5.9
68
+ - Fix issue that occurs when trying to resolve a `ColumnSet` using a single non-existing column.
69
+ Catch exceptions that might occur when resolving an `ItemEntry`.
70
+ - Add `mergeRequestColumns`, `mergeResponseColumns` to `ColumnSet`. When encountering new items while expanding a collection, add them to the collection.
71
+
72
+ ## 1.5.8
73
+ - Introduce `RemoteViewResource` and `LocalViewResource`.
74
+ > The `fields` property of a `RemoteViewResource` represents
75
+ server values, while the `fields` property of a `LocalViewResource` represents local values.
76
+ - The `fields` property of a `ViewResource` is now read only.
77
+
78
+ ## 1.5.7-1
79
+ - Make ItemResource/CollectionResource base class abstract
80
+ - Add missing overload functions in some places
81
+ - Fix default comparator `QueryMatcher.parseSimpleQuery`
82
+ - Fix `ExtendedCollectionMatchResult` `collection` property type
83
+
84
+ ## 1.5.7
85
+ - Properly type Collections & ItemResources (and return values) in the whole core.
86
+ > The core will now properly return Collections & ItemResources based on the passed CollectionOptions.
87
+ > You can now also type the expected collection type
88
+
89
+ ```
90
+ // Expects a collection with editCollection and editItems both `true`
91
+ // Will properly return EditResources for all collection functions
92
+ const collection: CollectionEditResource<EditResource>;
93
+
94
+ // other variations are:
95
+ // CollectionViewResource<ViewResource>
96
+ // CollectionViewResource<EditResource>
97
+ // CollectionEditResource<ViewResource>
98
+
99
+ this.core.itemAdministrator.getCollection(
100
+ 'Notitie',
101
+ {
102
+ editCollection: true, // Will return a CollectionEditResource
103
+ editItems: true // Will return EditResources instead of ViewResources in `.items`
104
+ }
105
+ )
106
+ ```
107
+
108
+ ## 1.5.6
109
+ - Add `getAllLocalCaches` to `LocalCacheManagerInterface`, remove item entries from all local caches on socket delete.
110
+
111
+ ## 1.5.5
112
+ - Add 'order' column type handling to ApiFormatter functions
113
+
114
+ ## 1.5.4
115
+ - Fix issue where parent would be incorrectly set when cloning a single item.
116
+ - Type functions related to expansion maps in `ItemEntryService`.
117
+
118
+ ## 1.5.3
119
+ - Fix issue where the `enableSave` collection resource option would default to `false`. This would throw an error when
120
+ calling `save` on a collection resource where this option was not explicitly set.
121
+
122
+ ## 1.5.2
123
+ - Type functions in `ColumnUtil` class.
124
+ - Add `getRequestColumnId` and `containsDerivedColumns` to `ColumnUtil`.
125
+ > `getRequestColumnId` should be used instead of `Util.getFirstProperty` when retrieving a column ID.
126
+ - **Breaking:** Remove `ColumnUtil.isColumnSubset`. Use `ColumnSet.isSuperSetOf` instead.
127
+ - Remove `findColumnObject`. Rename `findColumn` to `findRequestColumn`.
128
+
129
+ ## 1.5.1
130
+ - Properly remove item entry stub from (local) cache when request fails.
131
+ - Fix issue where item or collection options could be set to undefined.
132
+
133
+ ## 1.5.0
134
+ - Add `SocketMessage` type and add types to `SocketMessageHandler`
135
+ - Expand local items requested using `getItemById` or `getItemsById` in `ItemAdministrator`.
136
+ (`fetchItem` or `fetchItems` in `ItemHandler`.)
137
+ - Implement expanding of local collections. This no longer leads to invalid requests.
138
+ - **Breaking:** The `expand` function in `CollectionEntry` now has an `ItemCache` parameter.
139
+ - **Warning:** This version contains major changes.
140
+
141
+ ### Introduce typing of item and collection options
142
+ - **Breaking:** Removed `QueryItemType` collection entry option.
143
+ - **Breaking:** Removed `ItemResourceService`.
144
+ - Removed `processOptions` parameter from `createCollectionResource` (`ItemAdministrator`). It is now equivalent to
145
+ `addCollection`.
146
+ - When creating an item resource using `ItemResourceFactory`, a collection entry using `CollectionResourceFactory` or a
147
+ collection resource using `CollectionResourceFactory` it is no longer necessary to process options beforehand. It is
148
+ still necessary when interacting with `CollectionHandler` or `ItemHandler` directly.
149
+
150
+ ## v1.4.0
151
+ - Add `expandProcessLinkedItems` and `expandAddToCollections` to `ItemAdministrator`. These are analogues to
152
+ `processLinkedItems` and `addToCollections`, but also expand the items with (derived) values and columns as necessary.
153
+ They have a slightly different type signature.
154
+ - Whenever a collection is requested, the `CollectionHandler` now makes sure that added local items are expanded as
155
+ necessary.
156
+ - **Breaking:** Last parameter of `ItemHandler.createLocalEntries` is now a callback function.
157
+ - **Breaking:** Rename `TemplateLinkedItemEntryMap` type to `TemplateItemEntryMap`.
158
+
159
+ ## v1.3.8
160
+ - Add `isSaving` to `LocalCache`
161
+ > We use this to disable the cancel/save buttons while the localCache is saving in the frontend
162
+
163
+ ## v1.3.7
164
+ - Fix issues that generate invalid requests / changes when moving existing item to another collection, then deleting the parent.
165
+ - Remove slip workarounds
166
+ - Add api request types
167
+ - Add types to `ModuleChangesCompilation`
168
+
169
+ ## v1.3.6
170
+ - Skip add / remove collection callbacks when calling `revertChanges` (`LocalCache`).
171
+
172
+ ## v1.3.5
173
+ - Fix issue where items added to collections when resolving wouldn't be removed in `revertChanges` (`LocalCache`).
174
+
175
+ ## v1.3.4
176
+ - Add country to isFilteredColumn in ColumnUtil
177
+
178
+ ## v1.3.3
179
+ - Move processLocalConfigColumns and consolidateColumns from ColumnUtil to frontend
180
+ > These functions are specifically used for rendering ui-grid in the frontend, so there's
181
+ no reason to have them in the core
182
+
183
+ ## v1.3.2
184
+ - Fix types path in package.json
185
+
186
+ ## v1.3.1
187
+ - Fix types path in package.json
188
+
189
+ ## v1.3.0
190
+ - Rename PromiseInterface to PromiseLibraryInterface
191
+ > PromiseInterface is now used for the internal promise type
192
+
193
+ - Use PromiseInterface instead of Promise as internal promise type
194
+ > This allows us to overwrite the PromiseInterface definition in the frontend indicate usage of ng.IPromise
195
+
196
+ ## v1.2.9
197
+ - Call processOptions in fetchDerivedValuesByColumn
198
+ > Bug was introduced earlier but got enabled in v1.2.7
199
+
200
+ ## v1.2.8
201
+ - Add toJSON methods for ItemResources, ItemEntries, and ColumnSets to fix circular dependencies in JSON.stringify
202
+
203
+ ## v1.2.7
204
+ - Set itemEntry parent when generating a stub
205
+
206
+ ## v1.2.6
207
+ - Fix an issue introduced in v1.2.5.
208
+
209
+ ## v1.2.5
210
+ - When a local item cannot by found, return a newly created item in `getItemByState` (`ItemAdministrator`) only. This
211
+ solves an issue with refreshing on a local edit view.
212
+
213
+ ## v1.2.4
214
+ - **Breaking:** When a local item cannot by found, instead of a new item being created an error is thrown. This means it
215
+ is no longer possible to create local items using `getItemById` or `getItemsById` in the `ItemAdministrator` class.
216
+ - **Breaking:** Removed `getItemDefinition` and `getItemByDef` in the `ItemAdministrator` class. Added `getItemByState`.
217
+ - Renamed types `TemplateResponseItemEntryMap` to `TemplateItemEntryMap` and `TemplateResponseLinkedItemEntryMap` to
218
+ `TemplateLinkedItemEntryMap`.
219
+ - Removed `getCollectionCacheKey` in `KeyService`. (Legacy code.)
220
+
221
+ ## v1.2.3
222
+ - Fixed issue where derived values deeper than one layer couldn't be resolved.
223
+
224
+ ## v1.2.2
225
+ - Fixed issue where in derived values weren't set after create request.
226
+
227
+ ## v1.2.1
228
+ - **Breaking:** Replaced the `initial` parameter with the `callOnChange` parameter (`true` by default) in the `commit`
229
+ function of the `EditResource` class.
230
+ - Fixed issue in `setLocalFields` (`ItemEntry`) where some values were wrongly assumed to be present in `initialValues`.
231
+ - Optimization: Disabled automatic resolution of derived values in `addItems` (`CollectionEditResource`) when `modInstant` is set to true.
232
+
233
+ ## v1.2.0
234
+ - **Breaking:** When calling `addItems` or `addItem` on the `CollectionEditResource` class derived values are now
235
+ resolved automatically. Instead of a compound object like `{fields: {key: 'value'}, derived: {}}` an object like
236
+ `{key: 'value'}` should now be used as argument when calling these functions.
237
+ - **Breaking:** Added `localCache` parameter to `CollectionResource` constructor.
238
+
239
+ ## v1.1.20
240
+ - Fixed minor issue where collection wouldn't be deferred properly before expanding.
241
+ - `onChange` is now called automatically when when calling `commit` on an edit resource.
242
+
243
+ ## v1.1.19
244
+ - **Breaking:** Renamed `getCurrentChanges` to `getModuleChanges` in the `ItemAdministrator` class. Added optional
245
+ `localCache` parameter.
246
+
247
+ ### Local cache callback refactoring
248
+ - Removed `onSaveWithoutClosing` event.
249
+ - Added `condition` parameter to `onBeforeSave` and `onSaveSuccess` (possible values are `always`, `onClose` or
250
+ `skipOnClose`, defaults to `always`). Callbacks registered with `condition: always` will get executed before other
251
+ callbacks.
252
+ - Pass the local cache itself to all registered callback functions. Pass the item ID conversion map as second argument
253
+ to `onSaveSuccess` callback functions.
254
+
255
+ ## v1.1.18
256
+ - Calling `expand` on a `CollectionEntry` manually no longer defers the collection entry.
257
+ - The `batchFetch` and `batchExpand` functions in the `CollectionHandler` class now properly defer and resolve the
258
+ collection entries.
259
+
260
+ ## v1.1.17
261
+ - Fixed issue where the `getLocalByQuery` function in the `ItemCache` class wouldn't return any items.
262
+ - When batch resolving collection entries, `CollectionHandler` now looks for matching items using `getByQuery` instead
263
+ of `getByParent`.
264
+
265
+ ### Cache invalidation
266
+ - Added `queueReload` function to `ItemEntry` class. This will reload the item when the item entry itself or a
267
+ collection entry containing the item is requested.
268
+ - The `queueReload` function in the `CollectionEntry` class no longer directly defers the item.
269
+ - Added `invalidateCache` function to the `ItemAdministrator` class. This will call `queueReload` on all item entries
270
+ and collection entries.
271
+
272
+ ### Item entry refactoring
273
+ - Renamed `process` to `setFields`.
274
+ - Replaced `processLocal` with `setLocalFields`. This function no longer has a `modified` parameter.
275
+ - `setModified` now also sets local default values.
276
+ - Removed `setCreator`. This function was called twice in some instances.
277
+ - **Breaking:** Added `derived` parameter to `updateFields`
278
+
279
+ ##v1.16
280
+ - Pass `hasChanges` as second argument to `onBeforeSave` callbacks in the `LocalCache` class. This fixes an issue with
281
+ project financial values in the front-end. [RM4-9577]
282
+ - Added `callOnActivate` parameter to `addItems` function in `CollectionEditResource` class. Use this to prevent items
283
+ from being added to the local cache.
284
+
285
+ ##v1.15
286
+ - Fix `fetchItemTypesTranslations` function in `ColumnHandler` class.
287
+ - Fix type definition of `PromiseInterface.all`.
288
+
289
+ ##v1.14
290
+ - The `ChangesCompiler` now always processes local collections. (Even if they don't have edit resources.) This fixes an
291
+ issue with recurring appointments in the front-end.
292
+
293
+ ##v1.13
294
+ - Add option to exclude itemTypes during createLocalEntries.
295
+
296
+ ##v1.12
297
+ - **Breaking:** `ItemResource.isNew` returns true *only* if the resource was created using
298
+ `ItemAdministrator.getNewResource` or `ItemAdministrator.getItemByDef`. This fixes an issue where items where removed
299
+ from the local cache inadvertently.
300
+ - The `start`, `commit` and `rollback` functions of `EditResource` now return the resource itself to facilitate chaining.
301
+ - When calling `CollectionEntry.revertChanges`, callbacks like `onAdd` / `onRemove` and `onActivate` / `onDeactivate`
302
+ are now respected. This fixes an issue where items where *not* removed from the local cache.
303
+ - When removing *local* items from collections, they are removed from `initial` as well as `modified`. This fixes an
304
+ issue where changes were being detected continuously.
305
+ - Updated the order of requests in `changesProcessor`. The `update` request is now executed before the `delete` request,
306
+ except when updating documents. This fixes several issues.
307
+ - `CollectionCache` now uses a map instead of an array to store collections. This fixes an issue where the same
308
+ collection was added multiple times.
309
+ - Updated all models to use dependency objects. This increases ease of debugging.
310
+
311
+ ##v.1.11
312
+ - Fixed issue that occurs when saving when having an existing item refer to a newly created item.
313
+ - **Breaking:** Removed `ItemResourceService.isNewResource`.
314
+ - **Breaking:** Renamed `ItemResource.isNewResource` to `ItemResource.isNew`. Removed parameter.
315
+ - `ItemResource.isNew` is equivalent to `ItemResource.isLocal`, while `EditResource.isNew` checks also checks for
316
+ completed transactions.
317
+
318
+ ##v.1.10
319
+ - Fixed issue where changes on different subtabs were not detected.
320
+
321
+ ##v1.1.9
322
+ - Exposed `noop` function on `RmCore` class.
323
+ > This is used in order to check whether a callback has a default value.
324
+ - Added `copyRequestColumns` function to `ColumnUtil` class.
325
+ - Made parameters of `ItemAdministrator.saveCurrentLocalCache` and `LocalCache.save` optional.
326
+ - **Breaking:** Reordered parameters of `ChangesProcessor.execute` to be consistent with
327
+ `ItemAdministrator.saveCurrentLocalCache`. The new order is `singleItems` - `collections` - `parameters` -
328
+ `breakUpByParent` - `onAfterCreateCallback`.
329
+
330
+ ##v1.1.8
331
+ - Set default value for `params` to `{filter: false}` in `request` function in `ColumnHandler` class.
332
+
333
+ ##v1.1.7
334
+ - Fixed issue where cached item entries or collection entries wouldn't be added to the local cache.
335
+
336
+ ##v1.1.6
337
+ - Fixed issue with deferred item entries.
338
+ - Re-enable changes watcher after save.
339
+ - Added optional `id` parameter to `LocalCache` constructor.
340
+
341
+ ##v1.1.5
342
+ - Added `clearItem` function to `LocalCache` class.
343
+
344
+ ##v.1.1.4
345
+ - Fix issue where items where not added to the local cache automatically when they where added to a collection.
346
+ > This depends on the `callOnActivate` parameter. I've added this mainly because extending collections should *not* add
347
+ the items to the local cache.
348
+ > In other instances this might be debatable because it doesn't do any real harm. *Not*
349
+ doing it however can definitely be harmful.
350
+
351
+ ##v.1.1.3
352
+ - Fixed an issue where all collections in a local cache would be cleared.
353
+ - **Breaking:** Renamed `getCacheManager` to `getCurrentLocalCache` and `setCacheManager` to `setCurrentLocalCache` in
354
+ `LocalCacheManagerInterface`.
355
+
356
+ ##v1.1.2
357
+ - Fixed an issue concerning derived values.
358
+
359
+ ## v1.1.1
360
+ - Fixed an issue where changes wouldn't be detected.
361
+ - **Breaking:** Removed the `_hasChanges` function in the `localCache` class. If you want to force changes detection,
362
+ call `detectChanges` instead. Otherwise, rely on the `hasChanges` variable.
363
+ - **Breaking:** Removed the `enableWatcher` and `disableWatcher` functions. Use `enableChangesWatcher` and
364
+ `disableChangesWatcher` instead.
365
+
366
+ ## v1.1.0
367
+ ### Development
368
+
369
+ #### Strict TypeScript compilation
370
+ Added the following TypeScript compiler options:
371
+ - noImplicitThis
372
+ - noImplicitReturns
373
+ - strictNullChecks
374
+ - noUnusedLocals
375
+ - noUnusedParameters
376
+
377
+ I would advise enabling these for all TypeScript projects from now on.
378
+
379
+ #### Ordered imports and dependencies
380
+ Imports are now ordered alphabetically and grouped by folder. Added a TSLint option to enforce this.
381
+ Please note that this also applies for imports from the folder the file is currently in.
382
+ For example, in `models/ItemResource.ts`, `itemEntry` should be imported like so:
383
+ `import { ItemEntry } from '../models';`
384
+
385
+ Also, factory and class dependencies should be ordered alphabetically as well. This will make it easier to add and
386
+ remove dependencies in the future.
387
+
388
+ ### Breaking changes
389
+
390
+ - Renamed `changesCompiler` to `changesCompilation`, `changesCompilerFactory` to `changesCompilationFactory`,
391
+ `moduleChangesCompiler` to `moduleChangesCompilation` and `moduleChangesCompilerFactory` to
392
+ `moduleChangesCompilationFactory`.
393
+ - Removed the `allLinks` parameter from the `query` function definition in the `ApiRequestServiceInterface`. This is
394
+ no longer supported in the back-end.
395
+
396
+ #### Item and collection entries
397
+ - Moved *all* functions that handle item entries from the `ItemEntryService` to the `ItemEntry` class.
398
+ - Added the following functions to `ItemEntryService`:
399
+ - `createLocalConversionMap`;
400
+ - `expandLocalConversionMap`;
401
+ - `expandConversionMap`;
402
+ - `batchExpandConversionMap`;
403
+ - `batchClone`.
404
+ - Cloning of item entries now works slightly differently. The function will attempt to generate a new
405
+ item ID, and update the conversion map accordingly, but will respect the item ID that is already there.
406
+
407
+ #### Rework item caching
408
+ Newly created item entries and collection entries are no longer added to the global *or* local cache by default.
409
+ All entries are added to the global cache on save. Item entries are added to the local cache when resources are created
410
+ using the item administrator or when resources are created when adding the items to a collection.
411
+
412
+ > This will increase reliability by ensuring the global cache is no longer 'polluted' with local items. Also, this will
413
+ > allow for the creation item and collection entries without caching them directly. This is required for the copying and
414
+ > pasting of items.
415
+
416
+ Other changes:
417
+
418
+ - Moved `saveLocal` to `ItemAdministrator`;
419
+ - `ItemAdministrator.fetchTitle` should now be called instead of `ItemHandler.fetchTitle`;
420
+ - The `ItemAdministrator` collection matching functions (`addToCollections`, `removeFromCollections`) should now be
421
+ called instead of those in the `CollectionHandler`. The `CollectionHandler` should only be used to reflect changes
422
+ already on the backend. (Use `getCollectionMatcher`.)
423
+
424
+
425
+ ##v1.0.33
426
+ - Really fix types path
427
+
428
+ ##v1.0.33
429
+ - Fix types path
430
+
431
+ ##v1.0.32
432
+ - Update `tsconfig.json` to put definitions in the root folder
433
+ > The app had an issue with AOT compilation because of this
434
+
435
+ ##v1.0.31
436
+ - Fix `columnHandler.fetchItemTypeTranslations`
437
+ > It incorrectly looped over the response map, it should now work again
438
+
439
+ ##v1.0.30
440
+ - Remove `updateTabParams` from LocalCacheManagerInterface
441
+ > The function wasn't used
442
+
443
+ - Reworked class export
444
+ > Imports are now done from @rentman/rm-core, old imports are broken. This is because the old export structure didn't always work
445
+
446
+ ##v1.0.29
447
+ - Fix inverted inArray check in CollectionEntry.removeItems
448
+ > A delete message from the socket deleted all BUT the deleted items, this should now be fixed
449
+
450
+ ##v1.0.28
451
+ Bug fixes only
452
+
453
+ ##v1.0.27
454
+ - `ItemEntry.initial` is now undefined by default
455
+ > In the SocketMessageHandler we use this check to see if an ItemEntry is a stub
456
+
457
+ ##v1.0.26
458
+ Bundle both minified and unminified code, include sourcemaps from dev build
459
+
460
+ ##v1.0.24, v1.0.25
461
+ ! Use version `v1.0.26` !
462
+
463
+ - The core now expects a `promiseInterface` that should implement the provided `promiseInterface`
464
+ > We need to be able to hook into the promises in order to call a digest cycle to update the ui in the frontend
465
+
466
+ - Rename `ItemEntry.entryId` to `ItemEntry.id
467
+ > It used to be called `id`, but it was changed in the seperation of the core.
468
+ > You can use the `id` to uniquely identify an entry, since itemId can be updated (local to saved id)
469
+
470
+ - Rename ItemResource `startTransaction` to `start`
471
+ > Other functions are called `commit` and `rollback` so having 'transaction' only for start doesn't make much sense
472
+
473
+ - `SocketMessageHandler.onMessageReceived` now returns a promise
474
+ > You can now use the updated items or hook into the result to update the ui for example
475
+
476
+
477
+ ##v1.0.23
478
+ - Rename ResourceCache to LocalCache
479
+ > LocalCache only caches local items (name better reflects functionality)
480
+
481
+ - Remove getter/setter for hasChanges
482
+ > hasChanges is called in a digest loop in the frontend, so for performance reasons we don't want to recompute the value every time
483
+
484
+ - Remove `_getCollection` from ItemAdministrator
485
+ > `_getCollection` is now named `getCollection` and the old `getCollection` is removed. The query is part of the
486
+ > options and should not be given as a separate argument. This was included to support the frontend
487
+
488
+ - Remove `saveCurrentTab` from ItemAdministrator
489
+ > `saveCurrentTab` makes no sense because the core has no concept of tabs, you should use `saveCurrentLocalCache` instead
490
+
491
+ - Remove `getTabEntry` and `resetTabEntry` from ItemAdministrator
492
+ > `getTabEntry` and `resetTabEntry` make no sense because the core has no concept of tabs, you should use `getLocalCache` and `resetLocalCache` instead
493
+