Skip to content

Add tag alias resync workflow and status API - #142

Open
biast12 wants to merge 1 commit into
masterfrom
resync-command-aliases
Open

Add tag alias resync workflow and status API#142
biast12 wants to merge 1 commit into
masterfrom
resync-command-aliases

Conversation

@biast12

@biast12 biast12 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Description

Introduces a full tag-alias reconciliation flow: new backend resync/status endpoints, background processing with Redis lock/progress/cooldown tracking, Discord error handling, and audit logging for alias resync runs. It also extracts shared alias command/planning/storage logic into a new internal tagalias package and reuses it from tag creation and admin command recreation.

On the frontend, adds API bindings and a tags-page UI action to start resyncs, poll progress, surface cooldown/conflict responses, and show completion/warning/error toasts, plus new TagAliasResyncStatus typing and audit label support.

NEEDS: TicketsBot-cloud/database#42

Type of Change

  • Bug fix
  • New feature
  • Breaking change

Testing

Add a good handful of command aliases not via the dashboard (for an example manually via the database)
These commands will be out of sync, now please click the button and see the commands the resynced to discord, this will work the other way too

Checklist

  • My code follows the style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

Introduces a full tag-alias reconciliation flow: new backend resync/status endpoints, background processing with Redis lock/progress/cooldown tracking, Discord error handling, and audit logging for alias resync runs. It also extracts shared alias command/planning/storage logic into a new internal `tagalias` package and reuses it from tag creation and admin command recreation.

On the frontend, adds API bindings and a tags-page UI action to start resyncs, poll progress, surface cooldown/conflict responses, and show completion/warning/error toasts, plus new `TagAliasResyncStatus` typing and audit label support.
@biast12
biast12 requested a review from a team as a code owner September 5, 2026 23:04
@github-actions github-actions Bot added type:bug Bug Fixes needs:bump_db PR references database repo changes labels Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:bump_db PR references database repo changes type:bug Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant