-
Notifications
You must be signed in to change notification settings - Fork 8
Overhaul deleted message handling #73
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
MMK21Hub
merged 27 commits into
hackclub:main
from
MMK21Hub:fix-quick-message-deletions
Oct 25, 2025
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
1e44814
Update DB when unthreaded messages are deleted
MMK21Hub 7cae9d8
Add required library libatomic1 to Dockerfile (#71)
MMK21Hub 695698e
Handle quick message deletions
MMK21Hub 832b846
Create a system for tracking bot messages attached to tickets
MMK21Hub 54dcc03
Ensure resolved message is added to userFacingMsgs
MMK21Hub e498af1
Add a reply_to_ticket() helper for updating the DB
RandomSearch18 e8671f9
Fix type errors in reply_to_ticket()
RandomSearch18 5998a02
Use reply_to_ticket when resolving tickets
RandomSearch18 802dade
Fix type errors in message.py
RandomSearch18 01c17a7
Create delete_replies_to_ticket()
RandomSearch18 acbdf63
Remove unused parameter in delete_replies_to_ticket
RandomSearch18 daf41a3
Rename BotMessage.msgTs to BotMessage.ts
RandomSearch18 2aec411
Write a stub delete_and_clean_up_ticket function
RandomSearch18 a6f585b
Partially implement delete_and_clean_up_ticket
RandomSearch18 cfb3164
Delete "ticket" message in delete_and_clean_up_ticket()
MMK21Hub efa5b69
Use the new ticket methods where appropriate
MMK21Hub 5a8d5f2
Make function name clearer ("delete_bot_replies")
MMK21Hub a0bb7bc
Log if a question is deleted but not present in DB
MMK21Hub bd0363a
Fix error when normal messages are deleted
MMK21Hub e4526fe
Actually include userFacingMsgs in the query when deleting bot replies
MMK21Hub a81b67b
Add success heartbeat to delete queue
MMK21Hub 35fb19a
Document the deletion queue needing workspace admin
MMK21Hub a69cffb
Don't use delete queue in ticket_methods.py
MMK21Hub 1afe037
Fix deleting the backend message on ticket deletion
MMK21Hub e912655
Always preserve support threads with >3 bot messages
MMK21Hub ccebf87
Debug-log message event data instead of printing
MMK21Hub c7cb401
Use the reply_to_ticket util in macros
MMK21Hub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.