openspp-modules icon indicating copy to clipboard operation
openspp-modules copied to clipboard

Adjust support for Async import in odoo17

Open jannahadlaon opened this issue 1 year ago • 5 comments

Describe the bug

To Reproduce Actual behavior When attempting to do an import, the checkbox "import in the background" is not present in the UI

Expected behavior

  1. "import in the background" checkbox should be visible
  2. Using import in the background allows user to exit the current page while import is ongoing.
  3. prepare 1k lines of registrants in a csv then use import in the background during upload Screenshots Image Additional context This ticket was previously logged in the link below from a repository that has been archived: https://github.com/OpenSPP/openspp-acf/issues/35

jannahadlaon avatar Aug 19 '24 08:08 jannahadlaon

https://github.com/OpenSPP/openspp-modules/pull/518 here's the PR for this which is already Merged and Deployed. You might need to install or upgrade spp_import_match module.

Notes

There's a change on the behavior of this, it will automatically set itself to async if the record being imported is more than 100. There's a major changes in odoo import so it will take time to add the checkbox. So I made it automatically for now.

emjay0921 avatar Aug 28 '24 00:08 emjay0921

Issue is still present. See video in the link: https://newlogic.slack.com/archives/C05FF1V3V0B/p1725271755181609

jannahadlaon avatar Sep 03 '24 06:09 jannahadlaon

Findings: Issue is still present in SP-MIS

Steps:

  1. Install spp_import_match module. image
  2. Go to Registry >> Groups >> Import records
  3. Import CSV with 1k registrants
  4. See issue: image

cc: @Markpenalosa @emjay0921

jannahadlaon avatar Sep 25 '24 06:09 jannahadlaon

I think the Job Queue is not being initialized on runboat so we might need to restart Odoo when Job Queue is installed. So that @jannahadlaon can continue the test.

cc: @kneckinator

emjay0921 avatar Oct 07 '24 03:10 emjay0921

Findings: Returned to dev

Connected to: https://github.com/OpenSPP/openspp-modules/issues/622

jannahadlaon avatar Oct 09 '24 06:10 jannahadlaon

@jannahadlaon, can you please retest this on spmis qa and see if the issue is solved?

celinenilla avatar Oct 28 '24 02:10 celinenilla

Findings: QA PASSED

Steps:

  1. Install spp_import_match module.
  2. Install Starter for SP-MIS
  3. Go to Registry >> Groups >> Import records
  4. Import CSV with 1k registrants - verify that import is successful and data is correct Video: TEST-534 image

jannahadlaon avatar Oct 28 '24 09:10 jannahadlaon