Skip to content

Unused filters shouldn't be sent to Beacon services #138

@svituz

Description

@svituz

Describe your problem.
When searching for disease, the Beacon service receives a request also with other parameters.
For example, if I search for Orphacode 2593, the portal sends the following request:

{
    "meta": {"apiVersion": "v0.2"}, 
    "query": {
        "filters": [{
            "id": ["ordo:Orphanet_2593"]
        }, {
            "id": "NCIT_C28421", "operator": "=", "value": ["NCIT_C16576", "NCIT_C20197", "NCIT_C124294", "NCIT_C17998"]
        }, {
            "id": "NCIT_C83164", "operator": ">=", "value": "0"
        }, {
            "id": "NCIT_C83164", "operator": "<=", "value": "100"
        }, {
            "id": "NCIT_C124353", "operator": ">=", "value": "0"
        }, {
            "id": "NCIT_C124353", "operator": "<=", "value": "100"
        }, {
            "id": "NCIT_C156420", "operator": ">=", "value": "0"
        }, {
            "id": "NCIT_C156420", "operator": "<=", "value": "100"
        }]
    }
}

This is counterintuitive and most of all may lead to wrong results or no results

If it is a bug name steps to reproduce
This bug doesn't show anything wrong in the frontend except for no resu

Steps to reproduce the behavior:

  1. Go to https://vp.ejprarediseases.org/discovery
  2. Add an orphacode in the "Search" text box
  3. The query sent to beacons contains also the other filters (ResourceTypes, Sex, Country etccc)

If it is a bug complete the following information:

  • Version: [Production]
  • OS: [Linux]
  • Browser: [Chrome]

Describe the solution you'd like
I'd like the Portal to send only the filters used by the user

Metadata

Metadata

Assignees

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