Repository navigation
Bring back diagnostics - #372
Merged
Merged
Conversation
The 4.0 rebuild wrote the package from scratch and the 3.x diagnostics, written against the Hub it replaced, did not come across. Nothing decided to drop them, and they are the first thing to ask for in a bug report. An Access Point entry reports its info, config and status, and every tag it shows with its tag type and whether it is the Access Point's own display, plus how many tags the Access Point lists against how many this entry shows. An ATC entry reports the geometry and config the tag gave at setup, its latest advertisement, and whether an image or upload is pending. The host, tag Access Point addresses, Wi-Fi SSID and content mode configuration are redacted. MACs keep their last four digits so tags stay apart, including in the hidden tags option and an alias that is a MAC. Each library model's raw payload is left out, since its keys cannot be redacted by name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 4.0 rebuild lost the diagnostics download. The 3.x version was written against the
Hubthat the rewrite replaced, so it didn't come across. Nobody decided to drop it. This adds it back for both kinds of entry.Access Point entries report:
ATC entries report:
Redacted: the host, the Access Point address on each tag, the Wi-Fi SSID, and the tag content mode config, which can carry URLs and tokens. MACs keep their last four digits so tags can still be told apart, in the hidden tags option too. Each library model's
rawpayload is left out, because its keys can't be redacted by name.The README now asks for diagnostics in bug reports.
Testing
tests/test_diagnostics.py. It checks the AP and ATC output, and that no address, MAC, SSID or content config appears anywhere in the dump.