Skip to content

Conversation

@AramAlsabti
Copy link
Contributor

When importing a .csv file with a large number of IoT devices, timeouts are very likely to occur. The main suspect is the chirpstack API which cannot keep up as numerous calls are made to the API just for a single LoRaWAN device.

This PR refactors this flow:

  • Devices are now sent in bulks of 50 instead of all at once, in separate requests.

Copy link
Contributor

@GufCab GufCab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En enkelt mindre kommentar

@AramAlsabti AramAlsabti requested a review from GufCab February 16, 2022 16:32
@GufCab GufCab merged commit 7ce8ede into stage Feb 22, 2022
@AramAlsabti AramAlsabti deleted the feature/1264_optimize-bulk-import branch February 22, 2022 14:26
GufCab added a commit that referenced this pull request Feb 23, 2022
* Added message to prompt when attempting to delete application with SigFox device

* Added message and functionality to check and to prompt when attempting to delete application with SigFox device

* Made the first additions to multicast in frontend. Will try to connect to backend next.

* Minor changes to make it work with backend.

* PR Changes. Also made the check for sigfox devices in detail page, which i missed before.

* Minor changes so detail page will show how updated/created the multicast

* PR Changes + formatting

* Moved two buttons, multicast and datatargets, to a tab bar in application details.

* minor typo fix

* Finalized CRUD in frontend. Removed list maps from datatarget and multicast because of change in requirements - now the multicast and datatarget is in a tab bar in the application detail page.

* Init api key menu item

* changed division in db so the frontend will receive a different promise. Mostly just changed property names because of this change.

* First additions to "add device to multicast". A dropdown is made with all the possible sensors for the application, and the chosen ones is sent to backend.

* Made frontend functionality so you can add devices to a multicast when you update or create. These devices is then shown in detail page.

* made snack for fail to load on multicast edit page

* Show api keys

* removed 2 console logs

* Api key management works

* Cleanup after api key

* Message to multicast. Made the form and service operations to send to backend, which will then handle the request to chirpstack

* Changed details page. Not splitted up in basic details, and lorawan details.

* PR changes plus search function for devices in multicast

* PR changes - fixed pagination for multicast

* Minor snack changes and check if devices is included before sending downlink

* PR Changes

* merge conflicting

* Cleanup

* Remove unique permissions pipe

* API key cleanup

* Fix sigfox group id

* Add edit api key

* Edit API key PR

* Spell organization with "z"

* Multicast text description changes

* Fixed deleted word "adressen" in multicast creation. Is added again.

* Moved hint description under the input form instead of before det input form. Matches the design of the rest of the document.

* FIWARE datatarget (#67)

* Datatarget multi-types administration and new FIWARE Datatarget type

* PR fixes

* DatatargetTypesService pr fixes

* Optimize bulk import and the load on chirpstack (#65)

* Batch bulk import create. Update missing

* Reworked update many and cleanup

* Comment on bulk import

* Added device model error codes

Co-authored-by: nlg <nlg@iterator-it.dk>

Co-authored-by: August Andersen <aha@iterator-it.dk>
Co-authored-by: Aram Al-Sabti <afa@iterator-it.dk>
Co-authored-by: augusthjerrild <70511721+augusthjerrild@users.noreply.github.com>
Co-authored-by: AramAlsabti <92869496+AramAlsabti@users.noreply.github.com>
Co-authored-by: Bartek <88727464+bkdkmd@users.noreply.github.com>
Co-authored-by: nlg <nlg@iterator-it.dk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants