Andrew Shvayka
e05b56b9a4
Feature/device library ( #15347 )
* Add device-package.models.ts with install wizard types
Defines ConnectivityType, InstallStepType, ENTITY_STEP_TYPES,
stepTypeAliasMap, DevicePackageInfo, DeviceInstallStep, form field
interfaces, and EntityStepProgress types for the device install wizard.
* Add device install wizard dialog component for IoT Hub
Multi-step dialog that provisions TB entities from a device package ZIP:
- Connectivity type selector, instruction/markdown views, dynamic forms
- Entity creation with progress tracking (device profile, device, dashboard, rule chain)
- Variable resolution across steps (form values, entity outputs, positional refs)
* fix(iot-hub): fix device install dialog template and translations
- Use correct tb-markdown inputs ([data] and [usePlainMarkdown])
- Fix translation key format (hyphens, not dots)
- Remove unused ConnectivityType import and resolveImageUrl method
- Auto-advance to first step when single connectivity type
- Use inline data URIs for helpImage directly
* feat(iot-hub): wire device install dialog into all install entry points
Branch DEVICE item type to fetch ZIP and open TbDeviceInstallDialogComponent
instead of the simple install dialog. Applied to:
- Item detail dialog (install button)
- Browse component (card install button)
- Home component (card install button)
* fix(iot-hub): fix build errors in device install dialog
- Fix tb-markdown input: [markdownText] → [data] in done view
- Fix JSZip entry type annotation for strict TS compilation
* fix(iot-hub): reuse existing device profiles and add missing retry translation
- Find device profile by name before creating; reuse if exists
- Add action.retry translation key (was showing raw key)
* feat(iot-hub): add find-or-create for rule chains in device install
Reuse existing rule chains by name (same pattern as device profiles).
Shared entities (device profile, rule chain) are looked up before creation.
Per-install entities (device, dashboard) are always created fresh.
* feat(iot-hub): refactor device install dialog to use mat-stepper
- Replace single-panel view switching with mat-horizontal-stepper
- Group consecutive entity steps into a single "Provisioning" stepper step
- Each SHOW_INSTRUCTION and SHOW_FORM is its own stepper step
- Add 2s minimum display time per entity creation step
- Connectivity selector shown before stepper (not a stepper step)
- Progress step auto-advances to next step after completion
- Stepper shows completed checkmarks for finished steps
* fix(iot-hub): fix stepper navigation by tracking step completion
Linear mat-stepper requires steps to be marked completed before
advancing. Added completed flag to WizardStep, set it when user
clicks Next or when entity steps finish.
* feat(iot-hub): add device package install tracking with entity cleanup
Backend:
- Expand DeviceInstalledItemDescriptor with createdEntityIds and dashboardId
- Add POST /api/iot-hub/device/register endpoint to save installed item
- Implement reverse-order entity deletion for DEVICE uninstall
- Update DEVICE case in updateItemVersion to clean old entities
Frontend:
- Expand DeviceInstalledItemDescriptor TS model
- Add registerDeviceInstall API method
- Wire wizard to collect entity IDs and register after completion
- Enable dashboard navigation for installed device packages
* fix(iot-hub): add type discriminator to device register request body
Jackson requires the 'type' field for @JsonTypeInfo polymorphic
deserialization of DeviceInstalledItemDescriptor.
* feat(iot-hub): show entity type in provisioning progress rows
Each progress row now displays "Device Profile — ESP32 Dev Kit" instead
of just "ESP32 Dev Kit", making it clear what type of entity is being
provisioned.
* fix(iot-hub): suppress global error toast and add Back button on provisioning error
- Add ignoreErrors: true to all entity creation API calls so errors
are only shown in the dialog, not as global toast notifications
- Add Back button on provisioning error to navigate back to the last
form step, allowing users to fix parameters (e.g. device name)
- Make form steps editable so stepper allows backward navigation
- Reset progress step state when going back so it re-runs with
updated form values
* fix(iot-hub): resolve ExpressionChangedAfterItHasBeenCheckedError in device install dialog
Inject ChangeDetectorRef and call detectChanges() after async state
mutations (entity step status changes, stepper auto-advance, ngOnInit
completion). The NG0100 error occurred because async operations
(setTimeout, HTTP calls) mutated component state outside Angular's
change detection cycle.
* fix(iot-hub): fix device register endpoint JSON deserialization
Accept JsonNode and use JacksonUtil.treeToValue() instead of direct
@RequestBody DeviceInstalledItemDescriptor. The @JsonTypeInfo on the
parent interface caused Spring's message converter to fail when
deserializing the concrete class directly.
* fix(iot-hub): fix dashboardId serialization in device register request
DashboardId implements EntityId which uses EntityIdDeserializer requiring
both entityType and id fields. Frontend was sending {"id":"..."} without
entityType, causing "Missing entityType or id!" 400 error.
Fix: include entityType: "DASHBOARD" in the dashboardId payload.
Add deserialization unit test to verify the exact frontend payload format.
3 months ago
Viacheslav Klimov
5b5b4dff6b
Update license header
6 months ago
dshvaika
eac55693cc
fix typos
1 year ago
dshvaika
45dee234c8
fixes after review + new tests added
1 year ago
dshvaika
6348035617
UI part + minor refactoring
1 year ago
dshvaika
8af37beb4a
New Cassandra rate limits: separated for Read and Write + Core and Rule Engine
1 year ago
Igor Kulikov
5cf26d4851
Update license header
1 year ago
IrynaMatveieva
5e033ff066
added additional verification in tests
2 years ago
IrynaMatveieva
b19708540f
added tests
2 years ago
Andrii Landiak
5ca6ad03e3
CE: optimize java imports
2 years ago
IrynaMatveieva
f538f2ec79
fixed ActionTypeTest
2 years ago
Oleksandra Matviienko
63df92e995
JUnit5 migration in common. Junit-platform.properties and logback-test.xml where added to java resource directories if needed.
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2 years ago
Dmytro Skarzhynets
06bd88f7e9
Remove device state entries cleanup message
2 years ago
Dmytro Skarzhynets
691a6b5d6a
Polishing after review
2 years ago
Dmytro Skarzhynets
2159430c1b
Fix test for message types with null rule node connections
2 years ago
Ivan Raznatovskyi
09fc025e12
Initial commit from another fork
3 years ago
Igor Kulikov
c5a72ed8df
Update license header to 2024 year.
3 years ago
ViacheslavKlimov
12d2c26279
Rule Engine stats: exception message truncation
3 years ago
Sergey Matvienko
9b15cd609c
StringUtils: contains0x00 implemented to prevent org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00
3 years ago
ShvaykaD
ea5a855272
renamed custom msg type to NA
3 years ago
ShvaykaD
cebe1040d4
refactoring after review
3 years ago
ShvaykaD
3d5cfa0c2e
added internal type to TbMsg to replace if-return blocks with switch-case
3 years ago
ShvaykaD
c2ce40cd39
added rpc sequential strategies: init commit
3 years ago
ShvaykaD
9d20fa7d9e
added additional validation to ActionTypeTest and TbMsgTypeTest
3 years ago
ShvaykaD
883eb472f2
fixes after merge to PE
3 years ago
ShvaykaD
4528348143
replaced new TbMsgMetaData() with TbMsgMetaData.EMPTY and added additional refactoring after review of changes
3 years ago
ShvaykaD
47929ef784
replaced newMsg and trasformMsg with new methods that uses TbMsgType && mark old methods as deprecated && refactoring
3 years ago
ShvaykaD
8beb81cf8d
added tests for check relation presence node & test for TbMsgType and ActionType & refactoring
3 years ago
YevhenBondarenko
fbf9773a61
optimize imports
3 years ago
Seraphym-Tuhai
29c3eddc8a
Merge with branch 'develop/3.5' of github.com:thingsboard/thingsboard
3 years ago
Oleksandra Matviienko
888f026fd6
junit5: UUIDConverterTest annotation exceptions refactoring
3 years ago
Igor Kulikov
cbdc4517e4
Update license header year to 2023
3 years ago
ShvaykaD
1ae1dbef3a
added DynamicProtoUtils
4 years ago
Igor Kulikov
da4c742872
Update license year to 2022
5 years ago
Sergey Matvienko
7f3d63512e
tests: added license header
5 years ago
Sergey Matvienko
18800c57c8
tests: added first test to the common/data package (maven plugin added as well)
5 years ago
Igor Kulikov
22e5771120
JDK 11 Support
5 years ago
Igor Kulikov
d31358b2ea
Update license header - set 2021 year
6 years ago
Andrii Shvaika
004cc216d2
Refactoing of UUIDs storage
6 years ago
Andrii Shvaika
1f8d790fbe
Refactoing of UUIDs storage
6 years ago
Igor Kulikov
cdec671b3c
Revert "Develop/3.0 ( #2760 )" ( #2762 )
This reverts commit 72c7002f61 .
6 years ago
Igor Kulikov
72c7002f61
Develop/3.0 ( #2760 )
* save position fix
* [3.0] Add support ticks to digital gauge (#2508 )
* Add support ticks to digital gauge
* Add link code
* [3.0] Add inputs widgets (#2526 )
* Add location widget
* Fix translate, clear code
* Fix translate
* Add date input widgets
* Add image input widgets
* Init web camera input widget
* Add functional web camera input widget
* Add styles to webcamera iputs widget
* Add link code
* Map/3.0 (#2535 )
* add base map infrastructure
* add leaflet css
* add tencent map
* add google maps support
* added image map support
* refactor schemes
* here maps support && WIP on markers
* add simple marker suppor
* data update & polyline support
* map bouds support
* add some settings support
* add map provider select to settings
* labels support
* WIP on trip animation widget
* WIP on history control and route interpolation
* trip-animation map provider & custom markers
* comleted track marker & history controls
* add license headers
* label fix & tooltips support
* WIP on polygons
* marker dropping support
* add polygon support
* add label to trip animation
* WIP on tooltips
* lint anf typed leaflet AddMarker
* some typing and poly improvements
* add typing
* add marker creation
* update proxy
* save position fix
Co-authored-by: Artem Halushko <ahalushko@thingboards.io>
Co-authored-by: Adsumus <artemtv42@gmail.com>
* Fix UI budget
* add bounds padding
* update map widget bendle && bugfixes
* update marker placement widget
* add licenses
* reomove log
* Update packages
* fix sizes
* Map/3.0 (#2542 )
* add base map infrastructure
* add leaflet css
* add tencent map
* add google maps support
* added image map support
* refactor schemes
* here maps support && WIP on markers
* add simple marker suppor
* data update & polyline support
* map bouds support
* add some settings support
* add map provider select to settings
* labels support
* WIP on trip animation widget
* WIP on history control and route interpolation
* trip-animation map provider & custom markers
* comleted track marker & history controls
* add license headers
* label fix & tooltips support
* WIP on polygons
* marker dropping support
* add polygon support
* add label to trip animation
* WIP on tooltips
* lint anf typed leaflet AddMarker
* some typing and poly improvements
* add typing
* add marker creation
* update proxy
* save position fix
* add bounds padding
* update map widget bendle && bugfixes
* update marker placement widget
* add licenses
* reomove log
* fix sizes
Co-authored-by: Artem Halushko <ahalushko@thingboards.io>
Co-authored-by: Adsumus <artemtv42@gmail.com>
* Update node and npm versions
* Minor fixes
* Update license
* entity and map fixes
* Map/3.0 (#2543 )
* add base map infrastructure
* add leaflet css
* add tencent map
* add google maps support
* added image map support
* refactor schemes
* here maps support && WIP on markers
* add simple marker suppor
* data update & polyline support
* map bouds support
* add some settings support
* add map provider select to settings
* labels support
* WIP on trip animation widget
* WIP on history control and route interpolation
* trip-animation map provider & custom markers
* comleted track marker & history controls
* add license headers
* label fix & tooltips support
* WIP on polygons
* marker dropping support
* add polygon support
* add label to trip animation
* WIP on tooltips
* lint anf typed leaflet AddMarker
* some typing and poly improvements
* add typing
* add marker creation
* update proxy
* save position fix
* add bounds padding
* update map widget bendle && bugfixes
* update marker placement widget
* add licenses
* reomove log
* fix sizes
* entity and map fixes
Co-authored-by: Artem Halushko <ahalushko@thingboards.io>
Co-authored-by: Adsumus <artemtv42@gmail.com>
* Page not found rouring
* Fix tile server support form OSM and zoom level fix
* Map/3.0 (#2544 )
* add base map infrastructure
* add leaflet css
* add tencent map
* add google maps support
* added image map support
* refactor schemes
* here maps support && WIP on markers
* add simple marker suppor
* data update & polyline support
* map bouds support
* add some settings support
* add map provider select to settings
* labels support
* WIP on trip animation widget
* WIP on history control and route interpolation
* trip-animation map provider & custom markers
* comleted track marker & history controls
* add license headers
* label fix & tooltips support
* WIP on polygons
* marker dropping support
* add polygon support
* add label to trip animation
* WIP on tooltips
* lint anf typed leaflet AddMarker
* some typing and poly improvements
* add typing
* add marker creation
* update proxy
* save position fix
* add bounds padding
* update map widget bendle && bugfixes
* update marker placement widget
* add licenses
* reomove log
* fix sizes
* entity and map fixes
* Fix tile server support form OSM and zoom level fix
Co-authored-by: Artem Halushko <ahalushko@thingboards.io>
Co-authored-by: Adsumus <artemtv42@gmail.com>
* Remove empty strings from Spanish translations (#2541 )
* Remove empty string from Spanish translation
* Map widget types improvements
* Map widget types improvements
* Metadata improvements
* Update rule node config ui
* UI: Fix toast target for editor components
* UI: fix routing
* Fix Map fitBounds method
* [3.0] Add gateway widget (#2547 )
* Create gateway widget
* Refacoring and add styled
* Update bundle
* Add model and refactoring
* [3.0] New samples for custom action with html (#2549 )
* Update example custom action to new Angular
* Save settings to change type custom action
* Revert change
* UI: Import/export code improvements
* UI: minor improvements
* UI: Theme improvement
* Fix JSON object edit component
* Update styles
* [3.0] [WIP] Minor fixed to style (#2562 )
* Added support Safari browser (not support DragEvent)
* Imporovement style login page
* Change flex responsive API breakpoint
* Add support long name menu item
* Home page add link to page
* Revert .mat-icon vertical-align to middle
* Revert .mat-icon vertical-align to middle
* Fix value input style
* Headline styles
* [3.0] Minor fix (#2571 )
* Fix breadcrumb and breakroint api to header
* Fix layout profile
* Clear code and fix layout (admin and profile pages)
* Improvements import
* Fix entity table
* Fix rulenode tooltip header
* Clear import-export (Safari)
* Entities table actions improvement
* Improvement dialog and component style
* Ace based editors disabled state handling
* Improvement view on mobile device
* Fix widget library details
* Fix revert thingsboard.yml
* Add entity title function
* Remove unnecessary widgets bundle type
* UI: Entity table models improvements
* UI: dynamic annotation for abstract entity component
* UI: Entities table model improvements.
* add sendActivationEmail as request param (default -> true) to activate method in auth controller and login service
* UI: Model improvement, new entity table methods
* [3.0] Improvements import and tables for mobile view (#2594 )
* Fix width table in Safari
* Improvement in mobile view
* Improvement attributes-table from mobile view
* Relation-table improvement for mobile view
* Improvement entity-table from mobile view
* UI: Attribute table disable edit for client side attributes
* [3.0] Added possibility to login by url params (#2592 )
* Added possibility to login by url params
* Fixes after code review
* UI: Fix login url params
* UI: Fix assets import columns
* fix activate method for new UI
* UI: Fixed add user dialog
* Add new alias Current Tenant (#2604 )
* fix error create dialog new dashboard (#2606 )
* Minor fixes
* UI: Fix scss import to relative path
* UI: Fix scss import to relative path
* UI: Fix scss import to relative path
* UI: Revert entity.component annotation to directive
* UI: Minor improvements
* UI: Breadcrumb component improvements
* UI: Minor improvements
* UI: Improve page link default search function
* [3.0] Minor fix (#2615 )
* Improvement tenant setting from mobile view
* Improvement timewindow setting from mobile view
* Improvement entity-view setting from mobile view
* Update license header and license config
* UI: Entity details panel improvements
* UI: Entities table improvements
* UI: Json React Form - textarea height fix
* UI: Entity autocomplete error handling
* UI: Entity autocomplete error handling
* Update rule nodes ui
* Rule node models improvements
* Add utils to public-api
* UI: Rule node ui external modules
* UI: Rule nodes ui api
* add support custom actions
* Cleanup
* [3.0] minor fix (#2645 )
* Improvement layout-setting setting from mobile/tablet view
* Fix EntityView not show type in translate
* Clear code and update tablet/mobile view
* Update tablet/mobile view
* Fix hide title and text-overflow
* Add support Safari
* Minor fix
* Update package.json versions
* Angular update
* Angular update
* Fix issues after angular update
* Update rule nodes UI
* Fix toolbar and share buttons (#2646 )
* Change resize events to observer (#2652 )
* Remove javascript-detect-element-resize
* Update package.lock
* Improvement resize (#2654 )
* Fix typo
* UI: Minor fixes
* Minor UI fixes
* Fix: reset entity table sort and pagination on entities specific filtering changes
* Update MSA docker readme
* map fixes
* Merge with master. AlarmRepository.findAlarms is failing (#2663 )
* Merge with master. AlarmRepository.findAlarms is failing
* Fix Alarm repository. Add queue type list select.
Co-authored-by: Igor Kulikov <ikulikov@thingsboard.io>
* Map/3.0 (#2664 )
* add base map infrastructure
* add leaflet css
* add tencent map
* add google maps support
* added image map support
* refactor schemes
* here maps support && WIP on markers
* add simple marker suppor
* data update & polyline support
* map bouds support
* add some settings support
* add map provider select to settings
* labels support
* WIP on trip animation widget
* WIP on history control and route interpolation
* trip-animation map provider & custom markers
* comleted track marker & history controls
* add license headers
* label fix & tooltips support
* WIP on polygons
* marker dropping support
* add polygon support
* add label to trip animation
* WIP on tooltips
* lint anf typed leaflet AddMarker
* some typing and poly improvements
* add typing
* add marker creation
* update proxy
* save position fix
* add bounds padding
* update map widget bendle && bugfixes
* update marker placement widget
* add licenses
* reomove log
* fix sizes
* entity and map fixes
* Fix tile server support form OSM and zoom level fix
* add support custom actions
* map fixes
Co-authored-by: Artem Halushko <ahalushko@thingboards.io>
Co-authored-by: Adsumus <artemtv42@gmail.com>
* Add support Safari and improvement view (#2662 )
* Update rule node core config.
* public api import fix
* Fix bundles budget
* IE11 fixes
* Revert "Merge with master. AlarmRepository.findAlarms is failing (#2663 )"
This reverts commit 2c02406ee5 .
* wip on ie 11 fixes
* WIP on es support
* Fix Alarm repository. Add queue type list select.
* [3.0] Entity list not correct find index for model (#2668 )
* Entity list not correct find index for model
* Clear import
* Revert change
* Revert change
* [3.0] Improvement code style (#2670 )
* Clear code and styles
* Clear import
* Fix tenant isolated checkbox fields
* Update rule nodes ui
* UI: Get rid of 'multiple directives with 'exportAs' set to ngForm'
* map fixes
* update map bundles
* Remove redudant css import
* wip on image-map fixes
* image map alias image support
* Add gateway type and clear import (#2677 )
* merge fixes
* saveEntity && minor fixes
* small css fix
* Minor fixes
* Add new widgetContext field currentUser
* entity save fix #2
* entity save fix#3
* Update dashboard (#2684 )
* fix some ds problems
* UI: Migrate gateway widgets and gateways demo dashboard to 3.0
* tile layers and locations set fixes
* input bundles updates
* Update default dashboard thermostats (#2689 )
* Dashboard page fixes and improvements
* Clear code (#2692 )
* Improve database migration - create indexes after inserts
* Handle component_descriptor contraints during migration
* [3.0] Improved login by params to support nagivation to different dashboards (#2703 )
* Improved login by params to support nagivation to different dashboards
* Refactorting
* Minor improvements
* bugfixes
* bugfixes (#2705 )
* [3.0] Improvement map (#2706 )
* Fix load custom marker image for Firefox
* Fix update polygon color
* [WIP] [3.0] Added OAuth2 Support (#2709 )
* Added base impl for OAuth-2
* Added basic and custom OAuth2 user mappers
* Removed comment line
* Refactoring to review. Added tenantId and customerId. Added email tenant name strategy
* Revert debug logger
* Fixed compilation
* Test fixed
* Create UI for OAuthService
* Revert package-lock.json
* Add translate login es_ES
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
* provide entity to custom actions
* Fix Manage dashboard customers
* remove image map zoom
* Fix docker hybrid db mode
* fix empty center position & fix entity id
* Minor refactoring
* Refactoring
* Minor fixes
* [3.0] Improvment image map (#2729 )
* Add support setting position function
* Improved setting image map
* Add support setting offset marker
* Minor fixes
* Fix Auth guard
* Cassandra to SQL boolean column fix
* Fix entity state controller name resolution
* Fix oauth2 login button
* Improve OAuth buttons style
* OAuth button style improvement
* Update haproxy.cfg with oauth rules
* Introduce OAuth failure handling
* Fix tests
* [3.0] Improvement image map (#2740 )
* Fixed not correct center image map
Fixed update position marker for image map
* Add support IE and clear code
* Fix not correct update image for datasource
* Update marker position
* Fix tests
* Fix error update websocket to change user (#2744 )
* Map/3.0 (#2738 )
* WIP on trip-animation settings
* trip-animation points & anchors
* fixes
Co-authored-by: Adsumus <artemtv42@gmail.com>
Co-authored-by: Igor Kulikov <ikulikov@thingsboard.io>
* Fix typo
* Improve table widgets mobile mode
* Update Cassandra Driver
* [3.0] Fixed polygon functionality (#2747 )
* Add default setting and title for group
* Fix polygon: updateColor, functions tooltip and color polygon, update coordinate polygon
* Improvement code
* Refactoring code
* Improve Cassandra resultSet pagination
Co-authored-by: Artem Halushko <ahalushko@thingsboard.io>
Co-authored-by: Vladyslav <vprykhodko@thingsboard.io>
Co-authored-by: ArtemHalushko <61501795+ArtemHalushko@users.noreply.github.com>
Co-authored-by: Artem Halushko <ahalushko@thingboards.io>
Co-authored-by: Adsumus <artemtv42@gmail.com>
Co-authored-by: Chantsova Ekaterina <chantsova.ekaterina@gmail.com>
Co-authored-by: Dmytro Shvaika <dshvaika@thingsboard.io>
Co-authored-by: VoBa <volodymyr.babak@gmail.com>
Co-authored-by: Andrew Shvayka <ashvayka@thingsboard.io>
6 years ago
Igor Kulikov
76300e400e
Update Cassandra Driver
6 years ago
Igor Kulikov
3e2a87135f
Prepare for merge with master
6 years ago
Igor Kulikov
850d6d948c
Update License header year to 2020
7 years ago
Igor Kulikov
1265a9a1e3
Revert "Update License header year to 2020"
This reverts commit 9b42397c4a .
7 years ago
Igor Kulikov
9b42397c4a
Update License header year to 2020
7 years ago
Igor Kulikov
ced63c4e70
Update License Header year to 2019
8 years ago
Igor Kulikov
8a28cd703f
Update license header year to 2018.
8 years ago
Andrew Shvayka
320aee18bf
Refactoring from UUIDs to Strings in SQL DAO to support ordering
9 years ago