mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #16606 from mvdbeek/no_expunge_all
[23.1] Drop expunge_all() call in WebTransactionRequest
This commit is contained in:
@@ -159,17 +159,6 @@ class ProvidesAppContext:
|
||||
"""
|
||||
return self.app.model.session
|
||||
|
||||
def expunge_all(self):
|
||||
"""Expunge all the objects in Galaxy's SQLAlchemy sessions."""
|
||||
app = self.app
|
||||
context = app.model.context
|
||||
context.expunge_all()
|
||||
# This is a bit hacky, should refctor this. Maybe refactor to app -> expunge_all()
|
||||
if hasattr(app, "install_model"):
|
||||
install_model = app.install_model
|
||||
if install_model != app.model:
|
||||
install_model.context.expunge_all()
|
||||
|
||||
def get_toolbox(self):
|
||||
"""Returns the application toolbox.
|
||||
|
||||
|
||||
@@ -308,7 +308,6 @@ class GalaxyWebTransaction(base.DefaultWebTransaction, context.ProvidesHistoryCo
|
||||
self.user_manager = app[UserManager]
|
||||
self.session_manager = app[GalaxySessionManager]
|
||||
super().__init__(environ)
|
||||
self.expunge_all()
|
||||
config = self.app.config
|
||||
self.debug = asbool(config.get("debug", False))
|
||||
x_frame_options = getattr(config, "x_frame_options", None)
|
||||
|
||||
Reference in New Issue
Block a user