Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic bridge app PR introduced weird layering violation #23057

Closed
bzbarsky-apple opened this issue Oct 6, 2022 · 3 comments · Fixed by #27491
Closed

Dynamic bridge app PR introduced weird layering violation #23057

bzbarsky-apple opened this issue Oct 6, 2022 · 3 comments · Fixed by #27491
Labels
dynamic-bridge Issues in the dynamic-bridge example stale Stale issue or PR v1.1

Comments

@bzbarsky-apple
Copy link
Contributor

#21975 added a WillDecodeNull method on AttributeValueDecoder that doesn't really make sense. AttributeValueDecoder should just be used to decode into the canonical data model types; if you need the result converted to some other type, then you can do it from those.

In particular, there is logic for "decoding lists as spans" that seems to require this WillDecodeNull bit but doesn't make any sense to me....

@mrjerryjohns @achaulk-goog

Also, I don't understand why #21975 was fast-tracked given it was making core API changes. @woody-apple @andy31415

@andy31415
Copy link
Contributor

Fast track was because PR has been in review for about 7 weeks give or take - after so much time, even considering 1.0 crunch, it was likely that nobody else cared enough to actually review it :/

Since you did review it in the end, that assumption seems to maybe be wrong and maybe 1.0 crunch should have stayed it more. It seems we have to adjust logic about null decoding. @mrjerryjohns as primary reviewer.

@mrjerryjohns
Copy link
Contributor

Had a discussion with @bzbarsky-apple and clarified the rationale there. There are a number of small bugs that were introduced in the bridge-app side of things that @achaulk-goog is going to put out a PR for.

As for the usage of WillDecodeNull, it was the simplest strategy to take to hit the use-case needed for introducing these templated 'container/collections' types. It is not breaking any existing APIs, and just adds one extra method.

Alternative strategies might be much more complicated, so @bzbarsky-apple is going to help think of those once @achaulk-goog 's PR is out.

@bzbarsky-apple bzbarsky-apple added the dynamic-bridge Issues in the dynamic-bridge example label Dec 22, 2022
@stale
Copy link

stale bot commented Jun 24, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label Jun 24, 2023
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this issue Jun 26, 2023
This should have been done differently to start with, and the only consumer is
gone anyway.

Fixes project-chip#23057
@mergify mergify bot closed this as completed in #27491 Jun 27, 2023
mergify bot pushed a commit that referenced this issue Jun 27, 2023
This should have been done differently to start with, and the only consumer is
gone anyway.

Fixes #23057
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dynamic-bridge Issues in the dynamic-bridge example stale Stale issue or PR v1.1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants