ynput / ayon-backend

Server codebase with API access to AYON
Apache License 2.0
22 stars 17 forks source link

Activity Feed: Filter activities by search query #240

Open Innders opened 5 months ago

Innders commented 5 months ago

Story

I want to search for a specific message or only show messages from a specific author.

Problems

Proposal

We will need to have query filtering like this in many places, tasks, inbox, events. It might be worth getting it write the first time.

martastain commented 5 months ago

In activities, cursor is actually the timestamp, so you can filter it simply using "before": image

As for the users: i assume it would filter activities with that user set as "origin"? do you need more than one user here? (list activities from multiple users at once) or is a single-selection sufficient?

Innders commented 5 months ago

As for the users: i assume it would filter activities with that user set as "origin"? do you need more than one user here? (list activities from multiple users at once) or is a single-selection sufficient?

I would think just one user is enough but in the future I can imagine that searching could be multiple users and excluding users.

dee-ynput commented 1 month ago

Is this still relevant @Innders ? (it looks like somthing you have already solved for the nex filtering)

Innders commented 1 month ago

Still somewhat relevant, my filtering bar only works if all the data is loaded and cannot search for "new" data.