Opened 9 years ago
Closed 9 years ago
#883 closed enhancement (fixed)
Add support for progress reporting to the Reggie wizard API
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | major | Milestone: | Reggie v4.4 |
Component: | net.sf.basedb.reggie | Keywords: | |
Cc: |
Description
There are a few Reggie wizards that takes some time to complete. It would be nice to have the possibility to include a progress reporter that can display how the work is going.
It should be possible to extend the Wizard.showLoadingAnimation()
with some information that activates the progress bar. When activated Reggie should issue regular requests for checking the progress in the background. The working servlet need handle the actual progress reporting.
Some wizards that may need this:
- The INCA export
- The INCA import
- The statistics wizards
- Linked specimen wizard
- Stray files wizard
- Maybe some more...
Change History (9)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
comment:3 by , 9 years ago
comment:4 by , 9 years ago
(In [3907]) References #883: Add support for progress reporting to the Reggie wizard API
Added progress reporter to the 'Sample processing statistics' wizard. This requried a bit of refactoring of the code to make it iterate only once instead of multiple times over the items. Sevaral lists objects that was only used for lookup was converted to set objects instead.
comment:5 by , 9 years ago
comment:6 by , 9 years ago
comment:7 by , 9 years ago
comment:8 by , 9 years ago
comment:9 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [3904]) References #883: Add support for progress reporting to the Reggie wizard API
The progress reporter should now be functional. The "INCA export" wizard has been used as a test case.
A wizard that want to use progress reporting need to:
<div id="wizard-progress"></div>
tag just below the<div id="wizard-status"></div>
tag.Wizard.showLoadingAnimation()
with two parameters instead of one. The second parameter is the name of the progress reporter. Use names that are unique.SimpleProgressReporter
and store it in the currentSessionControl
by callingSessionControl.setSessionSetting()
with the name from step 2.ProgressReporter.display()
method at regular intervals.