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

fix: before_app_first_request deprecation #82

Merged
merged 7 commits into from
Mar 21, 2024

Conversation

utnapischtim
Copy link
Contributor

No description provided.

@utnapischtim utnapischtim marked this pull request as ready for review March 21, 2024 13:50
utnapischtim and others added 4 commits March 21, 2024 15:39
* the problem is that without existing tables the register_pages will fail. it
  is a edge case only in the beginning.
* The previous design of the module had some major usability issues:
    * The assumption that we have views that are dynamically registered
      without the need to redeploy/reload the application for code
      changes is fundamentally flawed. In reality order for such views
      to be accessible/discoverable, one has to be able to reference
      them in Jinja templates, which in turn means one has to make code
      changes.
    * The way we were registering page views, required having a
      connection to an already initialized database. This imposes having
      to perform checks at application initialization that go against
      well-established principles of the Flask/Invenio app lifecycle.
@slint slint merged commit bad9e5e into inveniosoftware:master Mar 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants