ncbo / ontologies_api

Hypermedia API for NCBO's ontology-related projects
http://data.bioontology.org
Other
25 stars 10 forks source link

Add client-side caching for analytics endpoint #96

Closed alexskr closed 1 year ago

alexskr commented 2 years ago

This PR Addresses #95 by enabling client-side caching for analytics endpoints. Analytics is pulled once a week by default so 24 hours TTL should be safe.

codecov-commenter commented 2 years ago

Codecov Report

Merging #96 (2414aba) into develop (47e9804) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop      #96      +/-   ##
===========================================
+ Coverage    71.80%   71.82%   +0.01%     
===========================================
  Files           52       52              
  Lines         2841     2843       +2     
===========================================
+ Hits          2040     2042       +2     
  Misses         801      801              
Flag Coverage Δ
unittests 71.82% <100.00%> (+0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
controllers/ontology_analytics_controller.rb 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 47e9804...2414aba. Read the comment docs.