Parent and child items cannot be stored in different locations
First Check
- This is not a feature request
- I added a very descriptive title to this issue.
- I used the GitHub search to find a similar issue and didn't find it.
- I searched the documentation, with the integrated search.
- I already read the docs and didn't find an answer.
- I can replicate the issue inside the Demo install.
Homebox Version
0.26.2
What is the issue you are experiencing?
It is currently not possible to assign a different location to a child item when it has a parent item.
I have a use case where a product can have spare parts. I want to store the main product and its spare parts in different locations while still linking the spare parts as child items of the main product, see also: https://github.com/sysadminsmedia/homebox/discussions/1668
This worked in Homebox v0.24.2. In the current version, v0.26.2, assigning a parent appears to override the child's location with the parent's location.
I am aware of the Sync child items' locations option and have explicitly disabled it. Nevertheless, the child item's location is still synchronized with the parent's location.
I could not find documentation stating that parent and child items are required to share the same location. Since this worked in v0.24.2, I believe this is a regression rather than an intentional restriction. See also https://github.com/sysadminsmedia/homebox/issues/984#issuecomment-3727595490
How can the maintainer reproduce the issue?
- Create an item named Parent and assign it the location Attic.
- Create another item named Child and assign it the location Basement.
- Make sure Sync child items' locations is disabled in Parent.
- Set Parent as the parent of Child.
- Open the Child item.
Expected behavior
Parent remains in Attic and Child remains in Basement.
The parent-child relationship should not require both items to be stored at the same location when location synchronization is disabled.
Actual behavior
The location of Child is changed to Parents' location.
Changing the location of Child back to Basement appears to work in the UI, but the location does not actually change/remain Basement.
Deployment
Docker (Linux)
Database Type
SQLite
OS Architechture
x86_64 (AMD, Intel)
Deployment Details
No response
Source: sysadminsmedia/homebox