Skip to content

Commit d9c125d

Browse files
Drop auto-refresh support for descriptors with manually specified Boutiques paths, due to slated deprecation of paths field. #1174
1 parent 251d3c0 commit d9c125d

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

BrainPortal/app/models/tool_config.rb

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -629,20 +629,15 @@ def self.registered_boutiques_descriptor(tool_name, tool_version) #:nodoc:
629629
@_descriptors_[key]
630630
end
631631

632+
# This method returns a +BoutiquesDescriptor+ object associated with the
633+
# with tool config either from cache, or if a specific path given from the corresponding file
634+
# is specified from that file
632635
def boutiques_descriptor
633636
path = boutiques_descriptor_path.presence
634637
if ! path
635638
return self.class.registered_boutiques_descriptor(self.tool.name, self.version_name)
636639
end
637-
638-
if @_descriptor_
639-
@_descriptor_ = @_descriptor_.reload_if_file_timestamp_changed
640-
key = [ self.tool.name, self.version_name ] # two strings
641-
@_descriptors_ ||= {}
642-
@_descriptors_[key] = @_descriptor_
643-
return @_descriptor_
644-
end
645-
640+
return @_descriptor_ if @_descriptor_
646641
path = Pathname.new(path)
647642
path = Pathname.new(CBRAIN::BoutiquesDescriptorsPlugins_Dir) + path if path.relative?
648643
@_descriptor_ = BoutiquesSupport::BoutiquesDescriptor.new_from_file(path)

0 commit comments

Comments
 (0)