What happened to the Articles category?
-
I'm trying to find some posts in http://thedailywtf.com/articles/comments/the-monthly-report and I am pretty sure there are more comments than that. I think this was back when we used Discourse, so I tried to find the thread here but I can't find the Articles category... how do I see the rest of the posts?
-
@LB_ I believe the old article topics missed a whole bunch of posts between the first migration (or, whatever migration they were transferred on) and the final migration off of Discourse.
I've complained about it too, because I've tried to find posts that I've made on article topics which are now missing. The topics are on the new article comment system, but a bunch of the recent posts are missing.
-
The articles category IIRC is now locked away and hidden to all but mods and higher. Apparently it was so that the comments system would only be on the main site and no longer integrated.
Personally I wouldn't mind having two comments sections, but meh.
-
@anotherusername said in What happened to the Articles category?:
@LB_ I believe the old article topics missed a whole bunch of posts between the first migration (or, whatever migration they were transferred on) and the final migration off of Discourse.
I've complained about it too, because I've tried to find posts that I've made on article topics which are now missing. The topics are on the new article comment system, but a bunch of the recent posts are missing.
The comment conversion happened all at once. There was no pre-import.
-
@Tsaukpaetra said in What happened to the Articles category?:
The articles category IIRC is now locked away and hidden to all but mods and higher.
Nope. I can't see it.
-
@ben_lubar we've had some good conversations that didn't happen in the first page of discourse comments, are they just gone or is there a way to access them? Should I open an issue?
-
@ben_lubar said in What happened to the Articles category?:
The comment conversion happened all at once. There was no pre-import.
Well, a bunch of them appear to be missing then.
-
@anotherusername said in What happened to the Articles category?:
@ben_lubar said in What happened to the Articles category?:
The comment conversion happened all at once. There was no pre-import.
Well, a bunch of them appear to be missing then.
Yeah, I looked last night and I think only the first 20 comments were converted, including the @PaulaBean posts that got ignored. The articles category is still in the database, but it's disabled so nobody can see it. I'll have to figure out some way of fixing that. I'll probably generate something on one server and import it on the other.
-
@ben_lubar said in What happened to the Articles category?:
I think only the first 20 comments were converted
MacGyver's XMLHTTPRequest has 37 converted comments, but there should be more.
And no, it's not 20 converted comments + 17 recent comments on the new commenting system; all 37 came from Discourse.
-
@anotherusername said in What happened to the Articles category?:
@ben_lubar said in What happened to the Articles category?:
I think only the first 20 comments were converted
MacGyver's XMLHTTPRequest has 37 converted comments, but there should be more.
And no, it's not 20 converted comments + 17 recent comments on the new commenting system; all 37 came from Discourse.
Ok, here's what happened:
The import script includes this condition to see if it should keep going to the next page:
if (page * topic.ChunkSize <= topic.PostsCount)
Now, this should work, because in a sensible system every page except the last one contains the full number of items.
Did you see the logical fallacy? Here, let me highlight it for you:
because in a sensible system every page except the last one contains the full number of items.
-
@ben_lubar deleted/moved posts?
-
@ben_lubar A.k.a. you made an assumption and didn't bother to actually verify whether or not it holds true.
Let's call the duck a duck.
-
@ben_lubar but... Discourse didn't even have pages, right?
-
@anotherusername I'm sure @accalia still has nightmares about the details.
-
@blakeyrat said in What happened to the Articles category?:
didn't bother to actually verify whether or not it holds true
Do you frequently find incorrect assumptions for things like "a book with 12 pages has 12 pages"?
On every other forum in existence, deleting a post from a non-last page does not make the number of posts on that page decrease.
-
@ben_lubar If it happens on 99.99999% of forums, well, it's still an assumption and it still needs to be checked.
-
@blakeyrat It was in Discourse, therefore the correct assumption is that it is crazier than a @Fox.
-
@PleegWat said in What happened to the Articles category?:
@anotherusername I'm sure @accalia still has nightmares about the details.
they haunt me..... i close my eyes some nights and they are there..... staring back at me.... and laughing..... oh how they laugh..... and not the nice kind either.
-
Just to keep the community informed, here's an email I sent earlier today:
Hi Alex,
It turns out Discourse broke the comments import two months ago. See https://github.com/tdwtf/WtfWebApp/issues/164 for more details.
I've written a fix (you can find it under FixDiscourseComments in the repository), and it needs the input file I attached. Don't put that anywhere public because it has user records from NodeBB in it. 7-zip should be able to decompress it.
If you could test the fix locally with a current (or at least since the migration) backup of the front page, that'd be great.
Thanks,
Ben[attachment: articles.json.xz]
-
@ben_lubar Well at least you took responsibility for the problem and didn't blame it on a piece of inanimate software.