*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects

Move configuration magic from `finalize_app` to the start of extension loading

Merged Moser, Maximilian requested to merge mm/config-updates into master
  1. Feb 11, 2025
    • Moser, Maximilian's avatar
      Bump version to v2025.1.6 · 80cb9f69
      Moser, Maximilian authored
      80cb9f69
    • Moser, Maximilian's avatar
      Remove assertion about having the SECRET_KEY set · ba9102a7
      Moser, Maximilian authored
      * Invenio-Config already takes care of checking the value in real
        Invenio applications and issues a warning if it's unset
      ba9102a7
    • Moser, Maximilian's avatar
      Update the name and comment for the config module entrypoint · 8bb8c1b6
      Moser, Maximilian authored
      * `tuw_config` is a bit nicer than `zzz_invenio_config_tuw`, and should
        still be the last entry in the list considering the usual naming
        scheme
      8bb8c1b6
    • Moser, Maximilian's avatar
      Perform config magic before extension loading · 798907f1
      Moser, Maximilian authored
      * previously, our configuration magic was performed as part of the
        `finalize_app` entrypoint
      * while this worked well enough for most use cases, some extensions
        would break this model by caching values during their initialization
      * especially caching-related extensions like to take eagerly create
        clients with the current configuration items, which are hard to fix
        afterwards
      * keeping track of all the instantiated clients just to change their
        connection details when we perform our magic really didn't seem like
        a good approach
      * so instead, we now made sure that our extension is loaded first and
        can thus perform its configuration magic before any other extension
        has a chance of caching values
      * also, extension loading happens after the configuration loading is
        done (especially the handling of environment variables)
      798907f1
    • Moser, Maximilian's avatar
      Remove experimental MXID value from user notification preferences · 6de35f74
      Moser, Maximilian authored
      * since we're not quite ready for matrix notifications yet, this wasn't
        supposed to be added to the code
      6de35f74
Loading