Closed (fixed)
Project:
Search API Saved Searches
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Mar 2018 at 16:10 UTC
Updated:
14 Aug 2021 at 20:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyComment #3
drunken monkeyComment #4
dakwamineHello. :) Just wanted to say that it is indeed an interesting little feature, especially in edge cases such as when a large data set has been recently imported and a lot of those data matches the search criteria. For now, we have added a hard limit in code, but a config would have been useful.
Comment #5
drunken monkeyI realized that there are actually two facets to this: The maximum number of results retrieved from the server (too many might overload either the search or web server) and the maximum number of results sent to the user (too many might make the e-mail unreadable).
In case the new results are determined based on some date field, the two are actually the same, but in case of “Determine via result ID” we actually need to retrieve (potentially a lot) more results from the server than the new ones we report to the user. So, for this latter case, it would probably be best to provide two separate options to admins.
This is now implemented in the attached patch. Would be great if someone could test/review, especially regarding the UI. (Though that, on the other hand, is easiest to change later on. (Translators might disagree, however.))
What we could also think about is some way to detect if not all results have been sent to the user (i.e., number of result items is less than the result count on the search results) and allow admins to add an additional line to the e-mail in this case. But probably a follow-up issue.
Comment #7
alesbencina commentedthanks for the patch!
I've tested it and looks ok (was on dev branch)
Comment #8
drunken monkeyHad another positive feedback directly, just need to fix tests. If the attached passes, I’ll commit.
Comment #10
drunken monkeyCommitted.
Thanks a lot for testing!