The European Union legislative process is an instance of a peer-production system. We introduce a model of the success of legislative edits proposed by parliamentarians on new laws. Each edit can be in conflict with edits of other parliamentarians and with the original proposition in the law. Our model is combines three different categories of features: (a) Explicit features extracted from data related to the edits and to the parliamentarians, (b) latent features that capture bilinear interactions between parliamentarians and laws, and (c) text features of the edits. We show experimentally that this combination enables us to accurately predict the success of the edits. Furthermore, it leads to model parameters that are interpretable and provide therefore valuable insights into the legislative process.