* IoT Hub install: an empty optional form field is substituted as an empty value, not left as its placeholder (IOTHUB-125)
* IoT Hub install: an unset toggle is substituted as false
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
* Fixed Agent UI layout issues and app install type availability
* Additional fixes
* Fixed notes after merge with lts-4.4
* Additional fixes
* Fix agent UI back navigation, layout and arguments state
* Fixed PR comments
* Agents: merge responses of a previous selection are ignored, back from agent tabs goes to the Agents list
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
* Fixed an extra vertical scrollbar in audit log and event details when the content has a long line
When the content is wider than the dialog, the Ace horizontal scrollbar takes
its height from the rows, so a small vertical scrollbar appeared. Reserve the
horizontal scrollbar height in updateEditorSize.
* Clarified the scrollbar comment in updateEditorSize
* Fixed truncated status key label in LED indicator widget settings
* Additional fixes for entity-key-autocomplete for better UX
* Fixed PR comments
* LED indicator settings: the status key row stacks on narrow screens
* LED indicator settings: the status key uses the Attribute key / Time series key label
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
* Fixed CF reprocessing progress bar percentage not matching displayed value
* Added process Progress value round
* CF reprocessing: the bar and the percentage show the real progress
The bar and the label now use one real value, capped at 99% until the job is done; the buffer dots show the job is still running.
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
The attributes updated notification is built from the saved typed entries,
so it marks the string entries that would read back as numbers in
typeCastDisabledKeys. Copy to entity view and the device profile parse it
with JsonConverter.attributesFromMsg and get the values the device has.
* IoT Hub device packages: the update service becomes DevicePackageService, ready to install too
* IoT Hub device packages: an install saves its entities and the installed item in one transaction
* IoT Hub device packages: an install keeps only entities the user chose, and its errors read for install too
* IoT Hub device packages: an install from a customer or a device group puts its device and dashboard there, in the same transaction
* IoT Hub device packages: an install never moves an overwritten device to another owner
* IoT Hub device install: the wizard checks every step first, asks about all conflicts at once and installs in one request
* IoT Hub device install: an overwritten device takes the package's credentials, a cancelled check installs nothing, one install is one request
* IoT Hub device install: no second check or install from the step header, Retry checks the package again, messages and comments fit install and update
* IoT Hub device packages: install and update share one plan, review and result path, with neutral names
* IoT Hub device install: the plan looks like the update review, with a footer to confirm warnings and no jump to Verify
* IoT Hub device install: the rows after an install say Created, Used existing, Overwritten or Created copy
* IoT Hub device install: no overwrite of a device or gateway, Use existing keeps the step attributes, Try again asks again about the failed choice
- At install a name conflict on a device or gateway offers only Use existing; the
server rejects an install that overwrites one. An overwrite keeps the device's
credentials, which are applied only to a created device.
- Use existing at install writes the step's server and shared attributes after
commit, as the browser install did.
- Try again at install keeps the conflict choices except the one of the failed step.
- The provisioning step label is translated; ca_ES and ar_AE get the install texts.
- Tests check that the audit log, the Hub install report and the attributes run
after commit.
* IoT Hub device packages: a test pins that an overwrite keeps the device's credentials
* IoT Hub device install dialog: cleanup after review
* IoT Hub device install: the conflict check resolves names from the plan, an install overwrite sends the version
- The pre-check resolves each step's template with the names the plan gives the
entities of earlier steps (alias -> name, in step order), not with outputs left
from a failed attempt, so a dashboard titled ${device.name} is checked under the
device's planned name and the first check and Try again agree. Placeholders known
only after the install, e.g. ${device.id}, stay. An update still resolves with the
installed entities. The request sent to the server is unchanged.
- The pre-check keeps the version of the entity it found (rule chain, dashboard,
converter, integration), and an install overwrite sends it as expectedVersion, so
the server rejects an entity changed between the check and the install.
- The conflict message names the existing entity, as a step's name can differ from it.
- The duplicate-key comment says the check runs before the plan is sent, and the
server checks too.
* IoT Hub device install: a device profile overwrite sends the profile's version
The names lookup has no version, so the pre-check reads the matched profile once and keeps its version for expectedVersion.
* IoT Hub device install: a device overwrite sends the device's version
The device lookup of the pre-check now keeps the version, as the other lookups do, and the state key comment says the duplicate check runs before the plan is sent.
* IoT Hub device install: pass the preview outputs instead of swapping entityOutputs
preCheckTemplates passes its preview outputs to resolveTemplateJson instead of temporarily replacing entityOutputs. Drops duplicated comments and redundant optional chaining in templateNameOf.
---------
Co-authored-by: Viacheslav Klimov <vklimov@thingsboard.io>
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
On phones the entity type now wraps so the name gets more room; the
override did not apply before. The dialog uses mat-dialog-content and
mat-dialog-actions, so Material handles scrolling. The group divider
uses Tailwind.
Nodes call JsonConverter.attributesFromMsg / telemetryFromMsg / sortedTelemetryFromMsg,
which read the type-cast-disabled keys from the message metadata. The key-set overloads
become private. NoCastKeys is renamed to TypeCastDisabledKeys, and the related metadata
key, UplinkData, DedicatedUplinkData and proto fields to *TypeCastDisabledKeys, matching
JsonConverter's isTypeCastEnabled.
* Port of fix/custom-menu-width onto master
* Custom menu table: names wrap and columns fit, no horizontal scrollbar
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
When updates were already checked and only the count failed, Try again
now recounts instead of re-running the whole check: the header keeps the
note with a spinner on the button, the user's list mode and page stay,
and the checking state is cleared by whichever count finishes last, so a
newer count from a reload can't leave the button spinning. Shorter
comments and plain if/else in reloadAfterChange.
The platform guessed the kept strings from the values (STRING_V that
parses as a number). The guess was wrong for a decoder decimal with more
than 16 fraction digits, which the proto parser keeps as a string: it was
saved as a number before and became a string.
The typed converter already has the exact sets. UplinkData now carries
telemetryNoCastKeys / attributesNoCastKeys, and DeviceUplinkDataProto /
AssetUplinkDataProto get them as new repeated fields 8 and 9, so embedded,
remote and executor integrations pass them on. The platform and the
integration executor put them into the "noCastKeys" metadata as given. An
older remote integration sends none and is parsed as before.
NoCastKeys.fromKvList is removed.
PROD-9057
Typed LoRaWAN converters keep identifiers the network server sends as
strings (devAddr, eui, joinEui, hardwareVersion, ...) as strings, but they
were still saved as numbers: the platform turns the converter output back
into JSON for the rule engine, and the save nodes parse that JSON again
with type cast on, so joinEui "0000000000000000" became 0 and
hardwareVersion "1.0" became 1.0.
When the platform builds the rule engine message from an integration
uplink (device and asset paths, and the integration executor), it now
puts the keys whose string values look like numbers into the metadata
key "noCastKeys" as a JSON array. The converter already cast every other
numeric-looking string, so these are exactly the strings it kept. The
save attributes, save time series, calculated fields, copy attributes to
entity view and device profile nodes leave those keys uncast. Messages
without the key are parsed as before.
JsonConverter gets convertToAttributes/convertToTelemetry/
convertToSortedTelemetry overloads with a set of no-cast keys; the
existing methods do not change. NoCastKeys in common/proto writes and
reads the metadata key.
PROD-9057