Team-TAU / tau

TAU- Twitch API Unifier, a containerized relay/proxy to unify the WebHook- and WebSocket-based real-time Twitch APIs under a single (local) WebSocket connection.
MIT License
149 stars 38 forks source link

Feature clear webhooks #83

Closed FiniteSingularity closed 2 years ago

FiniteSingularity commented 2 years ago

This PR adds code to allow migrations that reset all webhooks associate with the twitch app key provided. It also adds such a migration which will automatically be applied upon the next run after updating to this code. This is necessary, due to the changes made to how TAU tracks and resets webhooks, and fixes a bug where a non-local instance of TAU might return duplicate copies of events. In addition, this PR adds a --build option to the collect_dashboard management command. This is a convenience function for developing TAU, and allows a developer to issue the command:

./manage.py collect_dashboard --build

After making changes to the Vue-based dashboard code- which will build a production version of the Vue project and collect the files to the proper directories to be served up by django.