Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Implement pagination, order by and groups in search #350

Merged
merged 8 commits into from
Nov 5, 2015

Conversation

erikjohnston
Copy link
Member

No description provided.

room_ids, search_term, keys
)
if batch_group == "room_id":
room_ids = room_ids & {batch_group_key}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not room_ids.add(batch_group_key)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. Cause & mean intersection.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe room_ids.intersection_update({batch_group_key}) ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not room_ids &= batch_group_key ? :p

@NegativeMjark
Copy link
Contributor

LGTM modulo not really knowing what the API is supposed to look like.

erikjohnston added a commit that referenced this pull request Nov 5, 2015
Implement pagination, order by and groups in search
@erikjohnston erikjohnston merged commit 6be1b4b into develop Nov 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants