Skip to content

Commit

Permalink
New version 2.6.3 with bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevendavelaar committed Jul 11, 2022
1 parent cf990e2 commit c2fa637
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
7 changes: 7 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Release Notes

- [Version 2.6.3](#v263)
- [Version 2.6.2](#v262)
- [Version 2.6.1](#v261)
- [Version 2.6.0](#v260)
Expand All @@ -12,6 +13,12 @@
- [Version 2.4.3](#v243)
- [Version 2.4.2](#v242)

## Version 2.6.3 <a name="v263">

### Fixed Issues

- Fix for display value of multi-value recurring property

## Version 2.6.2 <a name="v262">

### Fixed Issues
Expand Down
4 changes: 2 additions & 2 deletions bin/templates/components/entityeventhandler/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
*/
function updatedItemsMessage(context) {
if (context.getItemsUpdated().length > 0) {
let message = "I have updated" + context.getItemDefsUpdated().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name.toLowerCase()) + " to " + context.getDisplayValue(item.fullName || item.name));
let message = "I have updated" + context.getItemDefsUpdated().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name).toLowerCase() + " to " + context.getDisplayValue(item.fullName || item.name));
context.addMessage(message);
}
}
Expand All @@ -63,7 +63,7 @@ function updatedItemsMessage(context) {
*/
function outOfOrderItemsMessage(context) {
if (context.getItemsMatchedOutOfOrder().length > 0) {
let message = "I got" + context.getItemDefsMatchedOutOfOrder().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name.toLowerCase()) + " " + context.getDisplayValue(item.fullName || item.name));
let message = "I got" + context.getItemDefsMatchedOutOfOrder().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name).toLowerCase() + " " + context.getDisplayValue(item.fullName || item.name));
context.addMessage(message);
}
}
4 changes: 2 additions & 2 deletions bin/templates/components/entityeventhandler/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class {{className}} implements EntityEventHandler {
*/
function updatedItemsMessage(context: EntityResolutionContext) {
if (context.getItemsUpdated().length > 0) {
let message = "I have updated" + context.getItemDefsUpdated().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name.toLowerCase()) + " to " + context.getDisplayValue(item.fullName || item.name));
let message = "I have updated" + context.getItemDefsUpdated().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name).toLowerCase() + " to " + context.getDisplayValue(item.fullName || item.name));
context.addMessage(message);
}
}
Expand All @@ -78,7 +78,7 @@ function updatedItemsMessage(context: EntityResolutionContext) {
*/
function outOfOrderItemsMessage(context: EntityResolutionContext) {
if (context.getItemsMatchedOutOfOrder().length > 0) {
let message = "I got" + context.getItemDefsMatchedOutOfOrder().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name.toLowerCase()) + " " + context.getDisplayValue(item.fullName || item.name));
let message = "I got" + context.getItemDefsMatchedOutOfOrder().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name).toLowerCase() + " " + context.getDisplayValue(item.fullName || item.name));
context.addMessage(message);
}
}
3 changes: 2 additions & 1 deletion lib/entity/entityResolutionContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,8 @@ class EntityResolutionContext extends BaseContext {
let childValue = itemValue[childItem.name];
if (childValue) {
let label = childItem.label || childItem.name;
displayValue += '\n' + label + ': ' + this._getDisplayValue('DATE_TIME.'+childValue.subType, childValue);
let subType = Array.isArray(childValue) ? childValue[0].subType : childValue.subType;
displayValue += '\n' + label + ': ' + this._getDisplayValue('DATE_TIME.'+subType, childValue);
}
}
return displayValue;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oracle/bots-node-sdk",
"version": "2.6.2",
"version": "2.6.3",
"description": "Oracle Bots SDK for custom component development and webhook integrations",
"main": "index.js",
"browser": "index-browser.js",
Expand Down

0 comments on commit c2fa637

Please sign in to comment.