Commit 7d0eeea
feat(transform): Make Processor migration-aware
This commit completes the refactoring to support migration workflows
with separate source and destination databases.
The `Processor` class in `transform.py` has been updated to correctly
handle the new `'config'` key in the `params` dictionary.
- The `Processor.__init__` method now accepts and stores a `config_file`
argument, which is used as a fallback for backward compatibility. - The
`write_to_file` method now checks for a `'config'` key in the parameters
for each file it writes. If present, this configuration is used to
generate the `odoo-data-flow import` command in the final shell script.
This ensures that when a transformation script specifies a destination
config, the resulting `load.sh` script will correctly target the
destination database, completing the migration-aware workflow.1 parent f31818b commit 7d0eeea
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
280 | 285 | | |
281 | 286 | | |
282 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
283 | 291 | | |
284 | 292 | | |
285 | 293 | | |
| |||
0 commit comments