-
Notifications
You must be signed in to change notification settings - Fork 428
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
Event pusher opts in a map #3603
Commits on Mar 24, 2022
-
Update mod_event_pusher_hook_translator
- Use host types - It is best to register hooks last, so it is better not to have a dependency, which is started first
Configuration menu - View commit details
-
Copy full SHA for 5dfa380 - Browse repository at this point
Copy the full SHA 5dfa380View commit details
Commits on Mar 25, 2022
-
Change the order of handlers for filter_local_packet
The event_pusher one has to run before the inbox one to ensure that unread_count has not been yet updated by mod_inbox. mod_inbox_rdbms:get_inbox_unread/4 function always adds 1 to the result The order can't be easily swapped because of the possibility of having asynchronous workers for inbox.
Configuration menu - View commit details
-
Copy full SHA for 98bd032 - Browse repository at this point
Copy the full SHA 98bd032View commit details -
Use host types in push-notification hooks
- 'push_notifications' still needs the HostType separately because the Acc can be just 'ok'
Configuration menu - View commit details
-
Copy full SHA for abc607d - Browse repository at this point
Copy the full SHA abc607dView commit details -
Update hook calls in ejabberd_c2s
Drop the host type where it can be obtained from the acc
Configuration menu - View commit details
-
Copy full SHA for 8688506 - Browse repository at this point
Copy the full SHA 8688506View commit details -
Update event_pusher hook handlers - drop the server
Host type is now obtained from the acc. Also: don't use the config of the sender's domain (which can be hosted by a different server) to figure out if the recipient's message triggers a push notification
Configuration menu - View commit details
-
Copy full SHA for a3265fe - Browse repository at this point
Copy the full SHA a3265feView commit details -
Use host types and maps for opts in mod_event_pusher
- Drop the 'backend' subsection, which provided no extra value - Do not store backends in ets, the config is enough - Order backends alphabetically - Simplify config_metrics logic
Configuration menu - View commit details
-
Copy full SHA for 731c945 - Browse repository at this point
Copy the full SHA 731c945View commit details -
Fix and update mod_event_pusher_http
- Use maps for opts - Add a new option with a list of handlers - previously it was impossible to set up multiple handlers, which was against the docs. - Process the path prefix on parsing (only once) - Use host types
Configuration menu - View commit details
-
Copy full SHA for da150de - Browse repository at this point
Copy the full SHA da150deView commit details -
- Use maps for opts - Use host types - Use the wpool defaults from mongoose_config_spec
Configuration menu - View commit details
-
Copy full SHA for 528dca3 - Browse repository at this point
Copy the full SHA 528dca3View commit details -
Update mod_event_pusher_push backends
Use host types, update specs for module opts
Configuration menu - View commit details
-
Copy full SHA for 337bea6 - Browse repository at this point
Copy the full SHA 337bea6View commit details -
Update mod_event_pusher_push plugin
- Use host types and module opts in a map
Configuration menu - View commit details
-
Copy full SHA for f8ea083 - Browse repository at this point
Copy the full SHA f8ea083View commit details -
Update mod_event_pusher_rabbit
- Use maps for opts - Add a type for exchange opts - Make the code more straightforward
Configuration menu - View commit details
-
Copy full SHA for 078b6be - Browse repository at this point
Copy the full SHA 078b6beView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff44479 - Browse repository at this point
Copy the full SHA ff44479View commit details -
Update config parser tests for event_pusher
- Use maps and defaults - Use a separate helper for the HTTP handlers, because it is an item in a list, and thus it doesn't have a path - Test wpool in a generic way, in the future we can rework other wpool tests to do the same - Check multiple handlers for HTTP
Configuration menu - View commit details
-
Copy full SHA for eebd847 - Browse repository at this point
Copy the full SHA eebd847View commit details -
Update event_pusher_sns tests to use maps for opts
- Do not test changing config on the fly, this is not supported - Start the full module - Host type is the same as domain, but in the future we can change this
Configuration menu - View commit details
-
Copy full SHA for 1bbc2c1 - Browse repository at this point
Copy the full SHA 1bbc2c1View commit details -
Update mod_event_pusher_http_SUITE
- Configure event_pusher with maps - Path should be binary without the leading '/' - Remove obsolete options that had no effect
Configuration menu - View commit details
-
Copy full SHA for f2632ed - Browse repository at this point
Copy the full SHA f2632edView commit details -
Update mod_event_pusher_rabbit_SUITE
- Use opts in maps - Start module always in init_per_testcase
Configuration menu - View commit details
-
Copy full SHA for 9a3fc88 - Browse repository at this point
Copy the full SHA 9a3fc88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82b08f3 - Browse repository at this point
Copy the full SHA 82b08f3View commit details -
- Set opts in maps - Return the correct Acc in process_packet to avoid errors in logs
Configuration menu - View commit details
-
Copy full SHA for 44e7b80 - Browse repository at this point
Copy the full SHA 44e7b80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b5f83c - Browse repository at this point
Copy the full SHA 5b5f83cView commit details -
- Set opts in maps - Refactor code in a functional way
Configuration menu - View commit details
-
Copy full SHA for b40f3ca - Browse repository at this point
Copy the full SHA b40f3caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cab387 - Browse repository at this point
Copy the full SHA 0cab387View commit details -
Fix and polish config metrics reported from mod_event_pusher
The backend can be reported from mod_event_pusher_push, it looks cleaner this way.
Configuration menu - View commit details
-
Copy full SHA for 04cf562 - Browse repository at this point
Copy the full SHA 04cf562View commit details