Skip to content

Commit

Permalink
Remove legacy helper to adjust hidden/unhidden datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Feb 20, 2024
1 parent 90adbc2 commit a1db638
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/galaxy/webapps/galaxy/controllers/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,21 +204,6 @@ def make_private(self, trans, history_id=None, all_histories=False, **kwd):
"message": f"Success, requested permissions have been changed in {'all histories' if all_histories else history.name}."
}

@web.expose
def adjust_hidden(self, trans, id=None, **kwd):
"""THIS METHOD IS A TEMPORARY ADDITION. It'll allow us to fix the
regression in history-wide actions, and will be removed in the first
release after 17.01"""
action = kwd.get("user_action", None)
if action == "delete":
for hda in trans.history.datasets:
if not hda.visible:
hda.mark_deleted()
elif action == "unhide":
trans.history.unhide_datasets()
with transaction(trans.sa_session):
trans.sa_session.commit()

# ......................................................................... actions/orig. async

@web.expose
Expand Down

0 comments on commit a1db638

Please sign in to comment.