Skip to content

Change signature of devs's value #4030

Merged
mulkieran merged 2 commits into
stratis-storage:masterfrom
mulkieran:issue_stratisd_4027
May 26, 2026
Merged

Change signature of devs's value #4030
mulkieran merged 2 commits into
stratis-storage:masterfrom
mulkieran:issue_stratisd_4027

Conversation

@mulkieran

@mulkieran mulkieran commented May 19, 2026

Copy link
Copy Markdown
Member

Closes #4027

@mulkieran mulkieran self-assigned this May 19, 2026
@mulkieran

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented May 19, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented May 19, 2026

Copy link
Copy Markdown

Walkthrough

The PR refactors device serialization in DBus response builders from wrapped Value types to plain strings in HashMap<String, String>, then removes the now-unused DevUuid and FilesystemUuid type imports and their corresponding DBus conversion trait implementations.

Changes

DBus Device Serialization Cleanup

Layer / File(s) Summary
Device dictionary encoding refactor
src/dbus/types.rs
Per-device dictionaries in LockedPoolsInfo and stopped pools now insert devnode and uuid as plain String values into HashMap<String, String> instead of using Value::from(...) wrappers.
Import and trait implementation cleanup
src/dbus/types.rs
Removes DevUuid and FilesystemUuid from engine imports, and deletes their Basic, Type, and From<...> for Value trait implementations, which are no longer referenced.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

bug

Suggested reviewers

  • jbaublitz
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% 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
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 Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title "Change signature of devs's value" is directly related to the main change: modifying the D-Bus devs serialization signature from aa{sv} to aa{ss}, which aligns with the primary code modifications in the changeset.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@packit-as-a-service

Copy link
Copy Markdown

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo dnf install -y 'dnf*-command(copr)'
  • dnf copr enable packit/stratis-storage-stratisd-4030-copr_pull
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@mulkieran mulkieran moved this to In Review in 2026May May 21, 2026
mulkieran added 2 commits May 26, 2026 09:30
Change from aa{sv} to aa{ss}. This matches the signature from the previous
implementation of the dbus layer.

Signed-off-by: mulhern <amulhern@redhat.com>
The trait implementations for DevUuid and Filesystem Uuid were made
unnecessary by the previous commit.

Signed-off-by: mulhern <amulhern@redhat.com>
@mulkieran mulkieran force-pushed the issue_stratisd_4027 branch from 9a4efb5 to 5ee2c71 Compare May 26, 2026 13:30
@mulkieran mulkieran marked this pull request as ready for review May 26, 2026 13:31
@mulkieran mulkieran changed the title Issue stratisd 4027 Change signature of devs's value May 26, 2026
@mulkieran mulkieran merged commit 3f42254 into stratis-storage:master May 26, 2026
45 checks passed
@mulkieran mulkieran deleted the issue_stratisd_4027 branch May 26, 2026 18:08
@github-project-automation github-project-automation Bot moved this from In Review to Done in 2026May May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

D-Bus prop StoppedPools has changed signature for "devs" member from aa{ss} to aa{sv}

2 participants