Duplicate topics show in list when forum moved with leave shadow

Created on 18 March 2022, over 2 years ago
Updated 24 April 2024, 2 months ago

Problem/Motivation

This is a follow up to #1578998: move forum topic and leave shadow cause duplicated topics show in list β†’ to fix the reason that issue was re-opened. As explained in From #7 β†’ from that issue.

As far as I can tell, this patch is relying on an accidental ordering of the database query in order to work. Which means that as soon as the query is actually ordered by something else, it breaks.

For example, you can click on any of the tablesort headers on the forum listing, and by doing that the node will flip back and forth between being displayed as a regular topic and shadow topic...

To be honest, that behavior is significantly less broken than what came before, so maybe this patch is an improvement anyway :) But we should be able to come up with a complete fix for this bug.

Steps to reproduce

Proposed resolution

Remaining tasks

Patch
Review
Commit

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

1.0

Component

forum.module

Created by

πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024