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

Make directory discovery a bit more robust #204

Merged
merged 4 commits into from
Dec 6, 2024
Merged

Make directory discovery a bit more robust #204

merged 4 commits into from
Dec 6, 2024

Conversation

JKRhb
Copy link
Member

@JKRhb JKRhb commented Dec 6, 2024

At the moment, discovery via the exploreDirectory method stops completely when an invalid TD is encountered during the discovery process.

This PR changes the logic for deserializing the discovered TDs into ThingDescription objects, making the process a bit more reliable, as invalid TDs are just being skipped now.

In order to help with debugging, one of the error message that is emitted during deserialization is also improved a bit and all errors during the directory discovery process will be logged via the developer tools.

@JKRhb JKRhb force-pushed the fix-tdd-discovery branch from cf982ba to f058053 Compare December 6, 2024 08:59
@JKRhb JKRhb force-pushed the fix-tdd-discovery branch from 481a214 to d3e6b08 Compare December 6, 2024 09:02
@JKRhb JKRhb merged commit 0f4185a into main Dec 6, 2024
5 checks passed
@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.26%. Comparing base (b571667) to head (d3e6b08).
Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #204      +/-   ##
==========================================
+ Coverage   63.16%   63.26%   +0.09%     
==========================================
  Files          79       79              
  Lines        2305     2311       +6     
==========================================
+ Hits         1456     1462       +6     
  Misses        849      849              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JKRhb JKRhb deleted the fix-tdd-discovery branch December 6, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants