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

Feature: Synchronize Devices between IoT Hub and Portal database #1030

Closed
kbeaugrand opened this issue Aug 4, 2022 · 2 comments · Fixed by #1279
Closed

Feature: Synchronize Devices between IoT Hub and Portal database #1030

kbeaugrand opened this issue Aug 4, 2022 · 2 comments · Fixed by #1279
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kbeaugrand
Copy link
Member

kbeaugrand commented Aug 4, 2022

Blocked by #1029

We should create some copy items of devices in our database to support much advanced sear, sort queries...

@kbeaugrand
Copy link
Member Author

@hocinehacherouf ,

I see that this PR won't sync Edge devices nor LoRaWAN concentrator. Do we need to consider creating a dedicated job to sync them afterward ?
In that case, Let's create a new issue for them.

@hocinehacherouf
Copy link
Contributor

@kbeaugrand:

kbeaugrand pushed a commit that referenced this issue Sep 27, 2022
kbeaugrand pushed a commit that referenced this issue Sep 27, 2022
* add new entities

* add repositories

* create syncDevice job

* update mapper

* update device job

* resolve #1030

* fix unit test

* delete useless code

* add unit test device repository

* add test on configHandler production/development

* add test for syncDeviceJob

* Refactor SyncDevicesJob

* Add unit tests on SyncDevicesJob

* Refactor DeviceProfile.GetTags

* Change config name for sync database job refresh interval in seconds

* Change config for db sync from seconds to minutes

Co-authored-by: ben salim <salim.benahben@cgi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 💬 Ready for Review
3 participants