Skip to content

Commit 643bde3

Browse files
Merge pull request #62 from acoustic-content-samples/rel4.5.2
rel4.5.2
2 parents 3afc704 + cb7fa88 commit 643bde3

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 4.5.2 changes since 4.5.1
4+
- search
5+
- fix search query parameters duplication when paging through results
6+
37
### 4.5.1 changes since 4.5.0
48
- Fix concurrency issue in pull with multiple assets referencing the same resource id
59

@@ -260,8 +264,8 @@
260264

261265
### v1.1 Changes since 1.0.*
262266

263-
NOTE: Starting with release 1.1.*, please retrieve your Watson Content Hub tenant specific API URL from the Authoring UI "Hub Information" dialog, to configure wchtools. This should be the same WCH tenant specific base API URL you use for all the public WCH samples and with the APIs in IBM API Explorer for Watson Content Hub as described here: https://developer.ibm.com/api/view/id-618:title-IBM_Watson_Content_Hub_API#getting
264-
Follow the Readme instructions for installing the wchtools CLI and then the Getting Started instructions for obtaining and setting your WCH tenant specific API URL.
267+
NOTE: Starting with release 1.1.*, please retrieve your Acoustic Content tenant specific API URL from the Authoring UI "Hub Information" dialog, to configure wchtools. This should be the same tenant specific base API URL you use for all the public Content samples.
268+
Follow the Readme instructions for installing the wchtools CLI and then the Getting Started instructions for obtaining and setting your Acoustic Content tenant specific API URL.
265269

266270
#### Configuration options improvements:
267271

CLI/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wchtools-cli",
33
"description": "Command line tools for Acoustic Content",
4-
"version": "4.5.1",
4+
"version": "4.5.2",
55
"keywords": [
66
"cli"
77
],

authoring-api/baseHelper.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,9 @@ class BaseHelper {
11241124
searchOptions["fq"] = [searchOptions["fq"]];
11251125
}
11261126
if (query) {
1127-
searchOptions["fq"].push(query);
1127+
if(searchOptions["fq"].indexOf(query) == -1) { // NOSONAR
1128+
searchOptions["fq"].push(query);
1129+
}
11281130
}
11291131
return searchOptions;
11301132
}
@@ -1139,6 +1141,9 @@ class BaseHelper {
11391141
if (!searchPath.endsWith('*')) {
11401142
searchPath += "*";
11411143
}
1144+
1145+
1146+
11421147
// Prefix some special characters with a backslash so they are interpreted properly by search.
11431148
searchPath = searchPath.replace(/[ "^~{}[\]()]/g, "\\$&");
11441149
return this._search(context, this._addSearchQuery(searchOptions, "path:" + searchPath), opts);

authoring-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wchtools-api",
33
"description": "Tools API for Acoustic Content",
4-
"version": "4.5.1",
4+
"version": "4.5.2",
55
"keywords": [
66
"api",
77
"tools"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prod-tools",
3-
"version": "4.5.1",
3+
"version": "4.5.2",
44
"author": "Acoustic, L.P.",
55
"license": "Apache-2.0",
66
"bugs": {

0 commit comments

Comments
 (0)