Repository navigation
fix(filter): read hash-only blocked channels, document the 1 December builds - #18
Merged
Merged
Conversation
… builds `filter channel list` marks entries added with `filter channel add hash` as `#bot (23 hash)`. The toolbox took that whole text as the channel name, so applying, sharing or restoring the filter lost the hash-only mode. - Parse the marker and keep the mode in FilterSettings.hashOnly, with a "Hash only" switch per blocked channel. Support is detected from the usage line of `filter channel`: on older firmware `add hash #bot` blocks a channel named "hash", so it is never sent to a node without it. - Read the last name of a list the firmware cut off with `..`. - Refuse channel names over 31 bytes, as the firmware does since Dutch-MeshCore/MeshCore#61. - Sanitize the filter settings of a restored backup, and repair names that were saved with the marker in them. - CLI Wiki, Filter guide, Filter CLI and changelog (en, nl, de): key matching, rate-limit order, malformed scan, `filter age` in both directions, pull OTA and radio.watchdog. The USB Setup help of the filter panel described options that do not exist; rewritten.
Deploying dutch-meshcore-toolbox with
|
| Latest commit: |
a815193
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e5b7f7bb.dutch-meshcore-toolbox.pages.dev |
| Branch Preview URL: | https://fix-main-filter-hash-channel.dutch-meshcore-toolbox.pages.dev |
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.
Fixes how the toolbox reads hash-only blocked channels and documents the 1 December DMC dev builds.
Problem
filter channel listmarks entries added withfilter channel add hashas#bot (23 hash)(Dutch-MeshCore/MeshCore#50). The toolbox took that whole text as the channel name, so applying, sharing or restoring the filter lost the hash-only mode.Fix
FilterSettings.hashOnly. Each blocked channel gets a Hash only switch in the Filter CLI, the Filter guide and USB Setup.filter channel. This matters: on older firmwarefilter channel add hash #botblocks a channel namedhash, so it is never sent to a node without support. The Filter CLI generator cannot know the firmware and shows a warning instead...was misread the same way.Docs and changelog (en, nl, de)
filter channel add hash, rate-limit order, malformed scan, andfilter agein both directions (was still missing since fix(filter):filter agealso drops messages stamped in the future MeshCore#34).Testing
npx vitest run: 329/329. With the old parser 11 of the filter tests fail.npx tsc -bandnpx vite build(to a folder outside the repo, sodocs/is untouched).Not tested on a real node. The Dutch and German texts have not been read by a native speaker.
Notes for review
docs/is not rebuilt here, as usual.