Skip to content

Commit 2310149

Browse files
authored
Merge pull request #469 from chughts/082
082
2 parents 4b21478 + 1137d52 commit 2310149

15 files changed

+877
-796
lines changed

README.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,18 @@ Node-RED Watson Nodes for IBM Cloud
77

88
<a href="https://cla-assistant.io/watson-developer-cloud/node-red-node-watson"><img src="https://cla-assistant.io/readme/badge/watson-developer-cloud/node-red-node-watson" alt="CLA assistant" /></a>
99

10+
### New in version 0.8.2
11+
- Node-RED & IBM-Watson & Use of promises on API invocation & IAM URL construct migration & Removal of default endpoint of
12+
- Document Translator node
13+
- Discovery node
14+
- Discovery Document Loader node
15+
- Discovery Query Builder node
16+
- Assistant V1 Workspace Manager node
17+
- List Expansion list, and List Training data modes added to Discovery node
18+
- Fix to Create Classifier mode in NLC node
19+
1020
### New in version 0.8.1
11-
- Node-RED & IBM-Watson & Use of promises on API invokation & IAM URL construct migration & Removal of default endpoint of
21+
- Node-RED & IBM-Watson & Use of promises on API invocation & IAM URL construct migration & Removal of default endpoint of
1222
- Speech to Text node
1323
- Speech to Text Corpus Builder node
1424
- Natural Language Understanding node
@@ -33,7 +43,7 @@ During the migration there will be a dependancy on both modules.
3343
- Bump dependancy on node to >=10.0.0
3444
- Bump dependancy on cfenv, request, file-type
3545
- Bump dependancy on ibm-cloud-sdk-core to 0.3.7 (need to stay on 0.x, for STT Streaming to work)
36-
- Node-RED & IBM-Watson & Use of promises on API invokation & IAM URL construct migration & Removal of default endpoint of
46+
- Node-RED & IBM-Watson & Use of promises on API invocation & IAM URL construct migration & Removal of default endpoint of
3747
- Tone Analyzer node.
3848
- Personality Insights node.
3949
- Visual Recognition V3 node
@@ -46,7 +56,7 @@ During the migration there will be a dependancy on both modules.
4656
- Update language lists for STT, TTS, Language Translator and Document Translator Nodes
4757

4858
### Watson Nodes for Node-RED
49-
A collection of nodes to interact with the IBM Watson services in [IBM Cloud](http://bluemix.net).
59+
A collection of nodes to interact with the IBM Watson services in [IBM Cloud](http://cloud.ibm.com).
5060

5161
# Nodes
5262

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-node-watson",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"description": "A collection of Node-RED nodes for IBM Watson services",
55
"dependencies": {
66
"async": "^1.5.2",
@@ -24,7 +24,7 @@
2424
"license": "Apache-2.0",
2525
"keywords": [
2626
"node-red",
27-
"bluemix",
27+
"ibm-cloud",
2828
"watson"
2929
],
3030
"contributors": [

services/assistant/v1-workspace-manager.html

+5-19
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,12 @@
4444
</div>
4545

4646
<div class="form-row credentials">
47-
<label>&nbsp;</label>
48-
<input type="checkbox" id="node-input-cwm-default-endpoint" style="display: inline-block; width: auto; vertical-align: top;">
49-
<label for="node-input-cwm-default-endpoint" style="width: 70%;"> Use Default Service Endpoint</label>
50-
</div>
51-
<div class="form-row">
5247
<label for="node-input-cwm-service-endpoint"><i class="fa fa-tag"></i> Service Endpoint</label>
5348
<input type="text" id="node-input-cwm-service-endpoint" placeholder="https://gateway.watsonplatform.net/assistant/api">
5449
</div>
5550

5651
<div class="form-row">
57-
<label for="node-input-cwm-custom-mode"><i class="fa fa-book"></i> Detect: </label>
52+
<label for="node-input-cwm-custom-mode"><i class="fa fa-book"></i> Mode: </label>
5853
<select type="text" id="node-input-cwm-custom-mode" style="display: inline-block; width: 70%;">
5954
<option value="listWorkspaces">List Workspaces</option>
6055
<option value="getWorkspace">Get Workspace Details</option>
@@ -341,7 +336,7 @@
341336
defining the content of the updates
342337
should be passed in
343338
as <code>msg.payload</code>. Fields to be updated need a
344-
<code>new_</code> prefix as part of their key.
339+
<code>new_</code> prefix as part of their key.
345340
</p>
346341
</li>
347342
<li>Delete Dialog Node
@@ -438,7 +433,6 @@
438433
// moved in if there is a clash with other nodes.
439434
var cv1wm = new CV1WM();
440435
cv1wm.mode_selected = null;
441-
cv1wm.endpoint_required = false;
442436

443437
cv1wm.showSelectedFields = function(fields) {
444438
for (i = 0; i < fields.length; i++) {
@@ -463,8 +457,7 @@
463457
+ ', #node-input-cwm-entity'
464458
+ ', #node-input-cwm-entity-value'
465459
+ ', #node-input-cwm-dialog-node'
466-
+ ', #node-input-cwm-export-content'
467-
+ ', #node-input-cwm-service-endpoint');
460+
+ ', #node-input-cwm-export-content');
468461

469462
cv1wm.hideSelectedFields(fields);
470463
}
@@ -546,9 +539,7 @@
546539
case 'createWorkspace':
547540
break;
548541
}
549-
if (cv1wm.endpoint_required) {
550-
fields.push('#node-input-cwm-service-endpoint');
551-
}
542+
552543
cv1wm.showSelectedFields(fields);
553544
}
554545

@@ -558,10 +549,6 @@
558549
cv1wm.mode_selected = $('#node-input-cwm-custom-mode').val();
559550
cv1wm.processSelectedMethod(cv1wm.mode_selected);
560551
});
561-
$('#node-input-cwm-default-endpoint').change(function () {
562-
cv1wm.endpoint_required = ! $('#node-input-cwm-default-endpoint').prop('checked');
563-
cv1wm.processSelectedMethod(cv1wm.mode_selected);
564-
});
565552
}
566553

567554
// This is the on edit prepare function, which will be invoked everytime the dialog
@@ -600,8 +587,7 @@
600587
'cwm-entity-value': {value:""},
601588
'cwm-dialog-node': {value:""},
602589
'cwm-export-content': {value:false},
603-
'cwm-default-endpoint' :{value: true},
604-
'cwm-service-endpoint' :{value: 'https://gateway.watsonplatform.net/assistant/api'}
590+
'cwm-service-endpoint' :{value: ''}
605591
},
606592
credentials: {
607593
username: {type:'text'},

0 commit comments

Comments
 (0)