Skip to content

fix: reconcile tags when changes occur #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged

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