Module: PrependedLinkedData::FindTerm
- Defined in:
- app/prepends/prepended_linked_data/find_term.rb
Instance Method Summary collapse
-
#find(id, request_header: {}, language: nil, replacements: {}, subauth: nil, format: nil, performance_data: false) ⇒ Hash
Override Qa::Authorities::LinkedData::FindTerm#find method.
Instance Method Details
#find(id, request_header: {}, language: nil, replacements: {}, subauth: nil, format: nil, performance_data: false) ⇒ Hash
Override Qa::Authorities::LinkedData::FindTerm#find method
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/prepends/prepended_linked_data/find_term.rb', line 5 def find(id, request_header: {}, language: nil, replacements: {}, subauth: nil, format: nil, performance_data: false) # rubocop:disable Metrics/ParameterLists return super if QaServer.config.suppress_performance_gathering? request_header = setup_find(request_header: request_header, language: language, replacements: replacements, subauth: subauth, format: format, performance_data: performance_data) @phid = QaServer.config.performance_cache.new_entry(authority: , action: 'fetch') begin full_results = super update_performance_history_record(full_results) rescue Exception => e # rubocop:disable Lint/RescueException QaServer.config.performance_cache.destroy(@phid) raise e end requested_results(full_results) end |