[FOLIO-331] Document how to run the Patron CRUD UI module Created: 20/Sep/16  Updated: 12/Nov/18  Resolved: 30/Sep/16

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

Type: Task Priority: P3
Reporter: Mike Taylor Assignee: Mike Taylor
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 3 hours
Time Spent: 1 day, 7 hours
Original estimate: Not Specified

Issue links:
Blocks
blocks FOLIO-329 Improve guides and scripts (e.g. Dock... Open
blocks STRIPES-7 Okapi Console facilities for deployin... Closed
is blocked by STRIPES-20 The *Okapi Tenants* tab is broken: "U... Closed
is blocked by STRIPES-27 POST /apis/patrons fails with 404 Not... Closed
Sprint:

 Description   

Part of FOLIO-329 Open



 Comments   
Comment by Mike Taylor [ 20/Sep/16 ]

Not complete yet, but an in-progress document can be found at https://github.com/folio-org/stripes-experiments/blob/master/okapi-console/testing-the-circulation-module.md

Comment by Mike Taylor [ 21/Sep/16 ]

This is coming along. The most recent version of the document is here:
https://github.com/folio-org/stripes-experiments/blob/mike/okapi-console/testing-the-circulation-module.md

(I am not committing across from mike to master at the moment, because master is in an odd state. Once that is resolved, it should be trivial to merge mike back in.)

At present, I am stalled on what seems to be a problem with the Okapi Console itself. Once it is up and running, as described in the linked document, the FOLIO!, Trivial, Okapi Health and Health Connected tabs all seem to work OK. Trivial Okapi doesn't seem work, but that's OK. However, as soon as you go to the Okapi Tenants tab, it fails with a JS console message "Uncaught TypeError: Cannot read property 'map' of null at TenantList.js:15" – and, much worse, the UI is thereby put into a state where it's no longer possible to go back to any of the working tabs: the JS console reports "UncaughtTypeError: Cannot read property 'getHostNode' of null at ReactReconciler.js:64".

So there are two issues here: first, that Okapi Tenants doesn't work; second (and worse) that it breaks the whole UI.

Come to think of it, I should file these in their own issues.

Comment by Mike Taylor [ 21/Sep/16 ]

(The Okapi Modules tab looks like it's OK as well, thought I've not tested it in any depth.)

Comment by Mike Taylor [ 22/Sep/16 ]

I guess I will try this using commit d63a920a3337214e4c8d81afb1e5d2ec8886b453 for now – see STRIPES-20 Closed .

Comment by Mike Taylor [ 22/Sep/16 ]

That commit also doesn't work for me. I get as far as adding the module, (Add the circulation module section of the document), but then clicking on [Edit] next to the module in the list gives a blank page. So there is no way to deploy a module that you've added.

I did manage (apparently) to deploy a module by doing it all in a single step in the form – adding the deployment information before hitting the Add module proxy button. But the the Patron UI module didn't work for me (my POST of the new patron was rejected with an HTTP 400, "No such Tenant tenant-id") and I don't know whether that's broken code or a failure to deploy correctly.

So I am going to commit the minor changes I have made to the document today, then defer this until Niels-Erik's return and the appearance of a working `master` branch.

Comment by Mike Taylor [ 26/Sep/16 ]

Information on oddities to be worked around are now at the end of the in-progress document:
https://github.com/folio-org/stripes-experiments/blob/mike/okapi-console/testing-the-circulation-module.md#appendix-temporary-oddities

Comment by Mike Taylor [ 30/Sep/16 ]

With STRIPES-27 Closed now resolved (it was pilot-error on my part) and the document completed and correct – see https://github.com/folio-org/stripes-experiments/blob/master/okapi-console/testing-the-circulation-module.md#add-the-circulation-module – we can finally consider this complete! Glory be!

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