Skip to content

can't search by parent_id #33

Open

Description

@omartrek

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

Activity

  1. valeriozhang commented on Apr 26, 2021

    @valeriozhang

    bump

  2. DanKaranja commented on May 4, 2021

    @DanKaranja

    bump

  3. rossrossp commented on Aug 11, 2024

    @rossrossp

    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?

  4. ramonski commented on Aug 14, 2024

    @ramonski
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions