Describe the bug
https://chefio.slack.com/apps/... then correctly showed these two:

In https://semgrep.dev/manage/notifications, I pressed Delete to remove the earlier notification.
=> First issue: Apparently nothing happened; both still showed.
I then refreshed the page.
=> Second issue: the old notification went away, but the second notification appeared twice! (I blanked out for security reasons, but the two URLs are identical.)

I then pressed Delete on one of them and this time the display updated itself, now showing just one.
To Reproduce
As above.
Expected behavior
Selected notification should have been correctly removed, and the screen updated to reflect this, in step 3.
Screenshots
As above.
What is the priority of the bug to you?
Is this a P0 (blocking your adoption of Semgrep or workflow), P1 (important to fix or quite annoying), P2 (regular bug that should get fixed)?
P2 regular -- not something I would need again in the near term.
Environment
??
Hi @msorens,
Interesting behavior - seems like there could be a race condition somewhere. Unfortunately I'm unable to reproduce.
Here are the exact steps I tried:
I'm unable to reproduce the failed delete, or the duplicated URL. I also tried with URL1 == URL2, but still no luck. Are you still able to reproduce this behavior?
This sounds like it could be browser/OS dependent. Could you include your system information/versions?
Just experimented a bit and I am seeing a new variation, 100% repeatable.
(This is more reliable data since I was paying close attention to my steps carefully this time.)
My system is a Mac running Mojave (10.14.6).
Same issues in Chrome [Version 87.0.4280.88 (Official Build) (x86_64)] and in Firefox [84.0.1 (64-bit)].
Today I started with my one good, working slack notification and never touched that one.
Steps:
This seems to be the crucial point:
To fail ("fail" being defined as (a) no deletion notice and (b) item returns upon refresh):
Create notification, NO refresh, then delete notification.
To succeed:
Create notification, do one or more refreshes, then delete notification.
Ahh, thanks for the clarification, I'm able to reproduce now. This appears to be a bug in our state management between "Save" and "Delete" functionality. Since this is low priority, we'll hold off on a fix until after the new year :+1:
Hey @msorens,
A fix has been pushed. The cloud app will receive the fix next time we release, which should be in the next couple days :+1:
Thanks again for finding this!