{"push_id":2386584023,"size":1,"distinct_size":1,"ref":"refs/heads/refactor_user_states","head":"35089aa0f47aaca01a97e005b14fcb965b5bcc79","before":"d6e55426cdf6cd852c2f4d348f0e645b689db1a8","commits":[{"sha":"35089aa0f47aaca01a97e005b14fcb965b5bcc79","author":{"name":"Björn Geuken","email":"8d2232cc81b74ccd6f53a94d9aee02986607f6df@suse.de"},"message":"[frontend] Add validation for user states\n\nBy validating this in the user model we prevent having Mysql2::Error\ncaused by trying to write invalid user states to the db.\n\nWith this commit it's no longer valid to store the enum number\nequivalent.\n\n====\n\n  ActiveRecord::StatementInvalid:\n    Mysql2::Error: Data truncated for column 'state' at row 1: UPDATE `users` SET `state` = 'foo', `updated_at` = '2018-03-08 10:52:46.261578' WHERE `users`.`id` = 40\n  # ./app/controllers/webui/user_controller.rb:113:in `update_as_admin'\n  # ./spec/controllers/webui/user_controller_spec.rb:298:in `block (4 levels) in <top (required)>'\n  # ./spec/support/logging.rb:4:in `block (2 levels) in <top (required)>'","distinct":true,"url":"https://api.github.com/repos/bgeuken/open-build-service/commits/35089aa0f47aaca01a97e005b14fcb965b5bcc79"}]}
{"actor":{"display_login":"bgeuken"}}