-
Notifications
You must be signed in to change notification settings - Fork 19
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
Remove unnecessary check before sending webhook #106
base: main
Are you sure you want to change the base?
Conversation
What is the motivation for this? If I recall the original check was put in to stop spamming webhook receivers with non impactful changes (although of course, it could be argued that if we are writing a change to disk perhaps we should be telling receivers) |
Exactly. By the time we hit here, we have already passed the check of |
@Fabio1988 has been investigating excessive webhook update issues, so will leave this for him |
I agree on that, at this point we already write changes to disk / cache. so let the receiver know, we don't need a check here :) Yeah I saw problems with hundos on map, but not reported to end user. It's quite difficult to monitor that issue... I will let you guys know if I find another one :) |
Only issue is that pvp data is not held in memory, so any subsequent webhooks after the one that first calculates pvp will have the pvp field null. This would require recalculation to complete the field. |
@Mygod so far this change is good, except that we send webhooks with |
This is caused by the fact that the pvp json is not stored in the in-memory cache. It's usually the last webhook sent (as it is full encounter data and a change that triggers the recalculation). |
e.g. we encountered the mon and stored pvp in db.. after weather boost change we preserved iv because still same boost. So weather changed from X to Y.. therefore we don't have any pvp value in cache and would send |
rebased on latest. I think this should be merged. additionally we should find a way how to send pvp value when weather changes and boost is kept. lgtm |
this was resolved already :) |
e2fb68a
to
002bc15
Compare
Any thoughts?