Open ilijabojanovic opened 2 days ago
This is caused because the thread type was updated to require a topic in https://github.com/hicommonwealth/commonwealth/pull/9660 but some threads don't have associated topics hence an error is thrown from line 91 of AdminActions.tsx
The root of the issue is having threads that don't have an associated topic. To resolve this issue we need to make Thread.topic_id
required. To do this we must introduce per-topic archival (replaces topic deletion)
archived_at
column in Topics
tableDeleteTopic.command
to ArchiveTopic.command
archived_at
for the topic and all threads associated with that topicUpdateTopic.command
to prevent updates on archived topics (except for unarchival?)GetTopics.query
There are 413 threads without an associated topic. 287 of these are soft deleted threads which we can permanently remove. Of the remaining 126 threads, 9 are not associated with any community and can therefore also be deleted. This leaves us with 117 valid threads that must be transferred to an existing topic.
These 117 threads come from the following communities: 'borg-test', 'common', 'dhk', 'l0trial', 'sushi', and 'trepo'. All of these communities except for 'common' and 'dhk' have topics named 'General' to which we can reasonably transfer the threads. After this, we are left with 5 threads (from 'common' and 'dhk') which have no associated topic and whose associated community has no 'General' topic.
@dillchen For the 3 threads in the common community, someone from growth should assign them a topic and for the 2 in dhk
we should reach out to them or assign a random topic:
Describe the bug
When user navigate on community, Discussion page crashes.
Initial conditions
Environment:
QA Branch/Release version:
Master/release/v1.7.3-x Browser:
All Wallet:
All
Reproduction steps
Actual behavior
Page crashes
Expected behavior
Screenshots / Video
https://app.screencast.com/dCIJHaXBUOKeN
Reporter
Additional context