Bug overview description.
The JSON data for a post returned by the /posts endpoint contains a relationships object, which contains a children list, which is empty on posts that have children but have not been updated since the migration to e621ng (updated_at is null). The relationships object also contains has_children, which will be false on such posts, and has_active_children, which is true on such posts with active children.
For example, see post #227794, which is the parent of post #6890. The JSON data of post #227794 currently contains the following:
"relationships":{"parent_id":null,"has_children":false,"has_active_children":true,"children":[]}
What part(s) of the site page(s) are affected?
The data of un-updated posts with children as returned by the API.
What is the expected behavior?
The data of all posts with children retrieved via API should contain a list of those children.
What actual behavior is given instead?
No children are listed in the data of some posts.
Time of incident (if applicable).
2020-03-05 10:00 PM EST
Can you reproduce the bug every time?
Yes, on posts that have not been updated since the migration and have children.
What steps did you take to replicate this bug?
I made an API request to /posts that includes an un-updated post with children, such as https://e621.net/posts/227794.json
Errors or other messages returned (if any).
N/A
Updated