Hi Travis,
I noticed that /movie/changes returns null as the movie id in some cases. I suspect this happens when a movie was deleted, but doesn't comply with the docs. Returning the id would make much more sense here as a subsequent call for the movie details would return 404 indicating that it was deleted.
I assume there will be the same behaviour for tv changes but I have not encountered it so far.
Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.
Vill du betygsätta denna artikel eller lägga till den i en lista?
Inte medlem?
Svar från Travis Bell
den 22 juli 2018 vid 11:59 AM
Yes, that's correct. It happens for objects that have been deleted.
Svar från Jendrik Bertram
den 23 juli 2018 vid 8:04 AM
OK. So is this a bug in the API endpoint or in the documentation? I would prefer the first as it would make much more sense to be fixed there...
Svar från Travis Bell
den 23 juli 2018 vid 10:26 AM
It is not a bug on the API, it's by design.
Svar från Jendrik Bertram
den 23 juli 2018 vid 10:38 AM
I think I am missing something here to get the full picture. So please understand why I am asking these questions. Right now the API is telling a client: "A movie has been deleted, but I won't tell you which one". What is the point of this? Wouldn't it be much better to just return the id?
Svar från Travis Bell
den 23 juli 2018 vid 10:43 AM
Hi Jendrik,
Sorry about that, I missed the fact that you were mentioning the ID field, and not the adult field. The adult field being
null
on deleted items is by design.Ok, so for the ID field, that's a bug that I am aware that seems to be caused at time when the destroyed change log entry is written to the database.
Svar från Jendrik Bertram
den 24 juli 2018 vid 1:17 AM
OK, thanks. Let me know if you need me to test anything or provide further information in order to fix this.