Open jmwright opened 3 weeks ago
This is legacy code. Currently the way it works is that it has to match the regex, which involves the -6 but then the -6 is stripped off.
I think having the shelf_id in the database itself is the problem. Because it splits the thinking, and means we have to update both the database and the cad to update how we build for a shelf.
The database should tell us what the hardware is. If we have made a shelf that can accept that hardware the the CAD side should know this. As we have said before we really need to have a think about what data actually belongs in the database.
@julianstirling So for now since I am trying to get the assemblies working, should I just add the -6
?
Yeah I think that's best
The code here in device.py that gets the
shelf_builder_id
is supposed to just strip a trailing-6
or-st
, but it seems to incorrectly force some shelf IDs to begeneric
.The following JSON in devices.json leads to a generic shelf.
Whereas adding a
-6
to theShelfId
fixes the issue.@julianstirling