Skip to content

Conversation

gurneyalex
Copy link
Member

having a number in the db name makes it easier to understand the order of the steps

having a number in the db name makes it easier to understand the order of the steps
@gurneyalex gurneyalex requested a review from sebalix August 26, 2025 12:37
Comment on lines +183 to +184
ctx.obj["db_c2c_cleanup"] = ctx.obj["db_name"] + "_7_cleanup"
ctx.obj["db_c2c_migrated"] = ctx.obj["db_name"] + "_8_c2c_migrated"
Copy link
Member

@sebalix sebalix Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, cleanup and c2c_migrated are the same thing, the first is the name of the step (and DB snapshot by extension), and the last one is used to generate the .pg file (from cleanup snapshot) on disk to be self-explanatory (odoo_migrated.pg / c2c_migrated.pg).

We could rework that for sure, but here better to remove the _8 prefix in db_c2c_migrated as it's not used to generate DB snapshots.

ctx.obj["db_c2c_migrated"] = ctx.obj["db_name"] + "_c2c_migrated"
ctx.obj["db_prod"] = ctx.obj["db_name"] + "_1_prod"
ctx.obj["db_prod_fixed"] = ctx.obj["db_name"] + "_2_prod_fixed"
ctx.obj["db_odoo_migrated"] = ctx.obj["db_name"] + "_3_odoo_migrated"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this parameter is also used to generate the _odoo_migrated.pg dump file, we'll get a _3_odoo_migrated.pg instead here. Not really an issue that said.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants