خطأ 500 عند نقل المنشورات بسبب قيد

مرحباً،

بدأ موضوع ما بالانحراف، لذا قمت بتقسيمه إلى موضوع جديد. للأسف، عاد الآن إلى موضوعه الأصلي، لذا حاولت نقل المنشورات ذات الصلة مرة أخرى إلى الموضوع الأصلي. لكنني أحصل على خطأ 500.

يبدو أن قيداً ما يفشل:

2019-09-21 14:39:48.805 UTC [26689] discourse@discourse ERROR:  duplicate key value violates unique constraint "post_timings_unique"`
`2019-09-21 14:39:48.805 UTC [26689] discourse@discourse DETAIL:  Key (topic_id, post_number, user_id)=(9957, 79, 1) already exists.`
`2019-09-21 14:39:48.805 UTC [26689] discourse@discourse STATEMENT:  UPDATE post_timings pt
        SET topic_id    = mp.new_topic_id,
            post_number = mp.new_post_number
        FROM moved_posts mp
        WHERE pt.topic_id = mp.old_topic_id
          AND pt.post_number = mp.old_post_number
          AND mp.old_post_id = mp.new_post_id`
        
`2019-09-21 14:39:48.806 UTC [26689] discourse@discourse ERROR:  current transaction is aborted, commands ignored until end of transaction block`
`2019-09-21 14:39:48.806 UTC [26689] discourse@discourse STATEMENT:  DROP TABLE IF EXISTS moved_posts

هل هناك تكرار واضح هنا؟ هل يمكنك إعادة إنتاجه في موضوع جديد؟

إعجابَين (2)

أنا متأكد تقريبًا من أن هذا تم إصلاحه عبر FIX: Existing post timings could prevent moving posts · discourse/discourse@bee000b · GitHub.
@nmcgovern يرجى الإشارة إلى إعادة الفتح إذا كنت لا تزال قادرًا على تكرار المشكلة.

6 إعجابات