Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

refactor(imaging): use react query instead of redux to fetch imaging data #2355

Merged
merged 7 commits into from
Sep 2, 2020

Conversation

jackcmeyer
Copy link
Member

Fixes #2340

Changes proposed in this pull request:

  • adds useImagingRequest, useImagingSearch, and useRequestImaging
  • refactors code to use this
  • removes redux when possible

@jackcmeyer jackcmeyer added 🚀enhancement an issue/pull request that adds a feature to the application imaging labels Sep 1, 2020
@jackcmeyer jackcmeyer added this to the v2.0 milestone Sep 1, 2020
@jackcmeyer jackcmeyer added this to In progress in Version 2.0 via automation Sep 1, 2020
@gitpod-io
Copy link

gitpod-io bot commented Sep 1, 2020

@vercel
Copy link

vercel bot commented Sep 1, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hospitalrun/hospitalrun-frontend/bw16im2un
✅ Preview: https://hospitalrun-frontend-git-imaging-react-query.hospitalrun.vercel.app

import Imaging from '../../../shared/model/Imaging'

describe('imaging request validator', () => {
it('should validate the required fields apart of an incident', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a train smash, but may we fix test description, "are part of an incident" instead of "apart of an incident"?


await ImagingRepository.save({
...request,
requestedBy: 'test',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not meant to be the actual user?

Copy link
Contributor

@blestab blestab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Just added a few comments which may or may not warrant additional changes.

Copy link
Member

@fox1t fox1t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fox1t fox1t merged commit 1cf716c into master Sep 2, 2020
Version 2.0 automation moved this from In progress to Done Sep 2, 2020
@fox1t fox1t deleted the imaging-react-query branch September 2, 2020 13:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🚀enhancement an issue/pull request that adds a feature to the application imaging
Projects
Version 2.0
  
Done
Development

Successfully merging this pull request may close these issues.

Refactor Imaging module to use react query instead of redux
3 participants