Skip to content

Commit

Permalink
Update old data menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Dec 26, 2024
1 parent 70d4058 commit 5e4b424
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2089,6 +2089,10 @@ def _rename_subset(self, old_label, new_label, subset_group=None, check_valid=Tr
results_dict['add_results']['label'] = new_data_label
d.meta['_update_live_plugin_results'] = results_dict

Check warning on line 2090 in jdaviz/app.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/app.py#L2079-L2090

Added lines #L2079 - L2090 were not covered by tests

for data_item in self.state.data_items:
if data_item['name'] == old_data_label:
data_item['name'] = new_data_label

Check warning on line 2094 in jdaviz/app.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/app.py#L2092-L2094

Added lines #L2092 - L2094 were not covered by tests

self.hub.broadcast(SubsetRenameMessage(subset_group, old_label, new_label, sender=self))

Check warning on line 2096 in jdaviz/app.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/app.py#L2096

Added line #L2096 was not covered by tests

def _reparent_subsets(self, old_parent, new_parent=None):
Expand Down

0 comments on commit 5e4b424

Please sign in to comment.