Skip to content

Conversation

@shivamka1
Copy link
Collaborator

Fixes #2261

@shivamka1 shivamka1 marked this pull request as ready for review October 28, 2025 09:26
Copy link
Collaborator

@ljeub-pometry ljeub-pometry left a comment

Choose a reason for hiding this comment

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

Rearchitect Windowed such that it wraps everything which should simplify a lot of the code and also make it much easier to extend to Layered


#[staticmethod]
fn window(py_start: Bound<PyAny>, py_end: Bound<PyAny>) -> PyResult<PyEdgeWindow> {
let s = py_into_millis(&py_start)?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

there should already be support for doing this, it might be TimeIndexComponent

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Replace this with TimeIndexComponent when merged from master.


#[pyclass(frozen, name = "NodeWindow", module = "raphtory.filter")]
#[derive(Clone)]
pub struct PyNodeWindow(pub Windowed<NodeFilter>);
Copy link
Collaborator

Choose a reason for hiding this comment

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

PyNodeWindow/EdgeWindow/ExplodedEdgeWindow can probably be replaced with dynamic dispatch eventually but it is a bit more tricky

Copy link
Collaborator

@ljeub-pometry ljeub-pometry left a comment

Choose a reason for hiding this comment

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

almost there, just some minor things to fix

@shivamka1 shivamka1 mentioned this pull request Nov 5, 2025
@shivamka1 shivamka1 merged commit c551455 into features/gql_apis Nov 5, 2025
1 of 2 checks passed
@shivamka1 shivamka1 deleted the features/window_filter branch November 5, 2025 14:49
shivamka1 added a commit that referenced this pull request Nov 6, 2025
* impl nodes select filtering in gql

* change semantics of filters in gql, add missing filter apis in edges, fix all tests

* add more edge filter tests

* add filtering to path from node, add tests

* fix apply views

* rename filter-iter to select

* add select as args

* impl window filter (#2359)

* impl window filter

* impl window filter in python, add tests

* impl gql window filter, add tests

* ref

* impl review suggestions

* fixes

* fix py and gql

* add review suggestions
shivamka1 added a commit that referenced this pull request Nov 6, 2025
* redesign, refactor property filters

* takes a reference

* rework validation

* fix arbitrary list, fix tests

* merge python traits, fix tests, add more validations

* rework gql filtering apis, fix tests

* add review suggestions

* Features/gql apis (#2350)

* impl nodes select filtering in gql

* change semantics of filters in gql, add missing filter apis in edges, fix all tests

* add more edge filter tests

* add filtering to path from node, add tests

* fix apply views

* rename filter-iter to select

* add select as args

* impl window filter (#2359)

* impl window filter

* impl window filter in python, add tests

* impl gql window filter, add tests

* ref

* impl review suggestions

* fixes

* fix py and gql

* add review suggestions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants