-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature: Search agents by name, acronym and identifiers #86
Feature: Search agents by name, acronym and identifiers #86
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## development #86 +/- ##
===============================================
+ Coverage 71.26% 71.66% +0.40%
===============================================
Files 67 67
Lines 3508 3653 +145
===============================================
+ Hits 2500 2618 +118
- Misses 1008 1035 +27
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you added query
parameter to search by acronym
, name
and identifier
; but they are already implemented in the line 9, with the function apply_filters
or if not, need to put there.
Filters than in the line 9 are related to when we pass them like this: in our case we are passing a search query that can be a name, acronym, orcid .. and I didn't implement it inside apply_filters to not break other features that use the old approach |
@Bilelkihal here, what is the difference between |
The difference is in the UI, The second case |
In the current UI we search by acronym and name using that existent interface, like this |
No this will not work Let's say I seach for 1234123412341234 I'm passing this as a name too, and the intersection between agents with the name 123... and agents with identifier 123... will lead to an empty array always |
it is not an intersection but a union, as done with the query parameter. |
Finally I used the endpoint '/search/agents' which is indexed with a ranking and seach for all textual attributes of the agent |
Ok make sense, and stay consistent with what we have right now. |
Related issues:
agroportal/project-management#465
agroportal/project-management#571
Related UI PR:
ontoportal-lirmm/bioportal_web_ui#703