-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: archive vehicles #433
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am unable to open the watering plan. Backend shows
"error="entity not found: WateringPlan"
Also I created another vehicle and since then I am unable to open watering plan page
"DEBUG internal/storage/postgres/watering_plan/get.go:92 failed to get linked vehicle entity by id and vehicle type user_id="9fddda2f-657d-4b81-b852-8a333ea2b4a1" error="no rows in result set" watering_plan_id="9" vehicle_type="trailer""
Edit: Last message may not related to another vehicle being created. It could be watering plan overview was loading fine because broken watering plan was on 2nd page. If another watering plan gets deleted and the broken watering plan moves to 1st page you can´t load the site anymore.
@choffmann Since we alter database table doesn´t the seed also to be updated? |
@xk0niR I haven't touched the frontend yet. The delete endpoint is still active and will delete the entity from the database. To test it, you need to manually archive the vehicle via the backend api route |
@xk0niR No, I have implemented an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7ec199d
to
7f2bf19
Compare
Close #430