- A dashboard of the package that a profile outside the package uses as its default dashboard, and a device profile of
the package that a firmware or software package refers to, refuse the update before anything is removed.
- The refusal no longer says that nothing was removed: an earlier attempt may have removed part of the package.
- The GATEWAY_CONNECTOR step neither marks the gateway as created in this wizard nor tracks it, so a gateway the user
had and chose to use stays theirs after Back reruns the steps.
- The doc of packageOwnedEntityIds is back above it; tests for the rule chain, the dashboard and the firmware.
By hand from the 4.2 and PE lines: ThingsBoard refuses to delete a device profile that is the default one or that
devices outside the package use, a converter that an integration outside the package uses, and a rule chain that is
the root one or the default rule chain of a profile outside the package. Found after the dashboard and the device were
gone, such a refusal left the package half removed and failed every Retry. Now it is checked before anything is
removed, and the update is refused with a 400 that names what blocks it.
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.