- 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, as the
profile and the rule chain do.
- 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: the connector is
attributes on the gateway. 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 (root, default of another device or asset profile, default of the package's own profile),
the dashboard and the firmware.
The update is refused before removing when the package's profile or rule chain can't be removed; an entity the user
chose to use is not tracked as the package's; a failure after the removal has started is not a 400.
After Back reruns the entity steps, the "use existing" mark of such an entity is gone from the install state, so the
server took it for the package's and a later update or Delete removed the user's own entity. The wizard no longer
tracks it, unless it created that entity itself earlier in the same wizard.
The update removes the package's entities one by one. ThingsBoard refuses to delete a device profile that is the
default one or that devices outside the package use, 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 every Retry failed the same way. Now it is checked before anything is removed, and the update is
refused with a 400 that names what blocks it.
A failure after the removal has started is thrown without its cause: BaseController answers 400 for an
IncorrectParameterException cause, and a 400 tells the wizard that nothing was removed.
The same fix was made in both lines. The 4.3 side is kept everywhere (the device update dialog, the actions service,
the warning text, the calculated field import of the add item dialog), so this branch now contains the 4.2 one and the
forward merge lts-4.2 -> lts-4.3 brings no conflicts.
The server returns a 400 only for a refusal before anything is removed; a failure once removing started is an
IllegalStateException. The wizard asks before closing after any other failure, a proxy timeout too, without matching
the message text.
The server returns a 400 only for a refusal before anything is removed; a failure once removing started is an
IllegalStateException. The wizard asks before closing after any other failure, a proxy timeout too, without matching
the message text.
- update-desc-device says again that the new devices get new access tokens
- an existing entity the wizard created a moment ago is recorded as created, not use-existing
- the close prompt shows only after the removal, a partial removal or a lost answer
- query params go through InterceptorHttpParams (also fixes force losing the interceptor config)
- one iotHubErrorMessage helper on parseHttpErrorMessage for the iot-hub dialogs
- removingReplaced is one signal, stepError a field, no template method calls or extra detectChanges
- fewer comments, readonly fields in the update dialog, cdr renamed to cd
- update-desc-device says again that the new devices get new access tokens
- an existing entity the wizard created a moment ago is recorded as created, not use-existing
- the close prompt shows only after the removal, a partial removal or a lost answer
- query params go through InterceptorHttpParams (also fixes force losing the interceptor config)
- one iotHubErrorMessage helper on parseHttpErrorMessage for the iot-hub dialogs
- removingReplaced is one signal, stepError a field, no template method calls or extra detectChanges
- fewer comments, readonly fields in the update dialog, cdr renamed to cd
This version can only reinstall a device package. Update opens the same kind of window as an item that needs ThingsBoard 4.4 (#16231): it says so, leads to the Community Grant Program, and keeps "Update anyway" to reinstall through the install wizard.
ThingsBoard 4.4.1 updates device packages without reinstalling them; the update warning says so and links the Community Grant Program, as the dialog of an item that needs 4.4 does.
An entity the user chose to use as it was, on a name conflict, is not the package's: updating or deleting the package neither removes nor tracks it. The default device profile is one, and it cannot be removed, so it blocked the update. The update warning also says plainly that this version reinstalls a device package.
An entity the user chose to use as it was, on a name conflict, is not the package's: updating or deleting the package neither removes nor tracks it. The default device profile is one, and it cannot be removed, so it blocked the update. The update warning also says plainly that this version reinstalls a device package.
An entity that is not removed stays in the installed item and the removal fails, so the wizard shows the error and Retry removes the rest. Closing the wizard after the removal asks first, and the update warning says that the new devices get new access tokens.
An entity that is not removed stays in the installed item and the removal fails, so the wizard shows the error and Retry removes the rest. Closing the wizard after the removal asks first, and the update warning says that the new devices get new access tokens.