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

Data issues with deletions #383

Closed
3 tasks done
tangollama opened this issue Mar 19, 2016 · 1 comment
Closed
3 tasks done

Data issues with deletions #383

tangollama opened this issue Mar 19, 2016 · 1 comment
Labels
help wanted indicates that an issue is open for contributions

Comments

@tangollama
Copy link
Member

tangollama commented Mar 19, 2016

My system has a patient document that is completely deleted. That delete didn't cascade to things like the imaging request queue. As a result, my imaging index route isn't rendering. We need several changes:

Expected behavior:
Imaging index route renders, regardless of data issues.

Actual behavior:
Error.

Console is producing the following error message.

Error while processing route: imaging.index Assertion Failed: You looked up the 'patient' relationship on a 'imaging' with id 6C16C18A-1FCE-35A0-9777-47DD2F55C957 but some of the associated records were not loaded. Either make sure they are all loaded together with the parent record, or specify that the relationship is async (DS.belongsTo({ async: true })) Error: Assertion Failed: You looked up the 'patient' relationship on a 'imaging' with id 6C16C18A-1FCE-35A0-9777-47DD2F55C957 but some of the associated records were not loaded. Either make sure they are all loaded together with the parent record, or specify that the relationship is async (DS.belongsTo({ async: true }))

Steps to reproduce:
Enter a patient, enter a visit and imaging request. Don't fulfill it. Delete the patient. Go back to the imaging index route. Error!!

@tangollama tangollama added help wanted indicates that an issue is open for contributions Data integrity labels Mar 19, 2016
@jkleinsc
Copy link
Member

Closing as all referenced issues have been resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted indicates that an issue is open for contributions
Projects
None yet
Development

No branches or pull requests

2 participants