Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Cleanups and additions to the module API #6688

Merged
merged 4 commits into from
Jan 15, 2020
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 12, 2020

Add some useful things, such as error types and logcontext handling, to the API.

Make hs a private member to dissuade people from using it (hopefully they aren't already).

Add a couple of new methods (record_user_external_id and generate_short_term_login_token).

Make config optional in the configuration file when loading a module.

Add some useful things, such as error types and logcontext handling, to the
API.

Make `hs` a private member to dissuade people from using it (hopefully
they aren't already).

Add a couple of new methods (`record_user_external_id` and
`generate_short_term_login_token`).
Some modules don't need any config, so having to define a `config` property
just to keep the loader happy is a bit annoying.
@richvdh
Copy link
Member Author

richvdh commented Jan 12, 2020

(RedirectException is in #6687)

@richvdh richvdh requested a review from a team January 12, 2020 22:02
@richvdh richvdh merged commit 608bf7d into develop Jan 15, 2020
@richvdh richvdh deleted the rav/module_api_extensions branch January 15, 2020 16:43
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '608bf7d74':
  changelog
  Handle `config` not being set for synapse plugin modules
  Cleanups and additions to the module API
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants