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_first_request deprecation #161

Merged
merged 10 commits into from
Mar 22, 2024

Conversation

utnapischtim
Copy link
Contributor

@utnapischtim utnapischtim commented May 13, 2023

dependent on invenio-accounts

@utnapischtim utnapischtim marked this pull request as draft May 13, 2023 22:43
@utnapischtim utnapischtim force-pushed the add-init-function branch 2 times, most recently from 5f01692 to 1b7cd2e Compare May 13, 2023 23:15
@utnapischtim utnapischtim force-pushed the add-init-function branch 2 times, most recently from ed0d41c to d00c7d9 Compare May 25, 2023 06:54
* record_once is not deprecated but since the before_(app)_first_request
  decorators are deprecated this has been moved also to the new
  invenio-base entrypoints

* the blueprint_ui_init and blueprint_api_init have been removed,
  because they are only used as the blueprints to run record_once
* breadcrumbs has been removed since longer in invenio. now they are
  also removed from this package
* this refactoring uses the newly introduced global menu from
  invenio-theme.

* this change is the implementation of the before_(app_)first_request
  deprecation fix.
* pytest-black seems out of support. the last commit was from
  2020-10-05. Further pytest-black uses a out of date method which
  mentions pytest>=7.0 with a DeprecationWarning. The simplest solution
  is to use pytest-black-ng which fixes this situation.
@utnapischtim utnapischtim marked this pull request as ready for review March 20, 2024 21:22
* the problem is that the normal app creation process is not used. this custom
  app creation process needs a little bit love to work with the changes.

* since the menu is created in Menu InvenioTheme is not necessary anymore.

* the finalize_app call needs the app_context

* NOTE: this has to be refactored!!
@kpsherva kpsherva merged commit 64d0ade into inveniosoftware:master Mar 22, 2024
8 checks passed
@utnapischtim utnapischtim deleted the add-init-function branch March 22, 2024 16:48
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.

2 participants