justinmclean opened a new issue, #4328:
URL: https://github.com/apache/iggy/issues/4328

   The Rust client has `SegmentClient::delete_segments` 
(`core/common/src/traits/segment_client.rs`), but the Python SDK has no binding 
for it. It is listed as Easy in the Python API alignment tracking issue, #3893.
   
   ## What to do
   
   - Add `delete_segments(stream_id, topic_id, partition_id, segments_count)` 
to `foreign/python/src/client.rs`. `delete_partitions` in the same file is the 
model to copy: it takes the same stream, topic and partition arguments, and 
this adds one `u32` count.
   - Regenerate `foreign/python/apache_iggy.pyi` by running `cargo run --bin 
stub_gen` from `foreign/python`, and commit the result. CI fails if the stub is 
out of date.
   - Add `foreign/python/tests/test_segment.py`, following the setup and 
teardown in `test_partition.py`.
   
   ## Done when
   
   `await client.delete_segments(stream_id, topic_id, partition_id, 
segments_count)` returns `None` against a running server, and the new test 
passes.
   
   Part of #3893.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to