Skip to content

Commit 8a7bcaa

Browse files
authored
Add includeViewDataUrl and includeTitle parameters to Query.getQueries() (#141)
1 parent 8a6a501 commit 8a7bcaa

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.18.0 - 2023-01-03
2+
- [Issue 47010](https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=47010): Add `includeViewDataUrl` and `includeTitle` parameters to `Query.getQueries()`. Setting these to `false` (along with existing parameter `includeColumns`) can improve performance of getQueries() calls.
3+
14
## 1.17.1 - 2022-12-19
25
- Fix URI decoding for paths with encoded characters in container names
36

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ can do so via the following steps:
8080
1. Build the package (as described above).
8181
1. Copy the package's `/dist` directory to `/<labkey root>/server/modules/platform/core/node_modules/@labkey/api/dist`.
8282
1. Navigate to `/<labkey root>/server/modules/platform/core`.
83-
1. Run `node build.js` from the `core` module directory.
83+
1. Run `npm run copy-distributions` from the `core` module directory.
8484

8585
Your changes will now be included in the bundle served by your local LabKey Server instance.
8686

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.17.1",
3+
"version": "1.18.0",
44
"description": "JavaScript client API for LabKey Server",
55
"scripts": {
66
"build": "npm run build:dist && npm run build:docs",

src/labkey/query/Utils.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,12 @@ export interface GetQueriesOptions extends RequestCallbackOptions<GetQueriesResp
245245
includeColumns?: boolean;
246246
/** If set to false, system-defined queries will not be included in the results. Default is true. */
247247
includeSystemQueries?: boolean;
248+
/** If set to false, no custom query titles will be included. Instead, titles will be identical to names. Default is true. */
249+
includeTitle?: boolean;
248250
/** If set to false, user-defined queries will not be included in the results. Default is true. */
249251
includeUserQueries?: boolean;
252+
/** If set to false, view data URLs will not be included in the results. Default is true. */
253+
includeViewDataUrl?: boolean;
250254
/**
251255
* If set to true, and includeColumns is set to true, information about the available columns
252256
* will be the same details as specified by [[getQueryDetails]] for columns.
@@ -270,8 +274,10 @@ export function getQueries(options: GetQueriesOptions): XMLHttpRequest {
270274
{
271275
schemaName: 'schemaName',
272276
includeColumns: 'includeColumns',
273-
includeUserQueries: 'includeUserQueries',
274277
includeSystemQueries: 'includeSystemQueries',
278+
includeTitle: 'includeTitle',
279+
includeUserQueries: 'includeUserQueries',
280+
includeViewDataUrl: 'includeViewDataUrl',
275281
queryDetailColumns: 'queryDetailColumns',
276282
},
277283
false,

0 commit comments

Comments
 (0)