app/models/benchmark_analysis.rb
# redact all versions of this analysis from the methods repo
redact all versions of this analysis from the methods repo
redact all versions of this analysis from the methods repo
def remove_method_from_repository
    begin
      user_client = FireCloudClient.new(self.user)
      max_snapshot = self.snapshot
      max_snapshot.downto(1) do |version|
        Rails.logger.info "Redacting #{self.namespace}/#{self.name}/#{version} from methods repo"
        user_client.delete_method(self.namespace, self.name, version)
        Rails.logger.info "#{self.namespace}/#{self.name}/#{version} successfully redacted from methods repo"
      end
    rescue => e
      Rails.logger.error "Unable to redact #{self.namespace}/#{self.name} to methods repo: #{e.message}"
    end
  end
def remove_method_from_repository begin user_client = FireCloudClient . new ( self . user ) max_snapshot = self . snapshot max_snapshot . downto ( 1 ) do | version | Rails . logger . info "Redacting #{self.namespace}/#{self.name}/#{version} from methods repo" user_client . delete_method ( self . namespace , self . name , version ) Rails . logger . info "#{self.namespace}/#{self.name}/#{version} successfully redacted from methods repo" end rescue => e Rails . logger . error "Unable to redact #{self.namespace}/#{self.name} to methods repo: #{e.message}" end end
redact all versions of this analysis from the methods repo
redact all versions of this analysis from the methods repo