With --ce-ref, CE was the history of the merge bases of HEAD and the CE ref.
When the CE ref is a branch of the unified codebase, such as master, those
merge bases are relicensed commits themselves, so a downstream repository whose
history does not come from CE alone compared against the unified code. The CE
bases below a relicensed merge base are now the CE commits beneath it, found
with the relicensing commit as without --ce-ref.
- Restamp ten files whose header does not match their CE provenance:
EntityDatabaseSchemaService.java, js-resource.component.ts and
DataValidationException.java are identical to CE and take the Apache
header; the 4.3.1.6 cluster migration, TbClusterStore and their tests exist
in CE lts-4.3 and common/transport/snmp/pom.xml lost a CE dependency, so they
take the ce-modified header.
- Remove the DataValidationException.java curation: CE has had an identical
file at the same path since December 2025.
- Remove 29 curations that repeat the header the check decides by itself.
- Delete trendz-settings.component.html and comparison-keys-table.component.html
at their old locations: their components moved and no longer reference them,
and the relicensing commit left only a license header in them.
The check compared each branch against a CE counterpart branch fetched from
thingsboard/thingsboard, which is now the unified codebase itself, so every
file was compared with itself and 5,468 files were reported with a wrong
header.
CE is now the history that does not contain the relicensing commit
31936b09d2. The check compares each file against the latest CE commits merged
into the branch:
- a path that exists in CE is apache when its content equals a CE version or a
clean merge of its CE versions, and ce-modified otherwise;
- a new path is busl unless it is at least 50% similar to a CE file or CE
history had this path, which needs a decision;
- --ce-ref keeps the previous mode of comparing against a fetched CE ref.
The third header kind is named after its template, license-header-busl.txt,
and curations use busl instead of pe-only. --fix also removes redundant
curations and curations of files that are no longer in scope, and the check
lists redundant curations.
From the #16148 re-review:
- onIotHubSortChange compared the picked option with the effective sort, so
picking "Most installed" while it was already shown as the Installed list's
fallback for relevance stored nothing, and the IoT Hub list reopened on
"Most relevant". The choice is now always stored; the list reloads only
when the effective sort changes.
- INSTALLED_SORT_OPTIONS moves below the imports.
- The search page's load pipeline carries a failure as null and applies the
result in applyResult() instead of an inline block with a { result } wrapper.
- filterByLabel trims the search itself, so the facet list and the type pages
treat a trailing space alike.
- isCompactItemType() now also backs TbIotHubBrowseComponent.isCompactType and
the detail dialog's isCompactLayout; the home component's pass-through
becomes a readonly alias.
Conflict: iot-hub-alarm-rules-unavailable-page.component.ts, deleted on lts-4.3
(which supports alarm rules) and recoloured from itemTypeColors on lts-4.2.
Kept the deletion; nothing on lts-4.3 references the page.
From the review of the search page:
- No Type facet selected now sends the six types the platform surfaces, as the
popup does, instead of every type the Hub holds: without the old grouping
step a published dashboard would have rendered as a card and been counted.
- Every reload goes through one Subject + switchMap, so a newer request
cancels an older one; toggling two facets quickly can no longer leave the
grid on the first answer.
- The ResizeObserver callback runs inside NgZone.run, as in
TbIotHubBrowseComponent; zone.js does not patch ResizeObserver, so a reload
started from it did not render. Checked: widening the window reloads with
the larger page size and renders it with no other event.
- The facet list takes option keys (string[]) and computes its visible list
once per change instead of on every change-detection pass; the Type facet's
placeholder zero counts and the facet count summing are gone.
- Shared in iot-hub-utils: filterByLabel (behind filterIotHubItemsBySearch),
measureGridColumns (used by this component and the browse page), and
IOT_HUB_FILTER_SCROLL_THRESHOLD in place of the literal 8 in both panels.
- The page padding and the component's pull-out margin derive from one
--tb-search-page-pad per breakpoint. Resize fields sit with the other state.
- Comments trimmed to the non-obvious intent.
Enter in the field opens the search page unless the autocomplete has just used
the press to select a highlighted row, which it marks with preventDefault in
its own keydown handler, registered before the field's. The field now listens
on keydown.enter and checks event.defaultPrevented, which replaces the
enterHandledByRow flag, the four places that reset it, and the read of the
trigger's activeOption at one exact moment. Checked in a browser: arrow + Enter
on a row opens the row only, Enter in the field opens the search page, click a
row / close the dialog / click the magnifier opens the search page, and arrow
to the footer + Enter opens it once.
Also from the review:
- The popup asks for the six cross-type types rather than filtering dashboards
out afterwards, so totalElements is exact and "See all N" needs no arithmetic.
- Row and footer selection go through onRowSelected / onFooterSelected instead
of a side-effecting predicate in the template.
- isCompactType delegates to the shared isCompactItemType; comments trimmed.
That list is sorted in the browser, and relevance is a score only the Hub
computes: sortInstalledVersions read a 'relevance' field no row has, so "Most
relevant" left the list unsorted under a label saying otherwise. The Installed
list now offers the other three keys, and a relevance choice made on the IoT
Hub list falls back to the first of them there. The sort is kept by value
rather than by menu index, since the two lists differ in length.
From the review:
- iot-hub-api.service builds peOnly/tbVersion from one platformScope(), used
by applyPlatformFilters and by the reads that wrote the pair into the URL by
hand (filterInfo, widgetCategories, the listing item-version lookup).
- DEFAULT_ITEM_TYPE_COLOR names the grey the palette falls back to; the
alarm-rules-unavailable page reads itemTypeColors instead of its own copy.
- isCompactItemType() next to CROSS_TYPE_ITEM_TYPES, used by the item card and
the popup.
- A stale "shared by both query shapes" comment left from the grouped query,
and other comments, trimmed to the non-obvious intent.
The popup asked /api/versions/published/grouped and rendered one section per
item type, so a query answered best by a widget still opened on devices. It now
asks for page 0 of the flat read the search page makes (relevance sort, 10
rows) and renders those rows in the server's order, so the best match leads
whatever its type.
- Each row names its type before the author ("Widget · pinkevych.d"), in the
type's colour with its itemTypeIcons icon. The verified mark moves in front
of the author like on the item cards; an unverified author keeps the person
icon.
- Items without a screenshot (calculated fields, alarm rules, rule chains) sit
in the same 99x56 frame as a screenshot with a 36px coloured tile inside, so
names line up down the list.
- The footer says "See all N results for ..." when the search matched more than
the popup shows; N discounts the rows this page dropped (dashboards).
- itemTypeColors joins itemTypeIcons as the one type palette; the hero reads it
instead of repeating the six colours.
Removes getPublishedVersionsGrouped, MpItemVersionGroupedQuery,
MpItemVersionSection and the iot-hub.section-more key.
- CSS parser: split blocks by matching braces (string- and escape-aware) so
@container, @supports, @layer, @document, @starting-style and nested at-rules
are namespaced inside, not prefixed themselves; @scope gets the namespace on
its root; descriptor at-rules (@property, @counter-style, @page, ...) are kept
verbatim; @keyframes stay inside their group rule; later @layer statements keep
source order; CSS nesting is supported; selector lists split on top-level
commas only; comments are stripped up front; the includes()-based skip list is
removed
- CSS linter: unwrap the CJS ace-linters module; LanguageProvider was undefined
and the error was swallowed, so no diagnostics were ever produced
- CSS editor: pass useWorker before mode so ace's legacy css_worker isn't spawned;
drop keywordCompleter whose items shadowed the documented LSP completions