Skip to content
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

Start filtering events before unmarshalling #636

Commits on Oct 26, 2021

  1. Switch to iterating over mro during listener/waiter registration

    (rather than during event dispatch)
    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    dc57b2b View commit details
    Browse the repository at this point in the history
  2. Add in a system to avoid unmarshalling data for events which aren't b…

    …eing used
    
    * Add settings property to cache interface to allow for introspection
    * Also add "ME" resource to cache config
    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    f392b93 View commit details
    Browse the repository at this point in the history
  3. Specialise guild create and update handlers to avoid unmarshalling da…

    …ta which isn't being cached when no listeners are registered for the event
    
    * For this to work gateway guild definition handling had to be refactored to switch to explicitly specifying which mappings it should include when calling it
    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    9ea7979 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    824db06 View commit details
    Browse the repository at this point in the history
  5. Register listeners by subclasses not parents (mro)

    (For this the subclasses need to be cached on the Event classes)
    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    313de27 View commit details
    Browse the repository at this point in the history
  6. Add voodoo on new event cls callback to Event class

    * This is meant to be a mock way to handle the edge case of new subclassing Event types being added after the event manage has been initialised which might be unorthodox but probably has some wack use case
    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    1c92ba4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    04f2bd5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    84356ef View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    886f5cd View commit details
    Browse the repository at this point in the history
  10. Slight logic cleanup

    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    d0e3c54 View commit details
    Browse the repository at this point in the history
  11. Prefer internal granularity on guild create and update methods

    * rename event_manager_base.as_listener to "filtered" and remove from on_guild_create and update
    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    74b8cbc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d1bfec8 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    44b625c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    dbe37bb View commit details
    Browse the repository at this point in the history
  15. Internal refactors and naming scheme changes

    * Plus fix CacheImpl.update_me not copying the stored member entry before returning it
    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    582e427 View commit details
    Browse the repository at this point in the history
  16. Add internal _FilteredMethod proto to event manager base

    * Move filtering to _handle_dispatch
    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    9f9ed5b View commit details
    Browse the repository at this point in the history
  17. Add internal _FilteredMethod proto to event manager base

    * Move filtering to _handle_dispatch
    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    f6110cc View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    bc711ec View commit details
    Browse the repository at this point in the history
  19. Small logic fix + add code/logic comments and docs

    * As an artifact of this addition, on_guild_integrations_update acn raise NotImplementedError now since it should always be skipped
    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    35d6841 View commit details
    Browse the repository at this point in the history
  20. Some test fixes

    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    9746db8 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    29a9d6d View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    62722de View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    369bb49 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    923acee View commit details
    Browse the repository at this point in the history
  25. bug fixes + tests

    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    9e0784e View commit details
    Browse the repository at this point in the history
  26. Post-rebase fixes

    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    be8faf9 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    4f8f47b View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    fc509fa View commit details
    Browse the repository at this point in the history
  29. Post-rebase fix

    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    bb28a55 View commit details
    Browse the repository at this point in the history
  30. post-rebase fixes

    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    6740d0c View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    07f0ab3 View commit details
    Browse the repository at this point in the history
  32. formatting fixes

    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    6f99d62 View commit details
    Browse the repository at this point in the history
  33. Mypy and flake8 fixes

    FasterSpeeding committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    09f0c81 View commit details
    Browse the repository at this point in the history