Skip to content

obs-data: preserve empty item types for defaults - #1530

Merged
zackees merged 3 commits into
masterfrom
fix/1528-default-item-type
Oct 20, 2026
Merged

zackees merged 3 commits into
masterfrom
fix/1528-default-item-type

Conversation

@zackees

@zackees zackees commented Oct 20, 2026

Copy link
Copy Markdown
Member

After all value slots are unset, an incompatible default changes the item type, unlike the original C.

Empty settings items retain their type when an incompatible default is supplied.

Split fix from #1462. Fixes #1528.

Validation: soldr cargo test -p obs-data empty_item_keeps_type_when_setting_default -- --test-threads=1 fails on RED 97fc97303 and passes with the fix. Related tests: soldr cargo test -p obs-data parity -- --test-threads=1.

ists
warning: Property 'c' exists
warning: Property 'a' exists
warning: Property 'a' exists
warning: Property 'h' exists
warning: Property 'h' exists
warning: Property 'f' exists
warning: Property 'f' exists
warning: Property 'd' exists
warning: Property 'd' exists
warning: Property 'e' exists
warning: Property 'e' exists
warning: Property 'd' exists
warning: Property 'd' exists
warning: List 'g', error: Editable combo boxes must be of the 'string' type
warning: List 'g', error: Editable combo boxes must be of the 'string' type
warning: List 'e', error: Editable combo boxes must be of the 'string' type
warning: List 'e', error: Editable combo boxes must be of the 'string' type
warning: Property 'f' exists
warning: Property 'f' exists
warning: Property 'e' exists
warning: Property 'e' exists
warning: Property 'e' exists
warning: Property 'e' exists
warning: Property 'f' exists
warning: Property 'f' exists
warning: Property 'e' exists
warning: Property 'e' exists
warning: Property 'f' exists
warning: Property 'f' exists
warning: Property 'f' exists
warning: Property 'f' exists
warning: Property 'f' exists
warning: Property 'f' exists
warning: Property 'e' exists
warning: Property 'e' exists
warning: Property 'a' exists
warning: Property 'a' exists
warning: Property 'f' exists
warning: Property 'f' exists
ok
test scene_bounds::parity::cmocka_cases_match_oracle ... ok
test scene_bounds::parity::random_inputs_match_oracle ... ok

test result: ok. 61 passed; 0 failed; 0 ignored; 0 measured; 140 filtered out; finished in 6.62s

soldr: cache 0 HIT, 1 MISS (0% hit rate, saved 0.0s)

PR CI supplies lint and Tier 2 validation. No public headers or existing C tests changed. Tier 4 does not apply to these utility APIs.

@zackees
zackees added this pull request to the merge queue Oct 20, 2026
Merged via the queue into master with commit 998cb63 Oct 20, 2026
23 checks passed
@zackees
zackees deleted the fix/1528-default-item-type branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: obs-data: preserve empty item types for defaults

1 participant