Skip to content

Commit

Permalink
version bumped to 8.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshrupnar committed Nov 29, 2021
1 parent a5f3318 commit 605e0e7
Show file tree
Hide file tree
Showing 26 changed files with 68 additions and 62 deletions.
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,11 @@ Major release of chat workflow. Most interfaces for this changed. See migratio
# Nov 8, 2021

- Minor bugfix - KoreAI - JAVA_HOME variable replaced with actual path from System Property

# Nov 29, 2021

- Fix for #264 - For ChatRequest and ChatButton - room exclusion feature
- Fix for #262 and #235 - For ChatRequest and ChatButton - rooms parameter
- Fix for #260 - We can search user from different POD as well
- Fix for #259 - Buttons are now visible on HelpPage

4 changes: 2 additions & 2 deletions demos/claim-bot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -24,7 +24,7 @@
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-chat-workflow-spring-boot-starter</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
4 changes: 2 additions & 2 deletions demos/demo-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand Down Expand Up @@ -38,7 +38,7 @@
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-app-spring-boot-starter</artifactId>
<scope>compile</scope>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
6 changes: 3 additions & 3 deletions demos/demo-bot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -33,13 +33,13 @@
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-api-spring-boot-starter</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>shared-stream-spring-boot-starter</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions demos/todo-bot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -24,7 +24,7 @@
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-chat-workflow-spring-boot-starter</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
4 changes: 2 additions & 2 deletions libs/bindings/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand Down Expand Up @@ -247,7 +247,7 @@
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>identity</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<!-- excluded by spring bom, but we need it for jersey-apache-connector -->
Expand Down
2 changes: 1 addition & 1 deletion libs/chat-workflow/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;

import org.finos.symphony.toolkit.workflow.actions.Action;
Expand Down Expand Up @@ -121,7 +122,7 @@ private boolean canBePerformedHere(FormAction a) {
private ChatHandlerExecutor matchesFormAction(FormAction a) {
MappingRegistration<?> me = this;

if(a.getData().get("form").getClass() == HelpPage.class) {
if(Objects.nonNull(a.getData().get("form")) && a.getData().get("form").getClass() == HelpPage.class) {
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -200,7 +201,7 @@ public ChatHandlerExecutor getExecutor(Action a) {

if (a instanceof FormAction) {

if (((FormAction) a).getData().get("form").getClass() != HelpPage.class) {
if (Objects.nonNull(((FormAction)a).getData().get("form")) && ((FormAction) a).getData().get("form").getClass() != HelpPage.class) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion libs/entity-json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion libs/identity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion libs/quickfix-json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
10 changes: 5 additions & 5 deletions libs/shared-stream-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -23,19 +23,19 @@
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>bindings</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>identity</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>entity-json</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<scope>compile</scope>
</dependency>

Expand All @@ -48,7 +48,7 @@
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-api-spring-boot-starter</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions libs/symphony-api-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

<dependencies>
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>bindings</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>identity</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions libs/symphony-app-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -34,7 +34,7 @@
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-api-spring-boot-starter</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
</dependency>

<!-- used for certificate generation -->
Expand Down
8 changes: 4 additions & 4 deletions libs/symphony-chat-workflow-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -21,17 +21,17 @@
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>chat-workflow</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-api-spring-boot-starter</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>shared-stream-spring-boot-starter</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
</dependency>

<!-- allows chat workflow to send attachments -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@
import java.io.FileInputStream;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Optional;

import org.finos.symphony.toolkit.json.EntityJson;
import org.finos.symphony.toolkit.workflow.actions.Action;
import org.finos.symphony.toolkit.workflow.actions.FormAction;
import org.finos.symphony.toolkit.workflow.actions.SimpleMessageAction;
import org.finos.symphony.toolkit.workflow.annotations.ChatButton;
import org.finos.symphony.toolkit.workflow.annotations.ChatRequest;
import org.finos.symphony.toolkit.workflow.content.Chat;
import org.finos.symphony.toolkit.workflow.content.CodeBlock;
Expand All @@ -24,9 +21,7 @@
import org.finos.symphony.toolkit.workflow.content.Word;
import org.finos.symphony.toolkit.workflow.fixture.OurController;
import org.finos.symphony.toolkit.workflow.fixture.StartClaim;
import org.finos.symphony.toolkit.workflow.fixture.TestObject;
import org.finos.symphony.toolkit.workflow.form.ButtonList;
import org.finos.symphony.toolkit.workflow.form.FormSubmission;
import org.finos.symphony.toolkit.workflow.java.mapping.ChatHandlerMappingActionConsumer;
import org.finos.symphony.toolkit.workflow.java.mapping.ChatMapping;
import org.finos.symphony.toolkit.workflow.java.mapping.ChatRequestChatHandlerMapping;
Expand All @@ -49,10 +44,10 @@
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.util.StreamUtils;
import org.symphonyoss.Taxonomy;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.symphonyoss.Taxonomy;


@SpringBootTest(classes = {
Expand Down Expand Up @@ -223,13 +218,14 @@ public void testHelp() throws Exception {
+ " \"type\" : \"org.finos.symphony.toolkit.workflow.help.commandDescription\",\n"
+ " \"version\" : \"1.0\",\n"
+ " \"description\" : \"Display this help page\",\n"
+ " \"examples\" : [ \"help\" ]\n"
+ " \"buttonName\" : \"help\",\n"
+ " \"examples\" : [ \"help\" ],\n"
+ " \"button\" : true\n"
+ " }"));

Assertions.assertTrue(msg.getValue().contains("<tr>\n"
+ " <th>Description</th>\n"
+ " <th>Type... </th>\n"
+ " </tr>"));
Assertions.assertTrue(msg.getValue().contains("<th>Button</th>"));
Assertions.assertTrue(msg.getValue().contains("<th>Or Type... </th>"));
Assertions.assertTrue(msg.getValue().contains("<th>Description</th>"));

}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Symphony Java Toolkit</name>
<description>A collection of Java projects for building Symphony bots and apps</description>
Expand Down
8 changes: 4 additions & 4 deletions tools/koreai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-java-toolkit</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -25,17 +25,17 @@
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>symphony-api-spring-boot-starter</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>entity-json</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.finos.symphony.toolkit</groupId>
<artifactId>shared-stream-spring-boot-starter</artifactId>
<version>8.0.5-SNAPSHOT</version>
<version>8.0.6-SNAPSHOT</version>
</dependency>

<!-- allows shared stream coordination -->
Expand Down
Loading

0 comments on commit 605e0e7

Please sign in to comment.