With its own element at the uplink ts, a metadata key also returned by the script
overwrote the script's value. The metadata keys now go into the script's element at
that ts, only where the script has no value, as for an object result. Without such an
element they keep their own element at the uplink ts.
The metadata telemetry keys went into a separate array element without ts, so they
were saved at the server time, while the script's own values were saved at the
uplink time. The element now takes ts from the metadata, the same ts the script reads
and the one an object result already uses for these keys.
A new TTN or TTI integration now starts with the converter the IoT Hub LoRaWAN
packages install. A device registered from the LoRaWAN Device Repository gets the
profile <brand_id>-<model_id> and its decoded values as telemetry, with a Milesight-style
history list kept at each record's time. Any other device gets the LoRaWAN Device
profile and its raw payload as data. The device is named by its end device ID and
added to a group named after the application.
The TBEL and JS defaults are the same script. ConverterControllerTest runs both through
the real default v2 configuration for TTN and TTI, so ui-ngx now also copies that
configuration to the classpath.
Add the X-TB-Version header once in TbAiChannelPool, the single place a channel to TB AI is opened, instead of in OnPremiseTbAiTokenProvider only. Installs using LocalTbAiTokenProvider now send it too.
The remove dialog named the kept converter, integration and other entities inside
one sentence, which was hard to read. It now says how many other installed packages
use them and lists them with tb-image-references, one per row, each linking to the entity.
* Complete the Slovenian (sl_SI) UI translation
Translate every en_US key on lts-4.3 (9,955) with consistent terminology,
remove the 21 keys that no longer exist in en_US, and keep the en_US key
order and line format. Placeholders, HTML tags and ICU plural structures are
unchanged; plurals use the Slovenian one/two/few/other categories.
Refs #16410
* Use simpler Slovenian terms for the administrator roles
- Entities other installed device packages use are kept as they are on
update, as deleting the package already does, instead of being
overwritten with this package's templates.
- A version without a dashboard step keeps the installed dashboard only
if it still exists; a deleted one is no longer tracked.
- On update, Close reports the update as done only once the new version
is registered.
- A kept integration keeps httpEndpoint and baseUrl for the instructions.
- The gateway output and docker-compose resolution are in one helper.
PROD-9096
- An entity the user took with "Use existing" at install is kept as it is
on update instead of being overwritten with the package's template.
- Only a 404 counts as "deleted since"; any other failure to load a
previous entity fails the step, so a transient error can't create a
second device with new credentials.
- A rejected update registration (success=false) is shown on the step and
can be retried instead of closing as updated.
- An overwritten dashboard keeps its owner.
- Ids of entities deleted since are no longer re-tracked.
- The transport fields take the current Device connectivity settings.
- A version without a dashboard step keeps the installed dashboardId.
- A failed version lookup on update no longer errors unhandled.
PROD-9096
Updating an installed device package deleted everything the package created,
the device included, so its telemetry and attributes were lost, and nothing
was installed again.
Now the update opens the install wizard of the new version over the installed
package. It keeps the install method and the form values, finds the entities
by the ids in the install state (so a renamed profile is still found), keeps
the device and gateway as they are (id, credentials, history) and overwrites
the device profile, converters, integration, dashboard and rule chain with the
new templates under their current names. The installed item then takes the
new version through registerDeviceUpdate. The server no longer updates a
device package by itself.
PROD-9096
- A form field with checkConnection makes Next: Provisioning check the
integration connection. The form waits while it runs, and a failed check
opens an alert titled with the install method that shows the field's
checkConnectionFailedText (or a general text) and keeps the user on the
form. The separate Check connection button is gone.
- A field with portField moves a port pasted at the end of its value into
the named field.
- BOOLEAN fields render as a slide toggle in a form row, with the help text
in the hint icon.
The renderer looked a field's row up in a map (rowOf) from the template, and
called hasHintBox() / isInHintBoxRow() for every field on each change
detection. FormRow now carries hasHintBox, computed in ngOnChanges when the
fields or reviewMode change, and fieldTemplate gets the row in its context.
The subscriptSizing binding and the mat-hint checks read the flag; the map
and both methods are gone. hasFieldError() stays a call, since it depends on
the control state.
The group doc comment in FormFieldDefinition now describes the panel:
consecutive fields with the same group share one.
(cherry picked from commit 0777a0edbd)
isLoopbackHost takes a bare host since 66ed132, but addTransportFields
passed the server value as is. The Device connectivity host isn't
validated, so it can be saved as localhost:1883; DeviceConnectivityUtil.getHost
returns that unchanged. It then wasn't seen as loopback, the fields became
read-only, and the sketch / docker-compose got localhost with no way to
correct it.
addTransportFields now reduces the server host with toBareHost once, and
uses the bare host for the loopback check, the default value and the hints.
(cherry picked from commit 917258d941)
- The device install form shows placeholders, templated defaults, an
Advanced section and a ThingsBoard connection section with the MQTT host
and port, cleans pasted values, shows errors after the user leaves a field
and does not let the browser autofill ThingsBoard credentials.
- A field marked by the package checks the integration connection.
- The TTN and TTI install methods are named The Things Stack Sandbox and
The Things Stack Cloud.
- The TTN converter metadata includes the coding rate and the gateway channel.
- Deleting or updating a device package keeps the integrations, converters
and other entities that another installed device package uses, and the
delete dialog names them before the user confirms.
- The Open button of an installed item names what it opens.