- size_filter_holds runs the real copy search (normalized_copies) on a source of exactly COPY_SIMILARITY % of a
destination and on one byte less, and compares Git's answers with could_be_copy. When they disagree the size
filter is off for the run: every CE file is searched, the console says so and the report has
copySearch.sizeFilter false (null when nothing was searched for copies). It runs only when there are new paths.
- Copy sources are staged under zero-padded ranks in key order. Slot numbers used to start after the checked
files and sort as strings, so among equally similar CE sources --since and a full run could report different
copy candidates.
- the workflow fingerprints the restored databases and saves only when the run changed them, so a check that fails
before opening the cache, --no-cache or a run that only reads it saves nothing; the .updated marker and both of its
clean-ups are gone
- a test pins that a run which only reads the cache leaves its bytes unchanged
- copy_candidates returns the comparison hashes of the CE files it searched instead of updating the caller's dict
- put() commits at once, so the write lock is held briefly; any SQLite error in open, get or put continues the run without the cache
- a lock at open is no longer taken for damage, so the file of another run is not deleted; open() closes its connection on failure
- pruning matches only <32 hex>.sqlite; LICENSE_HEADERS_CACHE_SIGNATURES sets how many signatures are kept, CI keeps 1
- the copy similarity threshold and the CRLF staging are each defined once
- the save step takes the restore step's primary key; the workflow comment credits cache scoping
- --cache is listed in the wrapper's usage
* fix(dashboard): hide the side menu toggle in the mobile app
A dashboard with both the dashboard toolbar and the main toolbar hidden shows a floating menu button at phone width that toggles the side navigation. In the mobile app the page runs in forced fullscreen, where the side navigation is disabled, so the button did nothing and covered the start of the first widget title. The app has its own navigation, so the button is no longer rendered there.
* fix(dashboard): visible toolbar icons in mobile app with primary shell
In the mobile app the dashboard toolbar is drawn on a white background. With the primary application shell the toolbar text colour is the primary contrast colour, which is white for dark palettes, so the time window and other toolbar icons were white on white. The dashboard toolbar now uses the light shell colours in the mobile app regardless of the selected application shell.
* Restamp license headers flagged by check-license-headers.sh
---------
Co-authored-by: Artem Babak <ababak@thingsboard.io>
- Make TbAbstractSubCtx.stop() final and move cancellation into a
protected onStop() hook, so subclasses cannot cancel outside the
lifecycle lock.
- Guard doFetchAlarms() instead of fetchAlarms(), so the refresh path
through cleanupOldAlarms() is covered too.
- Cancel dynamic-value subscriptions when an alarm count context stops.
- Make the stop-waits-for-registration test deterministic by waiting
for the stopper to queue on the lifecycle lock.
A subscription command can register subscriptions after its context was
stopped by a concurrent session cleanup, or create a context after the
session was already removed. The registrations then outlive the session
and keep answering alarm updates with queries whose results are dropped.
- Serialize TbAbstractSubCtx.stop() with subscription registration through
a lifecycle lock; registerSubscription() refuses stopped contexts and
sessions unknown to the websocket service.
- Route all context-owned addSubscription calls through registerSubscription().
- Skip alarm fetches on stopped contexts and ignore alarm and entity data
commands for sessions that are no longer registered.
- Add WebSocketService.hasSession().
- Unit tests for the registration guard and the stop/registration ordering.
* Changes for reporting tables
* Added min and step to border width
* Removed borderRadius - not supported in peropting library
* Returned background color
* Style changes
* Changes after review
* Fixes after review
* Set min value for DOUBLE border type
* Enforce double-border 3 px minimum at config time, not render time
* Treat double border width as single-line thickness instead of enforcing a 3px minimum
Width now means the thickness of each line; a double border is rendered
as two such lines with an equal gap (CSS width = width x 3), matching how
Word stores double border widths. This removes the dynamic-form validator
extension and the divider min-width validation, and shows a hint only
when Double is selected.
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
Migrations started from @PostConstruct ran before Spring registered
@TransactionalEventListener methods, so cache evict events published by
migrations were dropped. With a Redis cache the stale entry survived until
its TTL (e.g. the internal Trendz API key kept its pre-migration
permissions for up to 24 hours).
Start the patch applier on ApplicationReadyEvent with the new
AfterStartUp.SYSTEM_PATCH order (0), so it is still submitted before
partitions, discovery, core and actor startup.