{"push_id":1335565746,"size":2,"distinct_size":2,"ref":"refs/heads/9.0","head":"d477dcc31606cd41cb1622a5d078407fad2e57a7","before":"1b3d60d961bd9b79d877ba8e69c2b9495d5aa442","commits":[{"sha":"22c4a0c1b06fef3d27fc6a0cd2c7d00ccc2816de","author":{"name":"Michael Brown","email":"6aea4b7e30fae31ba295ccad4d396c35ffe93542@fensystems.co.uk"},"message":"[FIX] expression: pass context to hierarchical domain operators\n\nThe expression context is currently passed to to_ids() but is missing\nfrom all calls to child_of_domain() or parent_of_domain().  These\nmethods are effectively always passed a context of None.\n\nSigned-off-by: Michael Brown <mbrown@fensystems.co.uk>\n\nCloses #13688 (part 1/2)","distinct":true,"url":"https://api.github.com/repos/pniederlag/odoo/commits/22c4a0c1b06fef3d27fc6a0cd2c7d00ccc2816de"},{"sha":"d477dcc31606cd41cb1622a5d078407fad2e57a7","author":{"name":"Michael Brown","email":"6aea4b7e30fae31ba295ccad4d396c35ffe93542@fensystems.co.uk"},"message":"[FIX] models: fix behaviour of 'defer_parent_store_computation'\n\nIf a model uses nested sets to maintain a hierarchical record\nordering, then bulk inserts (e.g. via a CSV import) are likely to\nsuffer from an O(n^2) performance penalty, since there is a high\nchance that each new record will require many of the existing records'\nparent_left and parent_right fields to be updated.\n\nThe context parameter 'defer_parent_store_computation' may be passed\nto the load() method, in order to defer updating the parent_left and\nparent_right fields until after the bulk operation is complete.  This\nappears to have last been fully supported in version 7 (via the old\nimport_data() method).\n\nIt is still possible to specify 'defer_parent_store_computation',\ne.g. via an XML-RPC call such as\n\n  m.execute_kw(dbname, uid, password, 'stock.location', 'load', [],\n               {'fields': fields, 'data': data,\n                'context': {'defer_parent_store_computation': True}})\n\nThis will currently defer the recalculation of parent_left and\nparent_right, but does not correctly call _parent_store_compute()\nafter the bulk operation is complete.\n\nAdd the missing call to _parent_store_compute() to perform a one-time\nupdate of the parent_left and parent_right fields if needed after the\nimport operation is complete.\n\nAlso fix the child_of_domain() and parent_of_domain() expression\nmethods, so that the 'child_of' and 'parent_of' operators give correct\nanswers when updates to parent_left and parent_right have been\ndeferred.\n\nSigned-off-by: Michael Brown <mbrown@fensystems.co.uk>\n\nCloses #13688 (part 2/2)","distinct":true,"url":"https://api.github.com/repos/pniederlag/odoo/commits/d477dcc31606cd41cb1622a5d078407fad2e57a7"}]}
{"actor":{"display_login":"pniederlag"}}