airqo-platform / AirQo-api

This repo contains API definitions for the AirQo platform
https://airqo.africa/
MIT License
23 stars 22 forks source link

During device creation, auto calculate the generation count in the background #561

Closed Baalmart closed 2 months ago

Baalmart commented 3 years ago

Is your feature request related to a problem? Please describe. During the current process for device creation, the user is requested to provide the generation count of the device. This can be challenging for the user since they might not be able to easily recall that count

Describe the solution you'd like That count should be calculated from the background using the count details for that generation version.

Describe alternatives you've considered We could add appropriate error handling in the process.

Additional context Picked from a HW unit member.

Baalmart commented 3 years ago

After careful thought process, we might have to change this to low priority since a user can be able to search the generation of device in the frontend and tell the most recent count. Implementing this logic for lookup in the backend could negatively affect the performace of the endpoint/usecase. The good thing is that the error handling for this usecase has just been properly handled in an open PR.