feat(cpp): add stream, topic, and partition functions to high level client #4022
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 307 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.343
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4022"
general
weight: 0.35
amlel-el-mahrouss
Which issue does this PR address?
<!--
We generally require a GitHub issue for all bug fixes and enhancements. Link it with GitHub syntax, keep the line that applies and delete the other:
Closes #123auto-closes the issue when this PR merges (full fix).Relates to #123links without closing (partial or related work).-->
Closes #
Relates to #2100
Rationale
<!--
Why is this change needed? If the issue explains it well, a one-liner is fine.
-->
Adds function to the high level cpp client.
What changed?
Adds stream, topic, and partition management to the high-level C++ client
(
IggyBlockingClient):CreateStream/UpdateStream/GetStreams/GetStream/PurgeStream/DeleteStreamCreateTopic/UpdateTopic/GetTopics/GetTopic/PurgeTopic/DeleteTopicCreatePartitions/DeletePartitionsNew supporting types in
iggy.hpp:IggyException,LoginInfo,Identifier,HeaderKind/HeaderField/HeaderEntry,ResourceOptions, and theTopic/Partition/TopicDetails/StreamDetails/Streamentities;option builders
TopicCreateOptions,TopicUpdateOptions,StreamUpdateOptions.UpdateStreamnow takesStreamUpdateOptions;CreateTopic/UpdateTopicnow take option builders instead of string args.
PollingStrategyreturns astructured
Kind()/Value()object instead of two strings.Rust FFI (
lib.rs,client.rs,type_conversion.rs) gainsffi::TopicCreateOptions/ffi::TopicUpdateOptionsstructs (withhas_*flags), updates
create_topic/update_topic/update_streamsignatures,and adds
TryFromconversions. Newtype_conversions.cppaddsFromFfi/ToFfihelpers for the new types.Tests:
LowLevelE2E_Stream->E2E_Stream/LowLevelE2E_Topic->E2E_Topic/LowLevelE2E_Partition->E2E_Partitionsuites;client,consumer_group, andmessagesuites converted to the high-level client; newunit tests for the option builders; BDD messaging steps switched to
iggy::ffi::TopicCreateOptions;Local Execution
AI Usage
If AI tools were used, please answer:
1. Which tools? codex and muse spark 1.2
2. Scope of usage? code generation
3. How did you verify the generated code works correctly? read through it. tested it.
4. Can you explain every line of the code if asked? yes.