Closed peter-lyons-kehl closed 6 years ago
@peter-kehl/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!
@0crat in
@peter-kehl @carlosmiranda What about setting an date for IgnoreEvents
and make it just work on events after this date?
@paulodamaso my understanding is @peter-kehl wants to NOT clear notifications that were pending before setting up the pipe. What's happening is it's only processing notifs created after the new pipe, with the pending ones getting lost.
There might be a Github API limitation that's causing this, I'm not sure at the moment. Whatever the case let's either fix it or document the limitation.
Hi @carlosmiranda and @paulodamaso ,
Confirming Carlos' understanding: NOT to clear notifications that were pending before setting up the pipe, or to document the fact.
@carlosmiranda @peter-kehl What I've found so far:
Github Agent AgGithub
clears all notifications from Github after pushing them to database; it calls https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository , efectivelly marking all older notifications as read
. What we could do is to use https://developer.github.com/v3/activity/notifications/#list-your-notifications to iterate notifications manually (ignoring notifications before the pipe creation) and then iterate them manually and mark it as read with https://developer.github.com/v3/activity/notifications/#mark-as-read endpoint .
This solves the problem, I think.
@carlosmiranda and @paulodamaso, up to you to discuss/choose whether to have the change (how big could it be?), or to document the current behavior.
@paulodamaso sounds like a viable way to fix it, lets do it.
@carlosmiranda I misunderstood the docs. We can't set notifications read one by one using the API, so I'm afraid that's impossible to do what @peter-kehl wants. I've added a line explaining this.
@peter-kehl Merged, please close.
@0crat status
@0crat status (here)
@paulodamaso This is what I know about this job in C7FCB1EQN, as in §32:
DEV
@0crat out
@0crat out (here)
@paulodamaso Job gh:yegor256/wring#65
is not assigned, can't get performer
@0crat out (here)
@paulodamaso The job is not in WBS, won't close the order
@0crat quality good
After adding a new pipe at www.wring.io, it seems to clear all pending notifications. That is not mentioned at https://www.wring.io/pipes nor at http://www.yegor256.com/2016/03/15/wring-dispatcher-github-notifications.html. Very user unfriendly.
I set up a pipe that I expected only to remove notifications matching
ignore
value. But all notifications disappeared.Either document it, or better: make it not remove any pending notifications (meaning: Only apply the pipe to any new notifications since the pipeline creation).