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

Search returns wrong type of records. #1438

Closed
MatthewDorner opened this issue May 20, 2018 · 1 comment
Closed

Search returns wrong type of records. #1438

MatthewDorner opened this issue May 20, 2018 · 1 comment
Labels
🐛bug issue/pull request that documents/fixes a bug

Comments

@MatthewDorner
Copy link
Contributor

Expected behavior:
Patient search returns patients, Inventory search returns inventory items, etc.

Actual behavior:
Searches return incorrect record types.

Although not exhaustively tested, I found:

  • Inventory: returns wrong type of records in addition to expected records
  • Patient: returns wrong type of records in addition to expected records
  • Medication: returns expected records
  • Billing: returns all invoices if I search "0" but not if I search "i", so I can't figure out what it's searching on, I'd expect it to search on the column with "inv00001" and so on.

This isn't using the test database, just records I entered myself. Not sure if that'd produce different results.

Screenshots (if applicable):
search results

OS and Browser:
Ubuntu 16.04, Chromium

@stukalin stukalin added the 🐛bug issue/pull request that documents/fixes a bug label May 20, 2018
@MatthewDorner
Copy link
Contributor Author

Started looking at this. I think it is the same issue here: pouchdb-community/ember-pouch#168

There was some attempt to fix it but got reverted: pouchdb-community/ember-pouch#194

But seems to work if I use the same solution as in 168 above:
master...MatthewDorner:search-results

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛bug issue/pull request that documents/fixes a bug
Projects
None yet
Development

No branches or pull requests

2 participants