p2panda / aquadoggo

Node for the p2panda network handling validation, storage, aggregation and replication
GNU Affero General Public License v3.0
69 stars 5 forks source link

"prune" materializer task #496

Closed sandreae closed 1 year ago

sandreae commented 1 year ago

Introduces a "prune" materialization task which:

I also had to make some changes to prune_document_views method which was introduced onto the store in a previous PR cos it was not doing what it's supposed to....

πŸ“‹ Checklist

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 97.55% and project coverage change: +0.99% :tada:

Comparison is base (81cae95) 91.20% compared to head (0a93f68) 92.20%.

:exclamation: Current head 0a93f68 differs from pull request most recent head 8c7938f. Consider uploading reports for the commit 8c7938f to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #496 +/- ## =============================================== + Coverage 91.20% 92.20% +0.99% =============================================== Files 101 102 +1 Lines 16393 16644 +251 =============================================== + Hits 14952 15347 +395 + Misses 1441 1297 -144 ``` | [Files Changed](https://app.codecov.io/gh/p2panda/aquadoggo/pull/496?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=p2panda) | Coverage Ξ” | | |---|---|---| | [aquadoggo/src/materializer/tasks/reduce.rs](https://app.codecov.io/gh/p2panda/aquadoggo/pull/496?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=p2panda#diff-YXF1YWRvZ2dvL3NyYy9tYXRlcmlhbGl6ZXIvdGFza3MvcmVkdWNlLnJz) | `95.04% <86.20%> (-0.24%)` | :arrow_down: | | [aquadoggo/src/test\_utils/node.rs](https://app.codecov.io/gh/p2panda/aquadoggo/pull/496?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=p2panda#diff-YXF1YWRvZ2dvL3NyYy90ZXN0X3V0aWxzL25vZGUucnM=) | `92.51% <96.61%> (-2.32%)` | :arrow_down: | | [aquadoggo/src/materializer/tasks/prune.rs](https://app.codecov.io/gh/p2panda/aquadoggo/pull/496?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=p2panda#diff-YXF1YWRvZ2dvL3NyYy9tYXRlcmlhbGl6ZXIvdGFza3MvcHJ1bmUucnM=) | `98.07% <98.07%> (ΓΈ)` | | | [aquadoggo/src/db/stores/document.rs](https://app.codecov.io/gh/p2panda/aquadoggo/pull/496?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=p2panda#diff-YXF1YWRvZ2dvL3NyYy9kYi9zdG9yZXMvZG9jdW1lbnQucnM=) | `98.74% <99.00%> (+12.93%)` | :arrow_up: | | [aquadoggo/src/materializer/service.rs](https://app.codecov.io/gh/p2panda/aquadoggo/pull/496?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=p2panda#diff-YXF1YWRvZ2dvL3NyYy9tYXRlcmlhbGl6ZXIvc2VydmljZS5ycw==) | `94.76% <100.00%> (+0.01%)` | :arrow_up: | | [aquadoggo/src/materializer/tasks/dependency.rs](https://app.codecov.io/gh/p2panda/aquadoggo/pull/496?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=p2panda#diff-YXF1YWRvZ2dvL3NyYy9tYXRlcmlhbGl6ZXIvdGFza3MvZGVwZW5kZW5jeS5ycw==) | `97.54% <100.00%> (+<0.01%)` | :arrow_up: | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/p2panda/aquadoggo/pull/496/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=p2panda)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sandreae commented 1 year ago

This work is being continued in a new branch here: https://github.com/p2panda/aquadoggo/pull/500