givepraise / praise

Praise community contributions to build a culture of giving and gratitude.
https://givepraise.xyz
GNU General Public License v3.0
39 stars 21 forks source link

Failed migration on update 2022-06-01 post-mortem #435

Open mattyg opened 2 years ago

mattyg commented 2 years ago

Failed Deployment Post-Mortem

Log of failed migraiton

img

Research

Reflections

In the future we might want to change how we handle failed migrations:

Vyvy-vi commented 2 years ago

Some workarounds to fix the migrations -

  1. Using the most openly accessible channel in the server when calling Util.cleanContent(): This ensures that the bot never has to query the channel in which praise was sent, resolving the issue we're having above. And. this also allows us to realise the content better by ensuring that all user ids get rendered irrespective of them having access to that channel. OR
  2. Write code to fetch the channels that can account for different types of channels returned used in discord.js. OR
  3. Re-write Util.cleanContent and use our own implementation that internally queries the data from the Guild object.