Repository navigation
Conversation
|
Hi @StefanRijnhart, @legalsylvain, |
There was a problem hiding this comment.
So module_rename_map which is now unused caused entries to show up as both NEW and DEL if model changed. Not a great loss but in general (not sure about current accessocalypse) it would be nice to have the data entry indicate the model switch. Would that be possible?
|
thanks, I'll remove the unused function. But I don't think I get the second part. Isn't it a feature that we don't see records with the same xmlid? For the ir.access case, that's mainly meant to remove noise, we don't even actually merge those models in the base migration. I attach the full upgrade_analysis.txt file this creates, which does what I'd like: no entry for ie. access_decimal_precision_config which was a ir.model.access record, DEL entries for ir.rule and ir.model.access records that don't have an ir.access counterpart with the same xmlid and the noupdate switched entries from former ir.rule records would be important to handle if we actually merged those models, so this entries should stay and we have to live with them for the ir.access case. |
|
Yes, I understand that this works well in this particular case, when the model switch is global, expected and predictable. But in case of a one off, it would be really useful to be aware when writing the migration script (which the previous version did not do well either, but at least the combined NEW + DEL would attract attention). E.g. Again, mass model name rewrites such as this one are probably better off filtered out by the mechanism but you get the idea. Happy to approve this version if you think it's too rare. |
with merged/renamed models
4046a99 to
1ab31f9
Compare
|
thanks for the elaboration @StefanRijnhart, I took the liberty to a small refactoring to make it look exactly as you propose |
this will lead to entries like
not great, but something we can live with I think