Skip to content

Commit

Permalink
WebUI: Fixing for Name parameter in Rule Page Fix rucio#2830
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvSondhi committed Mar 18, 2021
1 parent 69e4137 commit 799f160
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rucio/core/rule.py
Expand Up @@ -2252,7 +2252,7 @@ def examine_rule(rule_id, session=None):
available_replicas = session.query(models.RSEFileAssociation).filter_by(scope=lock.scope, name=lock.name, state=ReplicaState.AVAILABLE).all()

for replica in available_replicas:
sources.append((replica.rse_id,
sources.append((replica.name,
True if get_rse(rse_id=replica.rse_id, session=session).availability >= 4 else False))

result['transfers'].append({'scope': lock.scope,
Expand Down
2 changes: 1 addition & 1 deletion lib/rucio/web/ui/static/rule.js
Expand Up @@ -429,7 +429,7 @@ function load_examine() {
var dt = $('#dt_examine').DataTable( {
bAutoWidth: false,
fnDrawCallback:update_links,
columns: [{'data': 'name'},
columns: [{'data': 'name'.split(".")[0]},
{'data': 'rse'},
{'data': 'attempts'},
{'data': 'last_time'},
Expand Down

0 comments on commit 799f160

Please sign in to comment.