Skip to content

feat: split read only payload storage - #8857

Merged
generall merged 1 commit into
devfrom
feat/split-read-only-payload-storage
Apr 30, 2026
Merged

generall merged 1 commit into
devfrom
feat/split-read-only-payload-storage

Conversation

@dancixx

@dancixx dancixx commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --workspace --all-features command?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@dancixx
dancixx marked this pull request as ready for review April 30, 2026 16:04
@dancixx
dancixx requested a review from generall April 30, 2026 16:04
@coderabbitai

coderabbitai Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This PR refactors the payload storage trait hierarchy by introducing a new PayloadStorageRead trait that consolidates all read-related operations (get, get_sequential, iter, get_storage_size_bytes, is_on_disk). The PayloadStorage trait now extends PayloadStorageRead and retains only mutating operations. All concrete implementations (InMemoryPayloadStorage, MmapPayloadStorage, PayloadStorageEnum) are updated with separate implementations for both traits, and import statements across the codebase are adjusted to use the appropriate trait based on usage patterns.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested labels

release:1.18.0

Suggested reviewers

  • generall
  • ffuugoo
  • coszio
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 5.71% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: split read only payload storage' clearly and concisely summarizes the main refactoring change: splitting payload storage into read and write traits.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The pull request description is a standard contribution template without specific change details, but the PR title and objectives clearly indicate the purpose: splitting read-only payload storage into a separate trait.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/split-read-only-payload-storage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@generall
generall merged commit edf45ea into dev Apr 30, 2026
15 checks passed
@generall
generall deleted the feat/split-read-only-payload-storage branch April 30, 2026 17:41
timvisee pushed a commit that referenced this pull request May 8, 2026
@generall generall added this to the Live-reload milestone May 30, 2026
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