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

Improve Slack Sanitization #4475

Merged
merged 19 commits into from
Sep 25, 2019
Merged

Improve Slack Sanitization #4475

merged 19 commits into from
Sep 25, 2019

Conversation

vigneshp826
Copy link
Contributor

@vigneshp826 vigneshp826 commented Sep 17, 2019

Proposed changes:

Status (please check what you already did):

  • made PR ready for code review
  • added some tests for the functionality
  • updated the documentation
  • updated the changelog
  • reformat files using black (please check Readme for instructions)

@vigneshp826
Copy link
Contributor Author

@erohmensing not able to get much out of this build error log

"Makefile:40: recipe for target 'lint' failed
make: *** [lint] Error 1"

Can you please help me :)?

@msamogh
Copy link
Contributor

msamogh commented Sep 18, 2019

@vigneshp826 You have to reformat your files using black (https://github.com/rasahq/rasa#code-style).

@msamogh
Copy link
Contributor

msamogh commented Sep 18, 2019

But thank you for your PR, we'll give it a review as soon as possible.

@msamogh msamogh self-requested a review September 18, 2019 08:44
Copy link
Contributor

@msamogh msamogh left a comment

Choose a reason for hiding this comment

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

The blank lines should be there in the docstring, but looks good otherwise.

@erohmensing
Copy link
Contributor

A changelog entry would be good too please :)

@vigneshp826
Copy link
Contributor Author

changelog entry under [Unreleased 1.4.0] - master ?

@msamogh
Copy link
Contributor

msamogh commented Sep 18, 2019

@vigneshp826 Yes

@vigneshp826
Copy link
Contributor Author

added changelog entry

replacement = regex.split("|")[1]
replacement = replacement.replace('>', '')
text = text.replace(regex, replacement)
else:
Copy link
Contributor

Choose a reason for hiding this comment

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

The else part can be dropped.

@msamogh
Copy link
Contributor

msamogh commented Sep 18, 2019

But it looks good otherwise. Thanks for your contribution!

@erohmensing erohmensing merged commit 19fa8a3 into RasaHQ:master Sep 25, 2019
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.

improve slack sanitization
3 participants