Skip to content

Conversation

@phorcys420
Copy link
Member

@phorcys420 phorcys420 commented May 1, 2025

file_rename


This PR makes it so that there is always a tag set when editing a help thread.
This helps to avoid threads where "closed" and "opened" is set, which mostly happens when we mark an answer with AnswerOverflow.
This also makes sure that there is always at least a tag, so that if a tag is removed but none is added afterwards, the tag will be reverted.

This is intentionally slow as I chose to debounce the events to avoid race conditions due to human behavior (e.g 1 event for a tag deletion, then 1 event for a tag add), this will just diff the past thread state to the current one after 1.5s, this avoids looping and other bad behaviors.

I'll implement a integration where AnswerOverflow triggers a thread close whenever the answer is set but this will do for now.

Closes #4

@phorcys420 phorcys420 requested a review from matifali May 1, 2025 20:01
@phorcys420 phorcys420 merged commit 8a167c1 into main May 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue management improvements for admins

2 participants