Hey there!
We’ve built a feature in our website that queries our hosted Discourse forums and displays information about found topics. It was all working nicely last week when we deployed but it stopped over the weekend. It turns out that the topic
objects returned from the query have changed structure quite a bit.
Expected response object based on testing during development and also matched the latest docs:
"topics": [
{
"id": 1099,
"title": "Build Error: ipykernel 4.8.2 for python 3.6.6 on Windows",
"fancy_title": "Build Error: ipykernel 4.8.2 for python 3.6.6 on Windows",
"slug": "build-error-ipykernel-4-8-2-for-python-3-6-6-on-windows",
"posts_count": 1,
"reply_count": 0,
"highest_post_number": 1,
"image_url": null,
"created_at": "2020-06-30T23:36:42.277Z",
"last_posted_at": "2020-06-30T23:36:42.357Z",
"bumped": true,
"bumped_at": "2020-06-30T23:36:42.357Z",
"archetype": "regular",
"unseen": false,
"pinned": false,
"unpinned": null,
"visible": true,
"closed": false,
"archived": false,
"bookmarked": null,
"liked": null,
"thumbnails": null,
"tags": [
"windows",
"builder"
],
"category_id": 1,
"has_accepted_answer": false
}
],
Actual/current response:
"topics": [
{
"id": 1494,
"fancy_title": "Build Error: python-magic 0.4.15 for Python 3.8.2 on Mac",
"slug": "build-error-python-magic-0-4-15-for-python-3-8-2-on-mac",
"posts_count": 1,
"archetype": "regular",
"pinned": false,
"unpinned": null,
"visible": true,
"closed": false,
"archived": false,
"bookmarked": null,
"liked": null,
"tags": [
"mac",
"builder"
],
"category_id": 1,
"has_accepted_answer": false
}
],
I’m wondering if maybe an update was released that changed responses from the search api? Or more likely, if anyone is aware of an admin setting that might cause this?
I had a look through the change log for the last (2.5 released June 24) but don’t see anything that specifically mentions an API change.
Thanks in advance for any assistance.
- Carey