Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't search by parent_id #33

Open
MohamadHussein opened this issue May 13, 2020 · 4 comments
Open

can't search by parent_id #33

MohamadHussein opened this issue May 13, 2020 · 4 comments

Comments

@MohamadHussein
Copy link

MohamadHussein commented May 13, 2020

Steps to reproduce

using the api to get the arreport of a certain parent_id doesn't work
/senaite/@@API/senaite/v1/search?portal_type=ARReport&parent_id=PL-0001&complete=1

Current behavior

returns all the Analysis Report objects

Expected behavior

it should return only the Analysis Report with the specified parent_id

@valeriozhang
Copy link

bump

1 similar comment
@DanKaranja
Copy link

bump

@rossrossp
Copy link

Can somebody confirm if this is a bug or intended behaviour?
In general, is there filtering available on the API? For instance, how can I get all samples in a batch, or all analyses for a sample?

@ramonski
Copy link
Contributor

Currently you can filter by parent_path with the physical path to the parent object, or the parent_uid, also see https://senaitejsonapi.readthedocs.io/ for examples.

If you want to filter by parent_id or any other criteria, you must add an index to the respective catalog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants