Skip to content
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

SearchKit - Allow random sorting (Fixes dev/report#75) #21177

Merged
merged 1 commit into from
Aug 30, 2021

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Aug 18, 2021

Overview

Allows search displays to be sorted in random order.

https://lab.civicrm.org/dev/report/-/issues/75

image

@civibot
Copy link

civibot bot commented Aug 18, 2021

(Standard links)

@civibot civibot bot added the master label Aug 18, 2021
@colemanw colemanw changed the title SearchKit - Allow random sorting SearchKit - Allow random sorting (Fixes dev/report#75) Aug 18, 2021
@seamuslee001
Copy link
Contributor

@colemanw just wondering if its possible to get a test on this maybe just testing that RAND() gets added sensibly to the query?

@colemanw
Copy link
Member Author

Ok added a test @seamuslee001

@eileenmcnaughton
Copy link
Contributor

@colemanw I just tested this & it seems fine. One thing - I hadn't spotted that sort box before - is it new? Or did I just miss it. I feel like it should be a multiselect rather than single select

This is mergeable once you have responded (one way or another) to ^^

@colemanw
Copy link
Member Author

It was there already, hidden in plain sight :). And it does allow you to select multiple fields to sort by.

@colemanw colemanw merged commit d66e9cf into civicrm:master Aug 30, 2021
@colemanw colemanw deleted the rand branch August 30, 2021 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants