-
Notifications
You must be signed in to change notification settings - Fork 14
[RAINCATCH-1168] Add search handler for api #95
Conversation
const page = defaultPaginationEngine.buildRequestFromQuery(req.query); | ||
let filter = {}; | ||
if (req.query.filter) { | ||
try { |
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.
[Performance] Avoid long try catch
@@ -117,6 +150,8 @@ export class ApiController<T> { | |||
router.route('/') | |||
.get(this.buildExpressHandler(this.listHandler)) | |||
.post(this.buildExpressHandler(this.postHandler)); | |||
router.route('/search') |
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.
Let's document this as well.
Changes Unknown when pulling dd22446 on JameelB:RAINCATCH-1168 into ** on feedhenry-raincatcher:master**. |
1 similar comment
Changes Unknown when pulling dd22446 on JameelB:RAINCATCH-1168 into ** on feedhenry-raincatcher:master**. |
cloud/wfm-rest-api/README.md
Outdated
@@ -109,6 +109,16 @@ Where `:objectId` is an `id` field of the object. | |||
|
|||
Where `:objectId` is an `id` field of the object. | |||
|
|||
### Search for objects | |||
|
|||
Retrieves a list of objects that satisfies a query. |
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.
that matches user query. Satisfies suggest equality. We using LIKE
(wildcard) matching
Changes Unknown when pulling 4af8ff8 on JameelB:RAINCATCH-1168 into ** on feedhenry-raincatcher:master**. |
1 similar comment
Changes Unknown when pulling 4af8ff8 on JameelB:RAINCATCH-1168 into ** on feedhenry-raincatcher:master**. |
4af8ff8
to
fa205af
Compare
Changes Unknown when pulling fa205af on JameelB:RAINCATCH-1168 into ** on feedhenry-raincatcher:master**. |
fa205af
to
6437f4c
Compare
Changes Unknown when pulling 6437f4c on JameelB:RAINCATCH-1168 into ** on feedhenry-raincatcher:master**. |
1 similar comment
Changes Unknown when pulling 6437f4c on JameelB:RAINCATCH-1168 into ** on feedhenry-raincatcher:master**. |
Description
Ensure that the filter section in portal don't just operate on local data.
Progress
/search
to routesAdditional Notes
Related JIRA - https://issues.jboss.org/browse/RAINCATCH-1168