Skip to content

Pull request for issue #24#25

Closed
google-labs-jules[bot] wants to merge 2 commits into
masterfrom
fix/progress-bar-update
Closed

Pull request for issue #24#25
google-labs-jules[bot] wants to merge 2 commits into
masterfrom
fix/progress-bar-update

Conversation

@google-labs-jules

Copy link
Copy Markdown

Fixes #24


PR created automatically by Jules for task 14293058778322744001

The progress bar for 'many2many' relational imports was not updating because the `run_write_tuple_import` function, which handles these updates, did not report its progress.

This change addresses the issue by:
- Passing the `progress` and `task_id` objects from `run_write_tuple_import` to the `_create_relational_records` function.
- Updating `_create_relational_records` to use these objects to reset the progress bar's total and advance it for each batch of records processed.

This ensures that the progress bar now accurately reflects the status of `many2many` relational imports.
@google-labs-jules

Copy link
Copy Markdown
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

@bosd bosd marked this pull request as ready for review September 25, 2025 21:10
@bosd

bosd commented Sep 25, 2025

Copy link
Copy Markdown
Owner

/gemini review

The progress bar for 'many2many' relational imports was not updating because the `run_write_tuple_import` function, which handles these updates, did not report its progress.

This change addresses the issue by:
- Passing the `progress` and `task_id` objects from `run_write_tuple_import` to the `_create_relational_records` function.
- Updating `_create_relational_records` to use these objects to reset the progress bar's total and advance it for each batch of records processed.

This ensures that the progress bar now accurately reflects the status of `many2many` relational imports.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces progress reporting for the 'write_tuple' relational import strategy. The changes correctly add progress and task_id parameters to the relevant functions and use them to update a rich progress bar during the import process. The implementation is sound. I have one suggestion regarding the function signature to improve long-term maintainability.

Comment thread src/odoo_data_flow/lib/relational_import.py
@bosd bosd closed this Jan 24, 2026
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.

Progressbar not updating on setting relations

1 participant