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

Adding slack sink connector #60

Closed
wants to merge 3 commits into from
Closed

Conversation

Kanugula
Copy link

@Kanugula Kanugula commented Mar 26, 2020

PR closed by Hazelcast automation as no activity (>6 months). Please reopen with comments, if necessary. Thank you for using Hazelcast and your valuable contributions

@devOpsHazelcast
Copy link
Collaborator

Can one of the admins verify this patch?

@cangencer
Copy link
Contributor

Thanks a lot for the contribution! I couldn't see your name in our contributor list: could you follow the steps at https://hazelcast.atlassian.net/wiki/spaces/COM/pages/6357071/Hazelcast+Contributor+Agreement ?

@eminn eminn added the new module Introduces a new extension module label Mar 27, 2020
@eminn eminn linked an issue Mar 27, 2020 that may be closed by this pull request
@eminn
Copy link
Contributor

eminn commented Mar 27, 2020

verify

* Added retry http handler to handle some of the error causes.
* Variable names are updated as per review comments.
* Addressed other review comments.

Signed-off-by: Rajasekhar Kanugula <[email protected]>
urlParameters.add(new BasicNameValuePair("text", message));
request.setEntity(new UrlEncodedFormEntity(urlParameters));
response = (CloseableHttpResponse) closeableHttpClient.execute(request);
result = EntityUtils.toString(response.getEntity());
Copy link
Contributor

Choose a reason for hiding this comment

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

We return the result, but the returned value is ignored. Is there something worthwhile to check?

Copy link
Author

Choose a reason for hiding this comment

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

Added the simple to pojo class to parse the response. In error scenarios sample message will look like this { "ok": false, "error": "not_authed" } If the Response.ok false means then throwing the RuntimeException.

@devOpsHazelcast
Copy link
Collaborator

devOpsHazelcast commented Apr 5, 2020

CLA assistant check
All committers have signed the CLA.

@Holmistr
Copy link

Hi @Kanugula , just checking in if there's anything we can help you out with? :)

> Processing the Rest response to SlackResponse to handle failure causes from the slack apis.

Signed-off-by: Rajasekhar Kanugula <[email protected]>
@Holmistr
Copy link

@Kanugula Glad to see your edits :) @viliam-durina Could you please take another look?

@viliam-durina viliam-durina self-requested a review April 22, 2020 07:06
@cangencer
Copy link
Contributor

@viliam-durina do you mind picking this up again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slack Sink
6 participants