Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

[BUG] Slackbot notifier false positive notification #125

Open
etagwerker opened this issue Oct 19, 2022 · 2 comments
Open

[BUG] Slackbot notifier false positive notification #125

etagwerker opened this issue Oct 19, 2022 · 2 comments
Labels

Comments

@etagwerker
Copy link
Member

Expected Behavior

When I log a time entry like this one:

Worked on PROJECT-1235: Solved bug and submitted PR

I should not get a notification from the Slackbot.

Actual Behavior

When I log a time entry like this one:

Worked on PROJECT-1235: Solved bug and submitted PR

I get a notification from the Slackbot.

Possible Fix

Improve the regular expression. The : is throwing things off.

To Reproduce

  1. Log an entry with PROJECT-123: in Noko
  2. Get a notification around 8pm

Additional Information

Here is more info:

I will abide by the code of conduct

@etagwerker etagwerker added the bug label Oct 19, 2022
@arielj
Copy link
Contributor

arielj commented Oct 19, 2022

Could be useful to also check this line doing a gsub before matching the Jira ID:

@description.gsub(/[\[\]\,\.]/, ' ').scan(JIRA_REGEX).any?

Because will have a similar issue doing something like Woking on something (PROJ-123) since the ( ) will also make it fail.

Not sure what's better, if an update of the gsub regular expression removing chars or if an update on the JIRA regular expression to ignore unwanted chars.

@aisayo
Copy link
Contributor

aisayo commented Oct 26, 2022

I agree that updating the gsub to removing chars will be more beneficial.

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

No branches or pull requests

3 participants