Skip to content

Commit

Permalink
Work around an issue with Girder's settings' cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Feb 12, 2020
1 parent c988020 commit eaf6b4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
## Unreleased

### Features
- Added a GET large_image/sources endpoint to list versions of all installed sources
- Added a GET large_image/sources endpoint to list versions of all installed sources (#421)

### Bug Fixes
- Fixed an issue where changing the annotation history setting when Girder's settings' cache was enable wouldn't take effect until after a restart (#422)

## Version 1.0.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,8 @@ def _copyAnnotationsFromOtherItem(self, srcItemId, destItem):

def _onSettingChange(self, event):
settingDoc = event.info
if settingDoc['key'] in (
constants.PluginSettings.LARGE_IMAGE_ANNOTATION_HISTORY, ):
self._historyEnabled = Setting().get(
constants.PluginSettings.LARGE_IMAGE_ANNOTATION_HISTORY)
if settingDoc['key'] == constants.PluginSettings.LARGE_IMAGE_ANNOTATION_HISTORY:
self._historyEnabled = settingDoc['value']

def _loadAndMigrateAnnotation(self, id, *args, **kwargs):
"""
Expand Down

0 comments on commit eaf6b4d

Please sign in to comment.