Skip to content

Progressbar not updating on setting relations #24

Description

@bosd

Current Situation:
4 - The master branch successfully creates partner records and sets parent relations
5 - It's currently processing categ_id assignments, which are working (some partners get categories assigned)
6 - The progress bar for "Updating relations for categ_id" stays stuck at 0% throughout the process
7 - The operation eventually completes successfully, but the progress indication is broken
8
9 Technical Context:
10 - This happens in the Pass 2 (relational import) phase
11 - The categ_id field is a many2many relationship to res.partner.category
12 - The operation uses the relational import functions in src/odoo_data_flow/lib/relational_import.py
13 - Progress is tracked using the rich library's Progress class
14 - The progress bar is created in the _orchestrate_pass_2 function in import_threaded.py
15
16 Expected Behavior:
17 - The progress bar should update incrementally as each batch of categ_id relations is processed
18 - Should show progress from 0% to 100% as records are updated
19 - Should provide meaningful feedback during the operation
20
21 Request:
22 Please investigate and fix the progress bar update mechanism for relational field updates (specifically
categ_id, but likely affects all many2many relations). The issue is likely in how the progress updates are
being called during batch processing in the relational import functions.
23
24 Look for:
25 1. Whether progress.update() is being called with correct parameters
26 2. Whether the total count matches the number of batches being processed
27 3. Whether updates are being called at the right points in the processing loop
28 4. Whether there are any issues with the rich Progress integration
29
30 Files to focus on:
31 - src/odoo_data_flow/import_threaded.py (especially _orchestrate_pass_2 and related functions)
32 - src/odoo_data_flow/lib/relational_import.py (the run_write_tuple_import and related functions)
33 - Any connection/pooling mechanisms that might affect progress updates

Metadata

Metadata

Assignees

No one assigned

    Labels

    JulesGoogle Jules

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions