Closed duncancasemore closed 3 years ago
[x] I can select the Search instances action
[x] When I select the model, I see this shows in lower case PLURAL in the action title above and in the recipe viewer
[x] I see the fields in the order specified by the Applaud property order (not alphabetical)
[x] I see that I can specify the max results. Where not specified, this defaults to 10
[x] I cannot specify a maximum that is greater than 200
[x] If the Applaud API returns a paginated set of results that I do not neglect subsequent pages up to the maximum results. For example, if the Applaud API page is 10 and my maximum is 50, I will need to iterate over 5 pages of results (probably easier to set the maximum as the API page size if possible)
[x] I can specify the sort properties together with ascending or descending
[x] I can specify multiple sort properties. These are all sorted by either ascending or all sorted by either descending (I cannot have 1 ascending and another descending)
[x] I can select free-text properties in the sort list and these work as expected
[x] I can select number properties in the sort list and these work as expected
[x] I can select boolean properties in the sort list and these work as expected
[x] I can select date properties in the sort list and these work as expected
[x] I can select date/time properties in the sort list and these work as expected
[x] I can select file properties in the sort list and these work as expected (sorted by file id)
[x] I can select user properties in the sort list and these work as expected (sorted by user id)
[x] I can select email properties in the sort list and these work as expected
[x] I can select URL properties in the sort list and these work as expected
[x] I can select lookup properties in the sort list and these work as expected (sorted by lookup id)
[x] I can select foreign key properties in the sort list and these work as expected (sorted by foreign key id)
[x] I can select icon properties in the sort list and these work as expected
[x] I cannot select date range or geopoint properties in the sort list
[x] I see that when this action fires it searches the data in Applaud (GET) by using the given criteria
[x] I do not have to enter any search criteria; this simply retrieves all instances up to the max results
[x] I see that the search results are available as a list datapill in later actions, with detail pills for each property of the item
[x] I see that I can use the search results count as a datapill ** Here the value of count is the number of records fetched, not the number of records present in the model.
[ ] I can select the model. This has the same behavior as #11 Unlike other actions, in search instance action user model can also be selected.
[ ] Regarding AC 9
If the Applaud API returns a paginated set of results that I do not neglect subsequent pages up to the maximum results. For example, if the Applaud API page is 10 and my maximum is 50, I will need to iterate over 5 pages of results (probably easier to set the maximum as the API page size if possible)
There is no pagination in Applaud API if we are setting the limit on the number of records fetched(10 is default per AC 7).
Search instance action is configured in Applaud Connector2
As a part of the Search action as per AC 25, other than date-time range fields and geo point fields, all other fields can be used for search and sort instances.
Now that lookups are configured, search action should also fetch records filtered/sorted by lookup values. But in the lookup if
allow multiple is set to true, search action is not fetching results(getting error response from cloud).
https://dev-workato-com.applaudhcm.com/api/custom/tests?filter[where][statusId]=6006a82c589667801c2d6e79&filter[where][employeeTypeIds][inq]=6007d80f01a9448a0c26171e&filter[where][employeeTypeIds][inq]=6007d80f01a9448a0c26171f
On trying the same using filter {"getFrom":"mongo"} Cloud is returning the results.
So there are 2 Options
@GangamRitesh can we include lookup properties on search when allow multiple is unticked but hide it when it's ticked?
Yes @duncancasemore It is possible
@GangamRitesh Do we have tracking git for lookups filter not working when multiple values are allowed?
Summary
Acceptance Criteria
Wireframes and mockups
Search action
Notes
None
Developer Testing
Requestor: leave this section blank Developer: complete this section during commit/pull request
Positive testing:
Add all the things that you have checked whilst completing this story here, it should be written in a non-technical way, and a lot of this can probably be taken from the acceptance criteria, here are two different examples:
Negative testing:
Here you list the things you have checked where your code needs to show an error, handle unusual/bad input/config gracefully, or may impact separate features that use or depend on the same code. Pause and think -- they may not be obvious! Examples:
e2e test links and description: