Closed rina23q closed 2 weeks ago
Attention: Patch coverage is 96.87500%
with 4 lines
in your changes missing coverage. Please review.
Project coverage is 78.2%. Comparing base (
f186b3f
) to head (e6d5178
). Report is 31 commits behind head on main.
I haven't decided how to support the main device before any metadata messages for the main device are sent. Should mapper publish as part of init messages?
Yes, that seems like as sensisble place for it.
I haven't decided how to support the main device before any metadata messages for the main device are sent. Should mapper publish as part of init messages?
Yes, that seems like as sensisble place for it.
I found this approach has a problem. If te/device/main//
registration message is already retained, init function will overwrite the existing metadata message. It is significantly difficult to know if no message is already retained on the topic. There will be the same problem even if we move publishing te/device/main//
registration message to tedge connect c8y
.
Now I understood why we didn't publish auto generated te/device/main//
metadata... I'm even considering to give it up, since it's not as critical as child devices. In any case, we can know the main device's external ID from tedge config.
By the way I'll modify the commit messages later. I didn't know that using @
ends up with mentioning someone who I didn't intend at all :(
If someone wants to know how to escape, this seems helpful... https://stackoverflow.com/questions/38862079/github-commit-message-escape-character. In short, the easiest solution is just to avoid using @
in commit messages.
=> Done
:white_check_mark: Passed | :x: Failed | :next_track_button: Skipped | Total | Pass % | :stopwatch: Duration |
---|---|---|---|---|---|
453 | 0 | 3 | 453 | 100 | 1h32m35.441934999s |
Proposed changes
Append
@id
if not given in entity registration messages.Remark: I haven't decided how to support the main device before any metadata messages for the main device are sent. Should mapper publish as part of init messages? => I gave it up. Read my comment. https://github.com/thin-edge/thin-edge.io/pull/2925#issuecomment-2155552747
Types of changes
Paste Link to the issue
2923
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments