Skip to content

Commit 5668a83

Browse files
authored
Issue 47202: Options to reduce payload of getContainers.api response (#149)
## 1.18.8 - 2023-03-02 - Issue 47202: Options to reduce payload of getContainers.api response - two new properties: includeWorkbookChildren and includeStandardProperties
1 parent 5d1975a commit 5668a83

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
## 1.18.8 - 2023-03-02
2+
- Issue 47202: Options to reduce payload of getContainers.api response
3+
- two new properties: includeWorkbookChildren and includeStandardProperties
4+
15
## 1.18.7 - 2023-02-28
26
- Add `comment` param to `deleteContainer` fn
37

48
## 1.18.6 - 2023-02-28
5-
* Update `LineageItemBase` to optionally include `comment?: string`.
6-
* Update `LineageNodeBase` to optionally include `protocol?: LineageItemBase`.
9+
- Update `LineageItemBase` to optionally include `comment?: string`.
10+
- Update `LineageNodeBase` to optionally include `protocol?: LineageItemBase`.
711

812
## 1.18.5 - 2023-02-24
913
- Add the `AllInProject` and `AllInProjectPlusShared` container filter types supported starting in v23.03.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@labkey/api",
3-
"version": "1.18.7",
3+
"version": "1.18.8",
44
"description": "JavaScript client API for LabKey Server",
55
"scripts": {
66
"build": "npm run build:dist && npm run build:docs",

src/labkey/security/Container.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,20 @@ export interface GetContainersOptions extends RequestCallbackOptions /* <Contain
140140
* will not be included. (defaults to true)
141141
*/
142142
includeEffectivePermissions?: boolean;
143+
/**
144+
* If set to true, all of the container's standard properties will be included. (defaults to true)
145+
* If set to false, only the base set of properties (i.e. id, name, and path) will be included.
146+
*/
147+
includeStandardProperties?: boolean;
143148
/**
144149
* If set to true, the entire branch of containers will be returned.
145150
* If false, only the immediate children of the starting container will be returned (defaults to false).
146151
*/
147152
includeSubfolders?: boolean;
153+
/**
154+
* If set to false, child containers of type "workbook" will not be included. (defaults to true)
155+
*/
156+
includeWorkbookChildren?: boolean;
148157
/**
149158
* The names (Strings) of modules whose Module Property values should be included for each container.
150159
* Use "*" to get the value of all Module Properties for all modules.
@@ -188,6 +197,12 @@ export function getContainers(config: GetContainersOptions): XMLHttpRequest {
188197
if (config.includeEffectivePermissions != undefined) {
189198
params.includeEffectivePermissions = config.includeEffectivePermissions;
190199
}
200+
if (config.includeWorkbookChildren != undefined) {
201+
params.includeWorkbookChildren = config.includeWorkbookChildren;
202+
}
203+
if (config.includeStandardProperties != undefined) {
204+
params.includeStandardProperties = config.includeStandardProperties;
205+
}
191206
}
192207

193208
return request({

0 commit comments

Comments
 (0)