{"push_id":934701520,"size":1,"distinct_size":1,"ref":"refs/heads/fix-list-audit-events-object-type-join","head":"20c9c69859ca6cbae5192b12e643bc149b1eb385","before":"8194ff7997d34166e8bda0d186c0426beb9556e4","commits":[{"sha":"20c9c69859ca6cbae5192b12e643bc149b1eb385","author":{"email":"2f9ee2b336682012cb445da6f3a0a52c68caf471@fueledbylemons.com","name":"Alexey Bezhan"},"message":"Fix audit events object-id and object-type filtering\n\nList audit events endpoint used a join between the audit event\ntable and the `object-type` model, but didn't check the audit event\n`object_type`. This means that eg an event with `object_id=1` could\nbe joined to Services, Suppliers or Frameworks record depending on\nthe `object-type` argument, which lead to incorrect audit events\nbeing returned by the endpoint.\n\nInstead of a join query we request the referenced object separately\nand then filter the audit events based on that.","distinct":true,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-api/commits/20c9c69859ca6cbae5192b12e643bc149b1eb385"}]}