Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Store log entries #1245

Merged
merged 1 commit into from
Apr 20, 2022
Merged

feat: Store log entries #1245

merged 1 commit into from
Apr 20, 2022

Conversation

sandrask
Copy link
Contributor

Store log entries.

Closes #1240

Signed-off-by: Sandra Vrtikapa sandra.vrtikapa@securekey.com

@cla-bot cla-bot bot added the cla-signed label Apr 14, 2022
@sandrask sandrask changed the title feat: Store log entries wip: Store log entries Apr 14, 2022
@codecov
Copy link

codecov bot commented Apr 14, 2022

Codecov Report

Merging #1245 (b175913) into main (61890ac) will decrease coverage by 0.00%.
The diff coverage is 88.28%.

@@            Coverage Diff             @@
##             main    #1245      +/-   ##
==========================================
- Coverage   87.92%   87.92%   -0.01%     
==========================================
  Files         171      173       +2     
  Lines       17290    17364      +74     
==========================================
+ Hits        15203    15267      +64     
- Misses       1329     1337       +8     
- Partials      758      760       +2     
Impacted Files Coverage Δ
cmd/orb-server/startcmd/start.go 68.68% <40.00%> (-0.41%) ⬇️
cmd/orb-server/startcmd/params.go 81.91% <72.72%> (-0.13%) ⬇️
...pub/service/vct/logmonitoring/verifier/verifier.go 85.71% <85.71%> (ø)
pkg/store/logentry/store.go 94.87% <94.87%> (ø)
...g/activitypub/service/vct/logmonitoring/monitor.go 96.66% <100.00%> (+6.21%) ⬆️
...pub/service/inbox/httpsubscriber/httpsubscriber.go 88.88% <0.00%> (-8.89%) ⬇️

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 61890ac...b175913. Read the comment docs.

@sandrask sandrask force-pushed the issue-1240 branch 2 times, most recently from 2528c78 to 58308ae Compare April 20, 2022 16:20
@sandrask sandrask changed the title wip: Store log entries feat: Store log entries Apr 20, 2022
@sandrask sandrask force-pushed the issue-1240 branch 2 times, most recently from b6d4576 to 1b5263b Compare April 20, 2022 16:54
return nil, fmt.Errorf("failed to open log entry store: %w", err)
}

return &Store{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to configure the index tags?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do if I need to retrieve specific entry later (e.g. log 'A' + entry '1'). I am not 100% sure that I need this use case later on but it seems reasonable to be able to retrieve it. I can remove it later on if I don't need. I have to think about all the queries that we may need from log entries later on.

@sandrask sandrask changed the title feat: Store log entries wip: Store log entries Apr 20, 2022
@sandrask sandrask changed the title wip: Store log entries feat: Store log entries Apr 20, 2022
Store log entries.

Closes trustbloc#1240

Signed-off-by: Sandra Vrtikapa <sandra.vrtikapa@securekey.com>
@bstasyszyn bstasyszyn merged commit bcc42e4 into trustbloc:main Apr 20, 2022
@sandrask sandrask linked an issue May 4, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store log entries in orb VCT log monitoring options
3 participants