Hi Ben,

We don't have any way of doing this built-in, I'm afraid. I want to
understand this in more detail.

So the main concern is that you're looking to limit what information Slack
receives, and the main source of this information in your case would be in
the description, correct? Are there any concerns about the summary or any
fields (branch, repository, etc.) being sent as well? If a review request
has an attached screenshot, it will be shown as well, so would that also
need to be filtered out?

One approach, which admittedly is more involved but gives you more control
over what gets sent, is to write your own extension that registers a
subclass of our own SlackIntegration (
https://github.com/reviewboard/rbintegrations/blob/master/rbintegrations/slack/integration.py#L155
).

That subclass would override notify(), altering some of the fields and
stripping away the description, screenshots, or whatever else you need to
remove, and then call the parent with the new method.

Your Extension subclass would be simple, just something like:


    from reviewboard.extensions.base import Extension
    from reviewboard.extensions.hooks import IntegrationHook

    class MySlackExtension(Extension):
        def initialize(self):
            IntegrationHook(self, MySlackIntegration)


Christian

On Tue, Oct 22, 2019 at 8:03 AM Ben ST <[email protected]> wrote:

> Hi
>
> I am experimenting with the Slack integration (RB 3.0.15). Currently all
> of the RB Description body is sent to Slack. Is there a way to limit the
> post just to the Summary?
>
> For confidentiality/security reasons our system admins don't want code
> posted into Slack channels, at least not by an automated system. So I can't
> use the Slack integration as it is. Or if there was a way to limit the
> Description to a max length like 250 chars, that would be good enough.
>
> Thanks.
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/511c5ed2-6d32-471a-b7de-38d22479abca%40googlegroups.com
> <https://groups.google.com/d/msgid/reviewboard/511c5ed2-6d32-471a-b7de-38d22479abca%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Christian Hammond
President/CEO of Beanbag <https://www.beanbaginc.com/>
Makers of Review Board <https://www.reviewboard.org/>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAE7Vnd%3DNWGZDXsQWKXxgpJiFX%2BpZxJ0izhtZYcnqfNQ856Jf1Q%40mail.gmail.com.

Reply via email to