Skip to content

Commit

Permalink
Feature/Update devices controllers to use database to list, create, u…
Browse files Browse the repository at this point in the history
…pdate and delete devices (#1301)

* Move device tag values to a dedicated table #1295

* Move ExecuteLoRaWANCommand to LoRaWANCommandService

* Rename DeviceService to ExternalDeviceService

* Update device and lorawan device repositories to include Tags

* Add device base, device and lorawan device services

* Add Device model id on device list item

* Make GetByIdAsync virtual

* Update mapping profiles on device/lorawandevice

* Set EntityBase as condition on generic type

* Add PredicateBuilder

* Rework device controllers to target new devices services

* Update reference to External device service

* Move ut on execute command on lorawan command service

* Add sort on columns simplify api call to load paged devices

* Add nuget ref to System.Linq.Dynamic.Core

* Fix Lorawan command service unit tests

* Fix Device list page unit tests

* Fix lorawan device controller unit tests

* Fix unit tests on device controller

* Fix tag filter on device controller base

* Refactor LoadItems method

* Add unit test on GetByIdAsync

* Add unit tests on GetDevice on device/lorawan device services

* Add unit tests on CreateDevice on device/lorawan device services

* Add unit tests on UpdateDevice on device/lorawan device services

* Add unit tests on DeleteDevice on device/lorawan device services

* Fix bug on get searchable tags when input tags is null

* Add unit test GetDevices_DefaultFilter_ReturnsExpectedDevices

* Add unit test GetDevices_CustomFilter_ReturnsExpectedDevices

* Add unit test GetCredentials_DeviceExist_ReturnsEnrollmentCredentials

* Rename method GetTagsForQueryString to GetTagsFromQueryString

* Add device tag value repository

* Fix update of devices with tags on sync devices job

* Fix update of devices with tags on device/loradevice services
  • Loading branch information
hocinehacherouf authored Oct 3, 2022
1 parent 1ec0c11 commit 7992143
Show file tree
Hide file tree
Showing 65 changed files with 4,978 additions and 2,992 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
Expand All @@ -17,6 +17,7 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.9" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.7" />
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.20" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit 7992143

Please sign in to comment.