[UPD] Analysis - #871
Conversation
|
I'm wondering why the field @StefanRijnhart do you have any clue? |
|
I'd like to merge this rather sooner than later, any objections @pedrobaeza ? |
|
@StefanRijnhart |
|
Ah yes, of course. Because this kind of warning is logged in the originating module which is now missing, the analysis line is syphoned off to the general log: https://github.com/StefanRijnhart/OpenUpgrade/blob/eefdb93123b3aea6ae5ede6d5dd19668ccd36875/odoo/addons/base/migrations/10.0.1.3/openupgrade_general_log.txt#L207 |
|
Then why Should we merge this? |
|
@pedrobaeza I tried to say that it is reported, in the general log. So yes, please merge this. |
|
But reported on the general log doesn't serve, as people will expect to see that change on the analysis file of the module itself. Can't we add that text on both module analysis files (the source and the target)? |
|
@pedrobaeza yes, that would be a good idea. But it is totally irrelevant to the merge status of this branch. |
|
No, it isn't, as if this feature is integrated, analysis files will change again. |
|
Totally irrelevant again. Having a separate PR for an updated analysis due to an upstream code merge and one for a modified analysis process is strongly preferred |
|
besides, I am not going to work on this new feature of the analysis now. |
|
Well, let's merge it, but I'd prefer to have it because then migration scripts are not going to be correct without knowing that. Please consider to add the feature, as you are the one that knows better the module. |
|
@pedrobaeza yes you are right. Here you go: #917 |
|
Thank you very much, Stefan! |
|
Now that #895 is merged, shouldn't a new analysis like this PR be done? 🤔 For example, in this PR is added the line https://github.com/OCA/OpenUpgrade/pull/871/files#diff-9559914596ccb1f4397871ea751e6b2aR2, and thus a new Todo. But with the merged upstream of v9, that field is fixed (becomes required) so then that Todo is not a Todo anymore. Well, I don't now if I explained it correctly. |
|
It shouldn't happen as Odoo stable policy disallows to change DB layout. 10.0 was an exception, as the DB layout wasn't freeze yet when the analysis was done. |
|
I'm running my first real world migration with this, and think we need to handle customized views some way or the other in this module's migration. 9 is the first version with the editor that creates noupdate=1 changes on ir_ui_view records. Currently, I just reset the noupdate flag in my premigration (otherwise customized views not matching current views break everything), but that's not going to get us happy customers. Do you have ideas how to handle that better? My only other idea would be to also backup the modified architecture, and try per view if we can write the modified architecture after the upgrade. If it raises, we move the modified code somewhere for later manual update, if it doesn't, we're happy (and users who actually want the new version can simply use the reset functionality). This could be quite complex and time consuming, we also need to do the writes in reverse order of hierarchy I think |
|
I think you refer to website views (which is a bit unrelated to this PR), but let me tell you about my experience in that: indeed, is a pain to migrate this kind of DBs, as you have to manually check for each view. Till now, this has been my way of working, updating module and looking for errors, patching them through SQL, and iterate again. An automatic checking that discards wrong views and store them in any place for later review. You have to also deal with views created from scratch that fails, so there's no alternative arch to load, so we must supply a neutral arch in that cases. |
No description provided.