refactor `src/useOkapiKy.js` to read a timeout from stripes.config.js

Description

Summary: Refactor src/useOkapiKy.js to read an optional config value from stripes.config.js such as queryTimeout to allow it to be tenant-configurable at UI build time when the bundle is built.

NB: It may be worthwhile to implement this work alongside STCOR-615 given the similarity of the tasks.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Zak Burke August 3, 2022 at 10:50 AM

Suggested implementation: write a useQueryTimeout hook that reads from mod-configuration if it finds a value (i.e. run-time config), else from stripes.config.js (build-time configuration), else returns a constant. 

Details

Assignee

Reporter

Priority

Development Team

None

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created May 10, 2022 at 1:34 PM
Updated September 21, 2022 at 12:21 PM
TestRail: Cases
TestRail: Runs