* Add 'Overwrite activity time' column type to device bulk import
* Fix overwriteActivityTime column type not being disabled after selection in bulk import
Remove dead locale key import.column-type.activity-time-from-gateway-device
from all 23 locale files
* Use DataConstants keys for gateway and overwriteActivityTime in device bulk import
* Group gateway columns in bulk import and reuse device.overwrite-activity-time label
* Fixed auto-detection of gateway columns in device bulk import
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
- 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.
- 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.
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.
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.
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.
An entity a new step of the package uses as it was goes into createdEntityIds as well as usedExistingEntityIds, as at install, so deleting the package removes the metadata entries it added to that entity.
Fields that the server sends as null were documented as required, so
generated clients (Dart in particular) failed to parse such responses.
They are now NOT_REQUIRED. Bean validation on save is unchanged.
swagger-core skips @NotNull for a property with
@Schema(requiredMode = NOT_REQUIRED), but still adds the ones with
@NotBlank / @NotEmpty to 'required'; SwaggerConfiguration now removes
them.
The key is removed whenever the decoded payload has it, and it names a model only when it is an object, so
tbVersionIds: null or a list gives the same telemetry in JS and TBEL. The test of a tbVersionIds that is not an
object covers a text, null and a list. The test of the renamed profile lists temperature, which is in the history
record and in the latest values, so it fails if a listed key leaves a history record.
attributes.<brand_id>-<model_id> in the integration metadata (comma-separated, written by the device package's
INTEGRATION step, like profile.*) lists the keys of decoded_payload that are device information and settings: they
become attributes, the rest stays telemetry. No list, everything stays telemetry. The model comes from version_ids,
else from tbVersionIds, which now also gives the brandId and modelId attributes, as version_ids does through the
integration. Tests: the listed keys of a formatter device, the list of a Repository device by its model with a renamed
profile (history records stay telemetry), the list of another model changes nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
springdoc infers a parameter type from its Java type only when
@Parameter(schema = @Schema(...)) sets neither type nor implementation;
otherwise it falls back to string. Fix int and long parameters globally
in SwaggerConfiguration instead of declaring the type per endpoint.
Also derive the deb and rpm package version once (pkg.version, 4.4.1~SNAPSHOT for snapshots) and use it for the packages and their purls, so package purls match the installed packages.
Lansitec devices are decoded by our payload formatter in The Things Stack (Custom Javascript formatter on the end device),
so the Lansitec block leaves the TBEL and JS converters, with its test and uplinks. A device that is not in the LoRaWAN
Device Repository has no version_ids: its formatter can add tbVersionIds { brand_id, model_id } to decoded_payload, the
converter takes the profile <brand_id>-<model_id> from it (or the name in the integration metadata), and drops the field
from the telemetry. version_ids come first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The schema was built with Schema.type("integer"), which OpenAPI 3.1 does
not write, so it had no type. Generated clients treated the codes as
strings, while the server sends numbers.
entityType carries an EntityType or an AliasEntityType name
(CURRENT_USER, ...), so it is a string; id is required only for an
EntityType, and aliasEntityType is never written. A filter with an alias
did not fit the old schema. AliasEntityType is registered explicitly,
since no schema references it any more. AliasEntityIdTest pins the wire
format.
TbAlarmService.assign and unassign return AlarmInfo, and Jackson already
wrote it, but the endpoints were documented as Alarm, so generated
clients dropped originatorName, assignee and the other AlarmInfo fields.
The parameters are int, but their @Schema(minimum = ...) had no type, so
springdoc documented them as strings and generated clients took
String pageSize, String page. State type integer, format int32, as every
other paged endpoint does. The page minimum of getEdgesByEntityGroupId
was 1; pages start at 0.
GET /api/noauth/login was mapped with params = {"pkgName, platform"},
a single parameter literally named "pkgName, platform", so a request
with pkgName and platform never matched it. The method takes both as
required parameters; they are now two separate names, as intended when
platform was added.
claimDevice returns ClaimResult and getPersistedRpcByDevice returns
PageData<Rpc>, but both were documented as a string, so generated
clients failed to decode every successful response. getPersistedRpcByDevice
returns a raw DeferredResult<ResponseEntity>, so a doc-only PageDataRpc
describes its body. exportIntegrationPackage returns application/zip,
not a JSON string.
/api/auth/login and /api/auth/token write a JwtPair without null fields.
For a two-factor authentication token it has a scope and no refresh
token, but LoginResponse had no scope and marked refreshToken required,
so generated clients could not detect the MFA step and failed to parse
the response.
The document is OpenAPI 3.1, which writes Schema.types, but registerSchema
resolved classes with the OpenAPI 3.0 ModelConverters instance, so
LoginRequest, LoginResponse, ThingsboardErrorResponse and
ThingsboardCredentialsExpiredResponse lost "type": "object". The
/api/auth/token request body had no types either, so refreshToken was
untyped. ColumnSettings declares allOf DataKeySettings explicitly, so it
stays a DataKeySettings subtype however springdoc reaches it first.
- TBEL Instant Report of the contact tracing badge: (count + 1) / 2 as an int, so an even count gets timeOffset
- SocketSync UUID: prefix ...AD4657 for tails 0x00-0x1E (Plug Bluetooth Gateway 1.5, Table 7)
- beacons in the order of their numbers, gaps included (Container Tracker 5.7 Offline Cache)
- time1..time8 of the container Offline Cache without the codec's 8 hours, as gnssTime1..
- badge tracker Heartbeat without the SNR field (before firmware 0x0501) decided by the length
- helmet pressure / 10 (Helmet Tracker 6.3, unit 0.1 Pa)
- gateway firmware V1.08 from VER, as in Bluetooth Gateway 4.4.2
- shared helpers for the charge state, Register, Heartbeat and Acknowledgment; one MODES/BANDS table
- the test keeps the default TTN/TTI converters under 30000 characters; 4 more uplinks in the fixture