Skip to content

(refactor)Replace usages of '/ws/rest/v1/' with restBaseUrl #229

(refactor)Replace usages of '/ws/rest/v1/' with restBaseUrl

(refactor)Replace usages of '/ws/rest/v1/' with restBaseUrl #229

Triggered via pull request February 27, 2024 11:54
Status Failure
Total duration 32s
Artifacts

node.js.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 2 warnings
build
Error: Input required and not supplied: server-token
build: src/patient-chart/patient-laboratory-order-results.resource.ts#L1
Replace `·formatDate,·openmrsFetch,·restBaseUrl,·useConfig·` with `⏎··formatDate,⏎··openmrsFetch,⏎··restBaseUrl,⏎··useConfig,⏎`
build: src/patient-chart/results-summary/results/results.resource.ts#L1
Replace `·FetchResponse,·openmrsFetch,·restBaseUrl,·useConfig·` with `⏎··FetchResponse,⏎··openmrsFetch,⏎··restBaseUrl,⏎··useConfig,⏎`
build: src/queue-list/lab-dialogs/add-to-worklist-dialog.resource.ts#L1
Replace `·FetchResponse,·openmrsFetch,·restBaseUrl,·useConfig·` with `⏎··FetchResponse,⏎··openmrsFetch,⏎··restBaseUrl,⏎··useConfig,⏎`
build: src/queue-list/lab-tests/lab-tests.resource.ts#L1
Replace `·FetchResponse,·openmrsFetch,·restBaseUrl,·useConfig·` with `⏎··FetchResponse,⏎··openmrsFetch,⏎··restBaseUrl,⏎··useConfig,⏎`
build: src/queue-list/laboratory-patient-list.resource.ts#L5
Replace `·formatDate,·openmrsFetch,·parseDate,·restBaseUrl·` with `⏎··formatDate,⏎··openmrsFetch,⏎··parseDate,⏎··restBaseUrl,⏎`
build: src/reject-order/reject-order-dialog.resource.ts#L1
Replace `·FetchResponse,·openmrsFetch,·restBaseUrl,·useConfig·` with `⏎··FetchResponse,⏎··openmrsFetch,⏎··restBaseUrl,⏎··useConfig,⏎`
build: src/review-list/dialog/review-item.resource.ts#L1
Replace `·FetchResponse,·openmrsFetch,·restBaseUrl,·useConfig·` with `⏎··FetchResponse,⏎··openmrsFetch,⏎··restBaseUrl,⏎··useConfig,⏎`
build: src/summary-tiles/laboratory-summary.resource.tsx#L3
Replace `·FetchResponse,·openmrsFetch,·restBaseUrl·` with `⏎··FetchResponse,⏎··openmrsFetch,⏎··restBaseUrl,⏎`
build
lint: command (/home/runner/work/openmrs-esm-laboratory/openmrs-esm-laboratory/) /tmp/xfs-2d2a5f76/yarn run lint exited (1)
build
Process completed with exit code 1.
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3, felixmosh/turborepo-gh-artifacts@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build: src/work-list/work-list.component.tsx#L120
The 'ResultsOrder' function makes the dependencies of useMemo Hook (at line 193) change on every render. Move it inside the useMemo callback. Alternatively, wrap the definition of 'ResultsOrder' in its own useCallback() Hook