Repository navigation
Conversation
bburda
force-pushed
the
feat/rosbag-retention-7
branch
from
December 1, 2026 15:43
67b4a3d to
1bb8737
Compare
bburda
force-pushed
the
feat/rosbag-retention-7
branch
from
December 2, 2026 12:15
1bb8737 to
5f4526a
Compare
* feat: delete one rosbag recording through the bulk-data API * fix: exact delete status rule, 409 without locking, protected-recording docs * docs: recording-not-found code on unavailable storage, deletable field * test: protected-recording delete 404 carries x-medkit-recording-not-found
bburda
force-pushed
the
feat/rosbag-retention-7
branch
from
December 2, 2026 18:24
5f4526a to
32c25b4
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Summary
Today
DELETE .../bulk-data/rosbags/{id}answers 400: recordings are managed only by the fault manager. A client that downloads its copies through the Bulk Data API then has no way to free the robot's disk once it has them. This PR lets it delete a recording whose faults are no longer active.This PR is on top of thirteen PRs in the stack. Please review those first. The diff of this PR is against the branch of the PR directly below it.
What it adds:
DELETE /api/v1/{apps|components}/{id}/bulk-data/rosbags/{recording_id}:parameters.fault_codes, and nothing is deleted.GET .../bulk-data/rosbagsaddsx-medkit.deletable, true when every linked fault is CLEARED or HEALED.rosbag_deletedevent per linked fault, in one transaction, also when only confirmations are logged. Withaudit_log.fail_closed: true, a failed append stops the delete.~/delete_rosbagservice (ros2_medkit_msgs/srv/DeleteRosbag.srv);deletableonListRosbags.srv;(DELETE)removal log line.docs/api/rest.rst,docs/requirements/specs/bulkdata.rst,docs/config/fault-manager.rst, the gateway and fault manager READMEs and design docs.What changes for users
FaultServiceTransportkeeps building: the newdelete_rosbaghas a default that answers unavailable (503).Issue
Type
Testing
colcon build --packages-up-to ros2_medkit_fault_manager ros2_medkit_gateway ros2_medkit_integration_tests --cmake-args -DPOSTGRES_SUPPORT=ON, thencolcon testforros2_medkit_msgs, the fault manager, the gateway and the integration tests, andcolcon test-result --verbose.src/ros2_medkit_integration_tests/test/features/test_rosbag_delete.test.pyruns a real gateway and real fault manager. It covers:deletableand the audit events.test_rosbag_delete_storage_unavailable.test.pycovers an unavailable storage, andtest_locking_disabled_contract.test.pychecks that the 409 stays in the OpenAPI with locking off.test_scenario_bulk_data_upload.test.pytest_13now expects 404 for an unknown id.Checklist