The PE part of thingsboard-pe#5291 for 4.4.0.x, by hand: the update opens the wizard of the new version with the entity
group (the first one other than All) and the customer of the installed version's device, and the server keeps them in
the install state ($placement) when it removes the entities, so a retry after the device is gone still creates the new
one there. 4.4.1 does not need it: its update keeps the same device.
On 4.4.0.x the Update of a device package removed every entity the package created and installed nothing again. Now
the Update opens the install wizard of the new version, with the forms filled from the installed version. Nothing is
removed while the user goes through the forms; the entities of the installed version are removed right before the
wizard creates the new ones, and the installed item keeps the old version until the wizard registers the new one on
the same item. The update dialog warns that the package is reinstalled and its data removed.
The diff of thingsboard#16558 (lts-4.4) applied onto hotfix-4.4, plus three fixes from its review: the removeEntities
endpoint checks the permissions as the other IoT Hub endpoints do; an entity the user had before the install and chose
to use is not tracked as the package's, so a later update or Delete never removes it; a failure after the removal has
started is never answered with a 400, which tells the wizard that nothing was removed.
- 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
The enrollment now collects its license key from the portal when the grant is
done, and keeps it in tb_cluster.license_secret. A claim that has nothing to
hand over yet leaves the flow for the next poll; a refused claim ends the flow
registered without a key; a transport failure is left to the existing backoff.