feat: config grid filter in backend & add tests

* chore: add search crate

* chore: add task order test

* chore: enable timeout

* add task crate

* chore: run filter task

* chore: run filter task

* chore: filter rows

* chore: cache filter result

* chore: filter rows when open a grid

* chore: add tests

* test: add number filter test

* test: add checkbox fitler test

* chore: fix test

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Nathan.fooo
2022-11-13 22:23:57 +08:00
committed by GitHub
parent a1e0282df0
commit a0a16cc493
83 changed files with 2293 additions and 1635 deletions

View File

@ -8,20 +8,20 @@ use std::{
task::{Context, Poll},
};
pub fn wrap_future<T, O>(f: T) -> AFFuture<O>
pub fn to_future<T, O>(f: T) -> Fut<O>
where
T: Future<Output = O> + Send + Sync + 'static,
{
AFFuture { fut: Box::pin(f) }
Fut { fut: Box::pin(f) }
}
#[pin_project]
pub struct AFFuture<T> {
pub struct Fut<T> {
#[pin]
pub fut: Pin<Box<dyn Future<Output = T> + Sync + Send>>,
}
impl<T> Future for AFFuture<T>
impl<T> Future for Fut<T>
where
T: Send + Sync,
{

View File

@ -2,7 +2,7 @@ use std::collections::HashMap;
use std::sync::Arc;
pub trait RefCountValue {
fn did_remove(&self);
fn did_remove(&self) {}
}
struct RefCountHandler<T> {