Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Import device - data overwritten #3251

Open
judramos opened this issue Nov 14, 2024 · 0 comments
Open

Bug: Import device - data overwritten #3251

judramos opened this issue Nov 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@judramos
Copy link

When a device is imported, only some data is added to Azure(). The device in the database is then resynchronized using its model data. Data not imported into the iothub is overwritten in the database at the time of synchronization

Expected Behavior

The portal should import only data directly uploaded to IoTHub. Data herited from device model and unused data on lorawan device should not be imported.

Current Behavior

Some data is used and overwritten because it is defined in several places. Others are overwritten but unused (because they were never uploaded to Azure).

Steps to Reproduce

  1. Import a device using csv file with all data filled.
  2. After synchronization, only some values are keeped in LoraWan: Id, Name, ModelId, assetId, locationCode, supportLoRaFeatures, AppKey, AppEUI, AppSKey, NwkSKey, DevAddr and GatewayID.

Context (Environment)

Portal version:
LoRaWAN Stack version:

Logs

Additional Information

@judramos judramos added the bug Something isn't working label Nov 14, 2024
@judramos judramos added this to the v6.0 milestone Nov 14, 2024
@judramos judramos self-assigned this Nov 14, 2024
@github-project-automation github-project-automation bot moved this to 🔦 Triage in IoT Hub Portal Nov 14, 2024
@judramos judramos linked a pull request Nov 29, 2024 that will close this issue
9 tasks
kbeaugrand added a commit that referenced this issue Dec 5, 2024
* Add of layerId in device twin

* #2998 Quartz migration for SendPlanningCommand

* #2856 Disable built-in device model deletion

* #3238 Update view when a device is unchecked

* 3239 Allow to delete a planning from client

* 3239 Allow to delete a planning

* 2998 Schedule commands

* #3239 Change checkboxes for layers displayed

* Merge from main

* 2516 add supportLoRaFeatures tag in template file

* #3250 Import device list using the template given

* #2985 Batch import creates ABP tags in Device Twin for OTAA-based device models

* #3251 Import device - data overwritten

* Unit tests

* Update src/IoTHub.Portal.Infrastructure/Jobs/SendPlanningCommandJob.cs

Co-authored-by: Kevin BEAUGRAND <9513635+kbeaugrand@users.noreply.github.com>

* #2958 Remove 'Connection State' and 'Last status update' columns

* #3023 startupOrder not supported in Edge Device Model schema

---------

Co-authored-by: E068097 <julie.ramos_ext@michelin.com>
Co-authored-by: judramos <ramos.julie.63@gmail.com>
kbeaugrand added a commit that referenced this issue Dec 5, 2024
* Add of layerId in device twin

* #2998 Quartz migration for SendPlanningCommand

* #2856 Disable built-in device model deletion

* #3238 Update view when a device is unchecked

* 3239 Allow to delete a planning from client

* 3239 Allow to delete a planning

* 2998 Schedule commands

* #3239 Change checkboxes for layers displayed

* Merge from main

* 2516 add supportLoRaFeatures tag in template file

* #3250 Import device list using the template given

* #2985 Batch import creates ABP tags in Device Twin for OTAA-based device models

* #3251 Import device - data overwritten

* Unit tests

* Update src/IoTHub.Portal.Infrastructure/Jobs/SendPlanningCommandJob.cs

Co-authored-by: Kevin BEAUGRAND <9513635+kbeaugrand@users.noreply.github.com>

* #2958 Remove 'Connection State' and 'Last status update' columns

* #3023 startupOrder not supported in Edge Device Model schema

---------

Co-authored-by: E068097 <julie.ramos_ext@michelin.com>
Co-authored-by: judramos <ramos.julie.63@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 💬 Ready for Review
Development

Successfully merging a pull request may close this issue.

1 participant