Commit 12485b4
Merge stage prior to release v1.1.0 (#145)
* Feature/IOT_16_MulticastBackend (#132)
* Made CRUD operationer for multicast. Tested with frontend.
* Made CRUD for multicast in backend plus connection to chirpStack.
* Changed chirpstack applicationID since there will always only be one.
* Split multicast in two entities so it's easier to expand later. Made a new entity called lorawanMulticastDefinition which will contain the informations about a lorawan multicast
* made functionality so devices now will be added to chirpstack if they are a lorawan device. Also made the update functionality, so a device will be removed if it's not a part of the new multicast
* Send message. Possible to get current message queue and to overwrite it
* Made validation for service profile. Devices should only be added to multicast if they alle have same service profile.
* PR changes
* PR changes - fixed pagination for multicast
* PR Changes
* PR Changes
* Pr changes
Co-authored-by: August Andersen <[email protected]>
* Db migrations (#133)
* Made migrations. Now it's nessesary to add migrations when changes are made in db.
The command - npm run typeorm migration:generate -- -n <migrationName> - will generate a migration file if changes are made compared to the db.
When you launch the app, a migration:run command will be called. This will apply the newly migration.
If you want to revert a migration, npm run typeorm migration:revert can be called. It will revert the latest migration.
If you are in doubt which migrations has been called or not, you can write npm run typeorm migration:show. This will show you the pending/fulfilled migrations.
* Since migrations are made in prestart, no need to check on dist.
* PR Changes
* PR changes
Co-authored-by: August Andersen <[email protected]>
* Migrations changes in ormconfig file to make migrations possible in test environment
* Initial migration (#134)
* Initial migration
* Fix proper linting ignore of migrations
* Changed ormconfig.ts to .js so dist folder is created correctly.
Minor changes in package.json.
Removed multicast from initialmigration and made a seperate migration with multicast.
Co-authored-by: augusthjerrild <[email protected]>
* Feature/1220 api key (#136)
* Init api key auth with hardcoded keys
* Added TODOs. Throw 401 if api key is invalid
* Fix roles metadata not set on class controller
* Fetch api keys and sort. Prepare for create and update
* Api key fetch and create done
* Cleanup api key flow. Remove update flow for now
* Validate api key access
* Works - typeerror when building
* Fixed circular dependency error
* Added API guard to relevant controllers
* Fix indentation. Delete unused auth api key request
Co-authored-by: Aram Al-Sabti <[email protected]>
Co-authored-by: nlg <[email protected]>
* Fix roles in controllers where it was set on the whole class (#139)
* Edit API keys (#138)
* Add option for editing API key
* Fix API keys with admin not having write access
* Edit API key PR
* Clean up API key
* CVE-2019-18413. Patch for potential SQL injections (#137)
* CVE-2019-18413. Patch for potential SQL injections
* Fix request 400 on get applications by permission
* Spell organization with British English ("z")
* Simplified migration names
* Optimize chirpstack calls when fetching devices (#143)
* FIWARE datatarget (#141)
* Fiware DataTarget Support
* Migration for Fiware Datatarget
* Fixing incorrect log message
* PR Fixes
* Optimize bulk import and the load on chirpstack (#140)
* Adjust eslint
* Modify bulk import create to take batches. Update missing
* Remove restriction on devices belonging to the same application
* Optimize chirpstack calls. Init updatemany endpoint.
* Implement updateMany and cleanup
* Fix device model not set. Cleanup code. Add comments
* Refactor iot device helpers
* Make device model error code more specific
* Added comment every time invalid devices are filtered
* Fixed issue when creating new IoT device with no device model
* Fixed Fiware datatarget headers declarations and corresponding unit tests (#144)
Co-authored-by: August Andersen <[email protected]>
Co-authored-by: Aram Al-Sabti <[email protected]>
Co-authored-by: nlg <[email protected]>
Co-authored-by: Bartek <[email protected]>1 parent ba70c7f commit 12485b4
File tree
122 files changed
+3506
-389
lines changed- src
- auth
- controllers
- admin-controller
- api-key-controller
- chirpstack
- sigfox
- user-management
- entities
- dto
- api-key
- chirpstack
- iot-device
- sigfox
- internal
- user-management
- enum
- interfaces
- helpers
- loaders
- migration
- modules
- api-key-management
- data-target
- device-integrations
- device-management
- user-management
- services
- api-key-management
- chirpstack
- data-targets
- device-management
- user-management
- test/unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
122 files changed
+3506
-389
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
| |||
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
22 | | - | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
33 | | - | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | | - | |
46 | | - | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| 88 | + | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments