application-research / autoretrieve

A server to make GraphSync data accessible on IPFS
22 stars 7 forks source link

Publish to array endpoint #118

Closed hannahhoward closed 2 years ago

hannahhoward commented 2 years ago

Goals

This moves the events api publishing from publishing one event at a time to publishing to an endpoint that accepts and array of events, with a json body of the form:

{
  "events": [
    { ~event~ },
     ...
  ]
}

Implementation

codecov-commenter commented 2 years ago

Codecov Report

Merging #118 (6a312a1) into master (9fdfe88) will increase coverage by 0.01%. The diff coverage is 81.81%.

@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
+ Coverage   14.03%   14.04%   +0.01%     
==========================================
  Files          16       16              
  Lines        2209     2207       -2     
==========================================
  Hits          310      310              
+ Misses       1884     1882       -2     
  Partials       15       15              
Impacted Files Coverage Δ
filecoin/eventrecorder/eventrecorder.go 84.00% <81.81%> (-3.26%) :arrow_down:
blocks/manager.go 85.00% <0.00%> (+5.00%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.