queue icon indicating copy to clipboard operation
queue copied to clipboard

[RFC] base_import_async: validation through job queue

Open francesco-ooops opened this issue 3 years ago • 3 comments

Hi, in base_import_async "known issues/roadmap" section it says: "Validation cannot be run in the background."

We would like to develop this feature to validate data without the actual import through job queue for version 14.

Since you have extensive knowledge of this repo, could you advise regarding foreseeable roadblocks to implementation or things to keep in mind?

Tagging @guewen @sbidoul and @simahawk as recent contributors to this repo.

Thanks!

francesco-ooops avatar Mar 30 '22 15:03 francesco-ooops

@francesco-ooops The main question to resolve is how to report the asynchronous validation results to the user.

sbidoul avatar Jul 01 '22 13:07 sbidoul

Thanks a lot @sbidoul for your reply.

I'm not sure if this is what you were referring to, but when an async import job is failing, the single job contains the log with the import errors causing it to fail. I thought that could be the same place to report validation issues.

I am aware that the "readability" of the error log for common user is far from optimal, while it's much better on "standard" odoo import/validation; the biggest issue being that the csv line generating the error is not always specified.

francesco-ooops avatar Jul 01 '22 13:07 francesco-ooops

Sounds reasonable.

sbidoul avatar Jul 01 '22 17:07 sbidoul

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Jan 01 '23 12:01 github-actions[bot]