-
Notifications
You must be signed in to change notification settings - Fork 3
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
Exclude redundant notifications when inforg edits a search topic on the forum #13
Comments
@Mikkdrasil Please advise how can I identify which line with change_type==1 ('status_change') is corresponding to a line with change_type==2 ('title_change') currently been examined. |
@AKagitin i guess "which line" is a too broad meaning. Depends in which script / which PSQL table we're checking it. ..so all-in-all looks like a big change. |
|
remarks for myself:
|
sorry, my friend, seems i'm keeping missing the updates here (would need to think how to avoid it in the future..) not sure i understand what does "stop parsing" means. if i hear you correctly, you'd like not to skip parsing, but to skip recording some new changes to change_log table in DB? |
In SQL statement in compose_users_list_from_users we can detect a situation when new_record is redundant for a user because user is subscribed to inforg's comments and new_record.change_type=2(topic_title_change) because this change is always made only by inforg and causes also inforg's comments. Such users should be skipped for such new_record. So here is the modification: la_searcher_bot/src/compose_notifications/main.py Line 1011 in 1be15b1
Pull request: #422 |
We can reduce number of notification messages in this case and send 1 instead of 2.
If we register notification of "обновление заголовка поиска по" type then we could possibly discover that this change is equal to change of status of this search and so we could add "... - изменение статуса по" to this notification and exclude additional notification "изменение статуса по" relating to this change.
The text was updated successfully, but these errors were encountered: