rode / grafeas-elasticsearch

An implementation of the Grafeas storage backend based on Elasticsearch
Apache License 2.0
12 stars 5 forks source link

refactor creation methods #15

Closed mrparkers closed 3 years ago

mrparkers commented 3 years ago

added a generic helper method for creating documents in ES. updated CreateOccurrence, CreateNote, and CreateProject to use it.

codecov[bot] commented 3 years ago

Codecov Report

Merging #15 (c0c05ed) into main (6441226) will increase coverage by 1.48%. The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   78.55%   80.03%   +1.48%     
==========================================
  Files           2        2              
  Lines         541      511      -30     
==========================================
- Hits          425      409      -16     
+ Misses         86       79       -7     
+ Partials       30       23       -7     
Impacted Files Coverage Δ
go/v1beta1/storage/elasticsearch.go 76.30% <80.00%> (+1.52%) :arrow_up:

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 6441226...c0c05ed. Read the comment docs.