{"push_id":3150607358,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"6497d9510d8cce341665c309afd8e0c5f2d60941","before":"dd0d5460e941326e5ad79281d9c4e76c85348955","commits":[{"sha":"a7fb91615ef30c2a78bd1036c2a6110fd1ca0d81","author":{"name":"Stephan Kulow","email":"b7203c818b59b922ac08a5cf9edea9b0763c1b16@suse.de"},"message":"Cache user_can_modify_project in repository page\n\nThis function was called *twice* per repository and is not\nexactly cheap:\n\n  CACHE Flag Exists (0.0ms)  SELECT  1 AS one FROM `flags` WHERE `flags`.`project_id` = 2 AND `flags`.`flag` = 'lock' AND `flags`.`status` = 'enable' LIMIT 1\nhas_global_permission? change_project\n  CACHE  (0.0ms)  SELECT `roles_static_permissions`.`role_id` FROM `roles_static_permissions` INNER JOIN `static_permissions` ON `static_permissions`.`id` = `roles_static_permissions`.`s tatic_permission_id` WHERE `static_permissions`.`title` = 'change_project'\nrunning local permission check: user coolo, project home:Admin, permission 'change_project'\n  CACHE Project Load (0.0ms)  SELECT  `projects`.* FROM `projects` WHERE (projects.id not in (0)) AND `projects`.`name` = 'home' ORDER BY `projects`.`name` DESC LIMIT 1\n  CACHE Relationship Exists (0.0ms)  SELECT  1 AS one FROM `relationships` WHERE `relationships`.`project_id` = 2 AND `relationships`.`user_id` = 3 AND (role_id in (1,2)) LIMIT 1\n  CACHE Relationship Exists (0.0ms)  SELECT  1 AS one FROM `relationships` INNER JOIN `groups` ON `groups`.`id` = `relationships`.`group_id` INNER JOIN `groups_users` ON `groups_users`.` group_id` = `groups`.`id` WHERE `relationships`.`project_id` = 2 AND `groups_users`.`user_id` = 3 AND (role_id in (1,2)) LIMIT 1","distinct":true,"url":"https://api.github.com/repos/openSUSE/open-build-service/commits/a7fb91615ef30c2a78bd1036c2a6110fd1ca0d81"},{"sha":"6497d9510d8cce341665c309afd8e0c5f2d60941","author":{"name":"Stephan Kulow","email":"f965a4a1b587c4e3c1892642aed563e43902502b@kulow.org"},"message":"Merge pull request #6664 from coolo/avoid_sql\n\nCache user_can_modify_project in repository page","distinct":true,"url":"https://api.github.com/repos/openSUSE/open-build-service/commits/6497d9510d8cce341665c309afd8e0c5f2d60941"}]}
{"actor":{"display_login":"coolo"}}