Skip to content

Commit

Permalink
Merge pull request galaxyproject#17361 from mvdbeek/drop_unused_wildc…
Browse files Browse the repository at this point in the history
…ard_replacement

Remove unused statements in job search function
  • Loading branch information
jdavcs authored Jan 26, 2024
2 parents 66cd96c + a0f69c5 commit 6f7f8b0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/galaxy/managers/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ def replace_dataset_ids(path, key, value):
)

for k, v in wildcard_param_dump.items():
wildcard_value = None
if v == {"__class__": "RuntimeValue"}:
# TODO: verify this is always None. e.g. run with runtime input input
v = None
Expand All @@ -400,10 +399,8 @@ def replace_dataset_ids(path, key, value):
continue
elif k == "chromInfo" and "?.len" in v:
continue
wildcard_value = '"%?.len"'
if not wildcard_value:
value_dump = json.dumps(v, sort_keys=True)
wildcard_value = value_dump.replace('"id": "__id_wildcard__"', '"id": %')
value_dump = json.dumps(v, sort_keys=True)
wildcard_value = value_dump.replace('"id": "__id_wildcard__"', '"id": %')
a = aliased(JobParameter)
if value_dump == wildcard_value:
subq = subq.join(a).where(
Expand Down Expand Up @@ -601,9 +598,6 @@ def replace_dataset_ids(path, key, value):
continue
elif k == "chromInfo" and "?.len" in v:
continue
wildcard_value = '"%?.len"'
if not wildcard_value:
wildcard_value = json.dumps(v, sort_keys=True).replace('"id": "__id_wildcard__"', '"id": %')
a = aliased(model.JobParameter)
job_parameter_conditions.append(
and_(model.Job.id == a.job_id, a.name == k, a.value == json.dumps(v, sort_keys=True))
Expand Down

0 comments on commit 6f7f8b0

Please sign in to comment.