Comment 10 for bug 1514085

Revision history for this message
Bill Erickson (berick) wrote :

A secondary benefit of polling occurred to me. Since we're making regular API calls throughout the enqueue and import process, the auth token will no longer expire on long-running (short auth-expire) imports

I have now imported thousands of records without issue in the browser client Vandelay UI. The largest data set is the 5k sample record file. In all cases, progress is reported as expected in the UI.

This code does not include email notifications, will open separate LP for that.

==

Code is squashed and rebased to master. Since there's no new functionality in this branch, I have not included release notes, but I certainly can.

From the commit:

Adds a new DB table vandelay.session_tracker for monitoring progress on Vandelay enqueue and import sessions.

Enqueue and import APIs get a new option to exit early, returning the newly created tracker object, so the caller can monitor the tracker instead of listening to streamed responses, which are not supported in browser client Dojo interfaces.

Teach the existing Dojo Vandelay UI to exit early on enqueu & export and to poll for tracker data in lieu of waiting for streamed progress data.

On user merge / purge, trackers are migrated to the destination user.

==

Code pushed to:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1514085-vandelay-state-tracking