Filter by branch on server side