Polymaker

[Bug] Get Part Api - Related Parts

Recommended Posts

Hello,

 

I've found that for some parts, the related parts section is very bugged. Some relations are duplicated and sometimes the same part id has two different types (e.g. mold and pair).

Also sometimes the relations are outright wrong. For example, with the part 4265 'Technic Bush 1/2 Toothed', the API returns '87414' (a tire) as a mold variant. (This part also have duplicated relations)

 

The problem clearly comes from a bug in the API because the web page for the parts show the rights relations, so this is not due to wrong data in the database.

Share this post


Link to post
Share on other sites

I've modified it to not follow all available relations, just the MOLD types. It will still show immediate PAIR etc relations, but not try to follow them through the tree which just gets awfully confusing.

Share this post


Link to post
Share on other sites