southpaw
(Southpaw)
11 maart 2019 om 02:29
1
When I try to take bulk actions on search results, the checkboxes vanish every time I hit the bottom of the page and new topics are loaded.
Steps to reproduce:
Perform a search that will return more than 50 results.
Click the button to select individual topics.
Scroll down to the bottom of the search results so that additional topics load.
Observe that the checkboxes vanish, requiring you to start the selection task anew.
By contrast, when taking bulk action on a topic list in a Category, the checkboxes are preserved as new content is loaded at the bottom of the page.
3 likes
Stephen
(Stephen)
11 maart 2019 om 05:56
3
venarius
(Tim Lange)
11 maart 2019 om 07:31
4
Has probably something to do with the loadMore() function in the full-page-search.js.es6 controller calling _search(), in which there is this.set("bulkSelectEnabled", false);
It should probably keep its state when page is greater than 1.
Would love to do a PR!
Edit: PR is open
master ā venarius:full-search-bulk-select-fix
merged 03:33PM - 11 Mar 19 UTC
When more than 50 results were found on full page search and more results were l⦠oaded while in bulk select mode, the checkboxes would vanish and bulk select mode would turn off. This has been fixed.
Resolves: https://meta.discourse.org/t/bulk-actions-in-search-results-checkboxes-vanish-as-new-content-loads/111235
6 likes
This is kind of an unusual scenario. You need to take action on more than 50 search results at once?
southpaw
(Southpaw)
11 maart 2019 om 12:16
6
Yes. I wouldnāt have stumbled upon the issue had I not needed to take action on a large number of search results.
I donāt need to do it frequently, but when I do need it, it would be nice if it worked the same way as the bulk actions in the Category list.
2 likes
sam
(Sam Saffron)
12 maart 2019 om 01:54
7
Cool, thanks for the fix @venarius I just deployed it to your site @southpaw and it should be live in 20 mins.
Its not 100% perfect but we no longer losing state which was the big bug here.
6 likes
southpaw
(Southpaw)
12 maart 2019 om 02:40
8
Thanks for the quick action to get this solved!
sam:
Its not 100% perfect
Iām not sure what 100% perfect would look like, but this fix is good!
2 likes
sam
(Sam Saffron)
12 maart 2019 om 03:26
9
I was being a bit vague⦠we donāt plan to gold plate this, however⦠if we were to gold plate itā¦
User clicks āselect allā
We detect not everything is loaded, we display something like this (in a modal)
I think its totally fair for me to explain this thing, but yeah we will not be taking pull requests on this rare functionality quite yet.
5 likes
sam
(Sam Saffron)
gesloten
13 maart 2019 om 07:00
10
This topic was automatically closed after 29 hours. New replies are no longer allowed.