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

Incorrect UIN generation #62

Open
abrbhat opened this issue Aug 17, 2019 · 0 comments
Open

Incorrect UIN generation #62

abrbhat opened this issue Aug 17, 2019 · 0 comments

Comments

@abrbhat
Copy link
Member

abrbhat commented Aug 17, 2019

The current logic for generating UIN is incorrect.

As per, current logic, the below query fetches the approved drone whose record has the highest id.

@Query("SELECT MAX(id) FROM OperatorDrone od WHERE od.operatorDroneStatus ='UIN_APPROVED'")

This can lead to multiple drones getting same UIN because record with highest id might not have the highest UIN. This will happen when a drone with higher id gets its UIN before a drone with lower id.

@sidd-shetty @sidhantgoel @charan1994 @suraj-shanbhag

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

No branches or pull requests

1 participant