thin-edge / thin-edge.io

The open edge framework for lightweight IoT devices
https://thin-edge.io
Apache License 2.0
211 stars 55 forks source link

refactor: Simplify entity registration code flow #2884

Closed albinsuresh closed 1 month ago

albinsuresh commented 1 month ago

Proposed changes

Refactor the entity registration and auto registration code for simplicity and improved readability.

Types of changes

Paste Link to the issue


Checklist

Further comments

github-actions[bot] commented 1 month ago

Robot Results

:white_check_mark: Passed :x: Failed :next_track_button: Skipped Total Pass % :stopwatch: Duration
440 0 3 440 100 1h1m11.111427s
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 79.16667% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 78.0%. Comparing base (b3c84af) to head (c53e14a). Report is 10 commits behind head on main.

Additional details and impacted files | [Files](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2884?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thin-edge) | Coverage Δ | | |---|---|---| | [crates/extensions/c8y\_mapper\_ext/src/converter.rs](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2884?src=pr&el=tree&filepath=crates%2Fextensions%2Fc8y_mapper_ext%2Fsrc%2Fconverter.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thin-edge#diff-Y3JhdGVzL2V4dGVuc2lvbnMvYzh5X21hcHBlcl9leHQvc3JjL2NvbnZlcnRlci5ycw==) | `83.6% <79.1%> (-0.4%)` | :arrow_down: | ... and [13 files with indirect coverage changes](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2884/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thin-edge)