Insert or re-order posts

AI-generated summary

The discussion revolves around the ability to insert or re-order posts within a thread. mottosso asks if there’s a way to do this, particularly for a tutorial series where posts need to be added in sequence. codinghorror confirms there is no current functionality for this. sam explains that while it’s technically possible to manipulate post numbers in the database, it’s risky and requires careful resequencing across multiple tables. He advises against doing it manually and notes that while there may be long-term plans for a UI feature, none are planned in the near future.

An edge case, I’m sure, but wanted to ask if there’s any way to insert or re-order posts in a thread?

I ask because I’m working on a series of posts that all correlate with each other, like a story (a tutorial, really), from one post to the next. But it’s a work in progress, and sometimes I find myself wanting to insert a post inbetween two others.

It’s fine if the solution is to enter a dark backend somewhere and fuddle the numbers myself, but if so, is it straightforward enough for a non-Ruby developer to grasp? Here’s hoping for a hidden button somewhere in the GUI.

There is no way to do this at the current time. But like “set post owner”, there probably should be.

Ok, thanks for letting me know.

Technically you could mess with post_numbers on the posts table and re-sequence stuff, you would need to be mega careful cause other tables also depend on that data so you would need to re-sequence stuff there as well.

My strong recommendation here would “don’t do it ™”. We may have some ultra long term plans for providing UI for resequencing a topic but there is nothing in the next few years planned.