-
If I have a folder instance with releases in it, I can obtain a list of the releases, but a little mis-programming on my part caused my folder to get a few of the same releases more than once.
will return the Release ID and not the CollectionItemInstance ID, because the ID property of CollectionItemInstance is set as the Release ID.
From a consistency point of view, I would expect an Instance ID to be unique per instance, and here that is not the case. I'm just marking this as a suggestion, since the current behaviour doesn't make using CollectionItemInstances that much more difficult, and I don't know what side effects may happen if it is 'corrected' |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I get your point and I do agree that this could be more correct but as always in IT: It's historically. The .id always was there, but only recently we've made the instance_id attr availabe. The sideeffects would be on the social side: It would break a lot of existing programs using discogs_client.... Are we sure this is worth the hassle? |
Beta Was this translation helpful? Give feedback.
-
@AnssiAhola added instance_id while he implemented some new methods around collection handling (delete) I think. Too lazy to find the PR right now ;-)) Might update this answer later :-)
And as said: I'm not sure if we do any good to our library users and existing programs if we change it.... It would mean a lot of hassle. Probably should be done by first deprecating it and preparing users for it. And to be honest I don't think we currently have the resources to handle that. We'll discuss it in the team anyway and I would like to thank you for being aware and pointing it out. Appreciated! |
Beta Was this translation helpful? Give feedback.
-
I understand... |
Beta Was this translation helpful? Give feedback.
I get your point and I do agree that this could be more correct but as always in IT: It's historically. The .id always was there, but only recently we've made the instance_id attr availabe.
The sideeffects would be on the social side: It would break a lot of existing programs using discogs_client.... Are we sure this is worth the hassle?