Merge pull request #16606 from mvdbeek/no_expunge_all

[23.1] Drop expunge_all() call in WebTransactionRequest
This commit is contained in:
John Davis
2023-08-28 10:31:31 -04:00
committed by GitHub
2 changed files with 0 additions and 12 deletions
-11
View File
@@ -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.
-1
View File
@@ -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)