Comment 25 for bug 1706107

Revision history for this message
Kathy Lussier (klussier) wrote :

Hi Mike,

I installed the above branch. Karma tests are passing, and I now appear to be getting all the goodies in the node_modules directory. However, I'm still having trouble with this branch. The most critical are #1 and #2.

1. I'm no longer getting any offline access after I clear my browser cache (More tools -> clear browsing data -> Cached images and files. Offline worked fine on my first attempt, but after I cleared the browser cache and disabled cache via the Chrome developer tools, I received a disconnected from the Internet error (the screen with the dinosaur game). In my previous tests before today, the browser was trying to load something, but was missing the required files. Now, the browser doesn't seem to be trying to load anything at all while offline once the browser cache is cleared.

2. When I am online and want to upload transactions, I'm unable to create a session. I hit the Create Session button, and I get the toast notification saying 'offline session creation failed.' I get the following message in my Console:
(unknown) GET https://mlnc1.noblenet.org/cgi-bin/offline/offline.pl?1503950675442&action=create&desc=aug-28-17-offline-testing&org=4&ws=BR1-masslnc&wc=1&ses=0ca06797d5a98db3ae43276e7b48f116 500 (Internal Server Error)
(anonymous)
(anonymous) @ angular.min.js:105
n @ angular.min.js:100
(anonymous) @ angular.min.js:98
(anonymous) @ angular.min.js:132
$eval @ angular.min.js:147
$digest @ angular.min.js:144
$apply @ angular.min.js:147
(anonymous) @ angular.min.js:281
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3

3. I mentioned this in a previous comment a few weeks ago. The Offline Circulation entry in the Circ menu appears to be trying to direct me to the Sessions tab of the offline interface, but is, in fact, retrieving the Checkout tab by default. This is confusing for users since this tab also has a big alert informing them they should log out, which, of course, is not a good idea if you're trying to upload sessions.

4. Related to the above, when you are in offline mode and use the check out and check in entries from the standard online Circulation menu, it appears to be trying to retrieve those tabs in the offline interface. It is successful in retrieving those interfaces, but the tab stays selected at whatever tab you were using before you used the menu entry. Even if it worked as expected, I don't know that we want those menu entries to retrieve offline interfaces. When the system comes online again, if the user decides to use one of those menu entries to return to the live system, they will keep returning to that offline interface.

I took the following screencast to try to demonstrate the issues in #4. At the beginning of the screencast, we're offline and I'm showing how the tab selection doesn't change. When we go back online, those menu entries continue to direct the user to the offline interface. https://drive.google.com/file/d/0B74gDMUDwDXqeGdVaWN1dE9sLVU/view

5. I don't know if this is a problem, but after my first login to the web client, every time I return to the web client's home page, I see the following in my Console. Is this a problem? I saw it on the Equinox offline test server too:

nexttick.js:42 Uncaught D {code: 201, message: "http://google.github.io/lovefield/error_lookup/src…1&p0=Object.pkObject&p1=%5B%22aou%22%2C%221%22%5D"}code: 201message: "http://google.github.io/lovefield/error_lookup/src/error_lookup.html?c=201&p0=Object.pkObject&p1=%5B%22aou%22%2C%221%22%5D"__proto__: Error
(anonymous) @ nexttick.js:42

Following the link to the error lookup, I see the following

Constraint error: (201) Duplicate keys are not allowed, index: Object.pkObject, key: ["aou","1"]