litaio / lita

ChatOps for Ruby.
https://www.lita.io
MIT License
1.68k stars 179 forks source link

Deleting user metadata doesn't seem to persist #156

Closed jordansissel closed 8 years ago

jordansissel commented 9 years ago

Doing the following to delete a user metadata key will only temporarily remove that key from the user's metadata.

request.user.metadata.delete("fancy")
request.user.save

Upon restarting Lita, the old "fancy" key is still present. I think to solve this, we'll need to use redis HKEYS + HDEL to delete any keys that are not present in the user metadata during save.