Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

653 fr slack connector post message add option to post to an existing thread #2773

Conversation

mathias-vandaele
Copy link
Contributor

Description

Users were not able to create a new thread from an existing message or add a message to an existing thread. this solves the issues.

I added a new optional field to the slack outbound connector thread which takes the id of a message to start a thread from.

This id has to be gotten from the output mapping message.ts which contains the id of the posted message

Related issues

There might be an issue in the future when an user wants to add messages (using camunda) inside a thread that has been create by a normal user (human), as I don't know how to retrieve the id.

closes https://github.com/camunda/team-connectors/issues/653

@mathias-vandaele mathias-vandaele requested a review from a team as a code owner June 18, 2024 16:26
@CLAassistant
Copy link

CLAassistant commented Jun 18, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@johnBgood johnBgood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor comments, note that you also need to update the web-modeler templates here is an example

@@ -133,4 +100,42 @@ protected static Stream<String> loadTestCasesFromResourceFile(final String fileW
})
.map(Arguments::of);
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you might need to fix your formatted, this bloc has been moved apparently

@@ -54,11 +47,17 @@ class ChatPostMessageDataTest {
}
}

@Mock private MethodsClient methodsClient;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -80,7 +79,7 @@ void invoke_shouldThrowExceptionWhenUserWithoutEmail() throws SlackApiException,
void invoke_shouldFindUserIdByEmail(String email) throws SlackApiException, IOException {
// Given
ChatPostMessageData chatPostMessageData =
new ChatPostMessageData(email, "plainText", "test", null);
new ChatPostMessageData(email, "thread_ts", "", "test", null);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plainText disappeared is it expected?

}
]
""";
[
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same formatting issue

}
}
""";
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here as well :)

@mathias-vandaele mathias-vandaele force-pushed the 653-fr-slack-connector-post-message-add-option-to-post-to-an-existing-thread branch from 4dd650b to 142222f Compare June 20, 2024 15:35
@mathias-vandaele mathias-vandaele force-pushed the 653-fr-slack-connector-post-message-add-option-to-post-to-an-existing-thread branch from 142222f to f6ee79c Compare June 20, 2024 15:41
Copy link
Collaborator

@johnBgood johnBgood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 flag, great job!

@johnBgood johnBgood added this pull request to the merge queue Jun 21, 2024
Merged via the queue into main with commit 478ae37 Jun 21, 2024
4 checks passed
@johnBgood johnBgood deleted the 653-fr-slack-connector-post-message-add-option-to-post-to-an-existing-thread branch June 21, 2024 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants