Skip to content

feat: bundler service#90

Merged
St4NNi merged 32 commits intodevfrom
feat/bundler-service
Jul 3, 2023
Merged

feat: bundler service#90
St4NNi merged 32 commits intodevfrom
feat/bundler-service

Conversation

@St4NNi
Copy link
Copy Markdown
Member

@St4NNi St4NNi commented Jun 30, 2023

This PR integrates the backend functionality of a "bundler" service.

This service is used to bundle multiple objects into downloadable packages. This is done by xor'ing all relevant object_ulids and collection_ids and afterwards signing the request with a server known secret. This ensures that bundle IDs cannot be guessed, but makes it so bundles containing the same objects will always have the same bundle ID.

Currently only .tar.gz archives are supported.

Changes

  • Add bundles database table
  • Add Bundler service API implementation
  • Add functionality to create and sign new bundles
  • Update / Upgrade dependencies

Fixes: #35

St4NNi and others added 30 commits June 21, 2023 15:16
@St4NNi St4NNi requested a review from das-Abroxas June 30, 2023 07:56
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 30, 2023

Codecov Report

Patch coverage: 41.83% and project coverage change: +12.55 🎉

Comparison is base (7eb1251) 41.64% compared to head (dd56ae6) 54.19%.

Additional details and impacted files
@@             Coverage Diff             @@
##              dev      #90       +/-   ##
===========================================
+ Coverage   41.64%   54.19%   +12.55%     
===========================================
  Files          25       48       +23     
  Lines        3607    10566     +6959     
===========================================
+ Hits         1502     5726     +4224     
- Misses       2105     4840     +2735     
Impacted Files Coverage Δ
src/database/connection.rs 100.00% <ø> (ø)
src/database/crud/bundle.rs 0.00% <0.00%> (ø)
src/database/crud/info.rs 0.00% <0.00%> (ø)
src/database/crud/notifications.rs 0.00% <0.00%> (ø)
src/database/crud/object.rs 55.74% <ø> (+26.76%) ⬆️
src/database/models/bundle.rs 0.00% <0.00%> (ø)
src/database/models/notifications.rs 0.00% <0.00%> (ø)
src/database/models/views.rs 9.09% <0.00%> (ø)
src/lib.rs 44.71% <ø> (ø)
src/server/clients/event_emit_client.rs 0.00% <0.00%> (ø)
... and 37 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@St4NNi St4NNi requested a review from lfbrehm June 30, 2023 09:02
Copy link
Copy Markdown
Contributor

@das-Abroxas das-Abroxas left a comment

Choose a reason for hiding this comment

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

Again, too many changes for a meaningful review. We have to work on that.

But I tried my best and didn't see anything conspicious. LGTM.

Comment thread .codecov.yml
- "tests" # we also don't care about coverage of test code
- "benches" # or coverage of benchmarks
- "protos" # coverage for protos are not necessary either
- "migrations" # exclude database stuffnecessary either
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- "migrations" # exclude database stuffnecessary either

I don't think we need a duplicate exclusion?

Comment thread src/database/schema.rs
@St4NNi St4NNi merged commit 851ef6b into dev Jul 3, 2023
@St4NNi St4NNi deleted the feat/bundler-service branch July 3, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants