[FOLIO-720] folio-stable.aws.indexdata.com is not very stable Created: 14/Jul/17  Updated: 12/Nov/18  Resolved: 17/Jul/17

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: P3
Reporter: Wayne Schneider Assignee: Wayne Schneider
Resolution: Done Votes: 0
Labels: ci
Remaining Estimate: Not Specified
Time Spent: 1 hour
Original estimate: Not Specified

Sprint:

 Description   

At the moment, it mostly doesn't work. We need to figure out why, and what can be done.



 Comments   
Comment by Wayne Schneider [ 14/Jul/17 ]

After you log in, the first time you access the Users app, you get the error:

Uncaught TypeError: Cannot read property 'replace' of undefined
    at Users.componentWillMount (bundle.js:112302)
    at bundle.js:154838
    at measureLifeCyclePerf (bundle.js:154566)
    at ReactCompositeComponentWrapper.performInitialMount (bundle.js:154837)
    at ReactCompositeComponentWrapper.mountComponent (bundle.js:154748)
    at Object.mountComponent (bundle.js:30842)
    at ReactCompositeComponentWrapper.performInitialMount (bundle.js:154861)
    at ReactCompositeComponentWrapper.mountComponent (bundle.js:154748)
    at Object.mountComponent (bundle.js:30842)
    at ReactCompositeComponentWrapper.performInitialMount (bundle.js:154861)

Any attempt to access another app after that produces the error:

Uncaught TypeError: Cannot read property 'getHostNode' of null
    at Object.getHostNode (bundle.js:30859)
    at ReactCompositeComponentWrapper.getHostNode (bundle.js:154874)
    at Object.getHostNode (bundle.js:30859)
    at ReactCompositeComponentWrapper.getHostNode (bundle.js:154874)
    at Object.getHostNode (bundle.js:30859)
    at ReactCompositeComponentWrapper.getHostNode (bundle.js:154874)
    at Object.getHostNode (bundle.js:30859)
    at ReactCompositeComponentWrapper.getHostNode (bundle.js:154874)
    at Object.getHostNode (bundle.js:30859)
    at ReactCompositeComponentWrapper.getHostNode (bundle.js:154874)

Pretty much everything is hosed up from there on out, unless you log out and log back in again. You can access other apps (Settings, Items, Scan) without a problem until you try to access the Users app (or the find-users plugin).

I believe the current problems are caused by some incompatibility of the last released version of ui-users (2.7.0) with a peer dependency like stripes-core or stripes-connect. In my testing, the same problems occur no matter what the backend system is. I've tried downgrading the peer dependencies and rebuilding the bundle, without success, so I can't be sure.

Comment by Mike Taylor [ 14/Jul/17 ]

I don't think there's much point worrying about this. The present version of ui-users doesn't even have a componentWillMount method – we use self-initialising stripes-connect local resources instead. So when 2.8.0 finally comes out, this code won't be in place.

(We really should do a ui-users release – there are 32 changes listed in the change-log.)

Comment by Wayne Schneider [ 14/Jul/17 ]

Thanks, Mike Taylor, that makes sense. I'll leave this open and see what happens when a ui-users release is cut.

Comment by Wayne Schneider [ 17/Jul/17 ]

Resolved with resolution of FOLIO-702 Closed

Generated at Thu Feb 08 23:07:51 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.