Bug 34362 - Stage MARC for import background job - Progress bar does not progress
Summary: Stage MARC for import background job - Progress bar does not progress
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 31666
Blocks: 35092
  Show dependency treegraph
 
Reported: 2023-07-24 15:14 UTC by Pedro Amorim
Modified: 2023-10-18 14:46 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Amorim 2023-07-24 15:14:36 UTC
Test plan:
1) Go to stage MARC records for import
/cgi-bin/koha/tools/stage-marc-import.pl
2) Upload a .mrc file with a couple thousand records
3) Click upload file and then the bottom button "Stage for import"
4) Notice how the bar never progresses, until the job is done successfully.

I believe this is because $self->size and $self->progress are both inside $schema->storage->txn_begin and they are not updated in the database in real time until the job is successfully done.
I also think $self->progress should be $self->step but I'm not 100% sure about that one.