@atlaskit/link-datasource 7.12.1 → 7.12.2
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,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 7.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6c40bad082f67`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6c40bad082f67) -
|
|
8
|
+
Clean up feature gate `platform_sllv_duplicated_row`: datasource rows that share an ARI are now
|
|
9
|
+
always deduplicated.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 7.12.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -238,7 +238,6 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
|
|
|
238
238
|
nextPageCursor,
|
|
239
239
|
_totalCount,
|
|
240
240
|
schema,
|
|
241
|
-
isDuplicateRowDeduplicationEnabled,
|
|
242
241
|
itemsToAdd,
|
|
243
242
|
integrationKey,
|
|
244
243
|
entityType,
|
|
@@ -324,11 +323,10 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
|
|
|
324
323
|
setDestinationObjectTypes(_destinationObjectTypes);
|
|
325
324
|
setTotalCount(_totalCount);
|
|
326
325
|
setNextCursor(nextPageCursor);
|
|
327
|
-
|
|
328
|
-
if (shouldRequestFirstPage && isDuplicateRowDeduplicationEnabled) {
|
|
326
|
+
if (shouldRequestFirstPage) {
|
|
329
327
|
responseItemAris.current.clear();
|
|
330
328
|
}
|
|
331
|
-
itemsToAdd =
|
|
329
|
+
itemsToAdd = items.filter(function (item) {
|
|
332
330
|
var _item$ari;
|
|
333
331
|
var ari = (_item$ari = item.ari) === null || _item$ari === void 0 ? void 0 : _item$ari.data;
|
|
334
332
|
if (typeof ari !== 'string') {
|
|
@@ -339,7 +337,7 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
|
|
|
339
337
|
}
|
|
340
338
|
responseItemAris.current.add(ari);
|
|
341
339
|
return true;
|
|
342
|
-
})
|
|
340
|
+
});
|
|
343
341
|
setResponseItems(function (currentResponseItems) {
|
|
344
342
|
if (shouldRequestFirstPage) {
|
|
345
343
|
return itemsToAdd;
|
|
@@ -357,7 +355,7 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
|
|
|
357
355
|
entityType = objectTypesEntity;
|
|
358
356
|
newIds = onAddItems(itemsToAdd, typeof integrationKey === 'string' ? integrationKey : undefined, entityType);
|
|
359
357
|
setResponseItemIds(function (currentIds) {
|
|
360
|
-
return
|
|
358
|
+
return shouldRequestFirstPage ? newIds : [].concat((0, _toConsumableArray2.default)(currentIds), (0, _toConsumableArray2.default)(newIds));
|
|
361
359
|
});
|
|
362
360
|
if (!(0, _isFedramp.isFedRamp)()) {
|
|
363
361
|
if (typeof integrationKey === 'string') {
|
|
@@ -205,11 +205,10 @@ export const useDatasourceTableState = ({
|
|
|
205
205
|
setDestinationObjectTypes(destinationObjectTypes);
|
|
206
206
|
setTotalCount(totalCount);
|
|
207
207
|
setNextCursor(nextPageCursor);
|
|
208
|
-
|
|
209
|
-
if (shouldRequestFirstPage && isDuplicateRowDeduplicationEnabled) {
|
|
208
|
+
if (shouldRequestFirstPage) {
|
|
210
209
|
responseItemAris.current.clear();
|
|
211
210
|
}
|
|
212
|
-
const itemsToAdd =
|
|
211
|
+
const itemsToAdd = items.filter(item => {
|
|
213
212
|
var _item$ari;
|
|
214
213
|
const ari = (_item$ari = item.ari) === null || _item$ari === void 0 ? void 0 : _item$ari.data;
|
|
215
214
|
if (typeof ari !== 'string') {
|
|
@@ -220,7 +219,7 @@ export const useDatasourceTableState = ({
|
|
|
220
219
|
}
|
|
221
220
|
responseItemAris.current.add(ari);
|
|
222
221
|
return true;
|
|
223
|
-
})
|
|
222
|
+
});
|
|
224
223
|
setResponseItems(currentResponseItems => {
|
|
225
224
|
if (shouldRequestFirstPage) {
|
|
226
225
|
return itemsToAdd;
|
|
@@ -238,7 +237,7 @@ export const useDatasourceTableState = ({
|
|
|
238
237
|
*/
|
|
239
238
|
const entityType = objectTypesEntity;
|
|
240
239
|
const newIds = onAddItems(itemsToAdd, typeof integrationKey === 'string' ? integrationKey : undefined, entityType);
|
|
241
|
-
setResponseItemIds(currentIds =>
|
|
240
|
+
setResponseItemIds(currentIds => shouldRequestFirstPage ? newIds : [...currentIds, ...newIds]);
|
|
242
241
|
if (!isFedRamp()) {
|
|
243
242
|
if (typeof integrationKey === 'string') {
|
|
244
243
|
const aris = itemsToAdd.reduce((acc, item) => {
|
|
@@ -231,7 +231,6 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
|
|
|
231
231
|
nextPageCursor,
|
|
232
232
|
_totalCount,
|
|
233
233
|
schema,
|
|
234
|
-
isDuplicateRowDeduplicationEnabled,
|
|
235
234
|
itemsToAdd,
|
|
236
235
|
integrationKey,
|
|
237
236
|
entityType,
|
|
@@ -317,11 +316,10 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
|
|
|
317
316
|
setDestinationObjectTypes(_destinationObjectTypes);
|
|
318
317
|
setTotalCount(_totalCount);
|
|
319
318
|
setNextCursor(nextPageCursor);
|
|
320
|
-
|
|
321
|
-
if (shouldRequestFirstPage && isDuplicateRowDeduplicationEnabled) {
|
|
319
|
+
if (shouldRequestFirstPage) {
|
|
322
320
|
responseItemAris.current.clear();
|
|
323
321
|
}
|
|
324
|
-
itemsToAdd =
|
|
322
|
+
itemsToAdd = items.filter(function (item) {
|
|
325
323
|
var _item$ari;
|
|
326
324
|
var ari = (_item$ari = item.ari) === null || _item$ari === void 0 ? void 0 : _item$ari.data;
|
|
327
325
|
if (typeof ari !== 'string') {
|
|
@@ -332,7 +330,7 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
|
|
|
332
330
|
}
|
|
333
331
|
responseItemAris.current.add(ari);
|
|
334
332
|
return true;
|
|
335
|
-
})
|
|
333
|
+
});
|
|
336
334
|
setResponseItems(function (currentResponseItems) {
|
|
337
335
|
if (shouldRequestFirstPage) {
|
|
338
336
|
return itemsToAdd;
|
|
@@ -350,7 +348,7 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
|
|
|
350
348
|
entityType = objectTypesEntity;
|
|
351
349
|
newIds = onAddItems(itemsToAdd, typeof integrationKey === 'string' ? integrationKey : undefined, entityType);
|
|
352
350
|
setResponseItemIds(function (currentIds) {
|
|
353
|
-
return
|
|
351
|
+
return shouldRequestFirstPage ? newIds : [].concat(_toConsumableArray(currentIds), _toConsumableArray(newIds));
|
|
354
352
|
});
|
|
355
353
|
if (!isFedRamp()) {
|
|
356
354
|
if (typeof integrationKey === 'string') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "7.12.
|
|
3
|
+
"version": "7.12.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -170,9 +170,6 @@
|
|
|
170
170
|
"platform_lp_sllv_on_request_settled": {
|
|
171
171
|
"type": "boolean"
|
|
172
172
|
},
|
|
173
|
-
"platform_sllv_duplicated_row": {
|
|
174
|
-
"type": "boolean"
|
|
175
|
-
},
|
|
176
173
|
"astral_units_workspace_host_resolver": {
|
|
177
174
|
"type": "boolean"
|
|
178
175
|
},
|