kworkflow / kworkflow/patch-hub

Streamline `message_id` and `in_reply_to` fields of `Patch` struct

Open
#5 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

code-improv refactoring
Dominant language
Rust
Stars
36
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Context:

The message_id and in_reply_to fields of Patch are of type MessageID and Option<MessageID>, respectively.

Proposal:

Maybe we can streamline the implementation by flatting these fields as String and Option<String>. We need to consider if there will be scenarios in which having a dedicated type for MessageID will be necessary.

Setup:
  • Project branch: unstable
  • Project commit hash: 0fb93dbb5bc204cfe5342aca0d87e6bc679fca2f
  • rustc version: 1.79.0
  • cargo version: 1.79.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the Patch struct and the MessageID type, then trace usages of message_id and in_reply_to across the project. Determine whether MessageID provides behavior that String cannot replace, and document or implement the chosen field types while keeping all affected uses consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.