Conversation
|
Claude finished @SozinM's task in 1m 54s —— View job Claude Code Review
FindingsIssues that should be addressed:
Other observations (no action requested):
|
| pub fn with_disable_cross_region_sharing( | ||
| mut self, | ||
| disable_cross_region_sharing: Option<bool>, | ||
| ) -> Self { | ||
| self.disable_cross_region_sharing = disable_cross_region_sharing; | ||
| self | ||
| } | ||
|
|
||
| pub fn set_disable_cross_region_sharing(&mut self, disable_cross_region_sharing: Option<bool>) { | ||
| self.disable_cross_region_sharing = disable_cross_region_sharing; | ||
| } |
There was a problem hiding this comment.
Minor API note: the new field semantically represents "disable" (a bool flag), and modelling it as Option<bool> invites three states — None, Some(false), Some(true) — where only two are meaningful. If the goal is to round-trip the wire-format Option<bool> faithfully, this is fine, but consider if the internal Metadata could store a plain bool (defaulting to false) and only the wire RawBundleMetadata keeps the Option. As written, None and Some(false) are indistinguishable in behaviour but produce different serialized output, which can lead to roundtrip surprises.
There was a problem hiding this comment.
Option is used to have correct RawBuilder -> Bundle -> RawBundle conversion
|
Claude finished @SozinM's task in 2m 6s —— View job Claude Code Review (re-review after
|
| if self.disable_cross_region_sharing.is_some() { | ||
| return Err(RawBundleConvertError::FieldNotSupportedByVersion( | ||
| "disable_cross_region_sharing".to_owned(), | ||
| version, | ||
| )); | ||
| } |
There was a problem hiding this comment.
The V1 rejection added here isn't covered by test_error_bundle_decoding_invalid_fields_v1 (serialize.rs:1014). Consider adding r#" "disableCrossRegionSharing": true "# to the extra_invalid_fields array so this branch is exercised — otherwise a future change that drops/breaks this check won't be caught.
|
Claude finished @SozinM's task in 1m 15s —— View job Claude Code Review (re-review after
|
📝 Summary
Needed for flowproxy
💡 Motivation and Context
✅ I have completed the following steps:
make lintmake test