Skip to content

Add filter and sort in data explorer#1490

Open
dwrth wants to merge 5 commits intoaws:mainfrom
dwrth:feat/data-explorer-filter-sort
Open

Add filter and sort in data explorer#1490
dwrth wants to merge 5 commits intoaws:mainfrom
dwrth:feat/data-explorer-filter-sort

Conversation

@dwrth
Copy link
Contributor

@dwrth dwrth commented Jan 29, 2026

Description

This PR adds filtering and sorting to Data Explorer.

At the moment only for Gremlin.

Related Issues

Addresses #1408

Check List

  • I confirm that my contribution is made under the terms of the Apache 2.0
    license.
  • I have run pnpm checks to ensure code compiles and meets standards.
  • I have run pnpm test to check if all tests are passing.
  • I have covered new added functionality with unit tests if necessary.
  • I have added an entry in the Changelog.md.

@kmcginnes
Copy link
Collaborator

In the original issue #1408 you asked for some guidance and I said I'd provide my general plan for implementing this feature. At the very least, I'd split this in to two parts detailed below. As for the UI, something similar to what exists in the data view in the graph explorer view.

Update keyword search to allow for multiple filters

The keyword search query has almost everything needed to make filtering work. But it only has inputs for a single filter, since that was all that was needed for the search sidebar UI.

The expand neighbors query allows for multiple filters to be applied, so I was going to use that as an example of how to apply multiple filters in each query language. The keyword search and expand neighbors queries are fairly similar, so the translation shouldn't be too difficult.

Update keyword search to allow for sorting by a single property

Sorting can have some pretty large impacts on the performance of a query, so this part of the feature may not even make it in. But if the default state performance is unaffected, and the only performance hit is when the user chooses to sort, then I think it is ok.

Each query language has slightly different sorting keywords, but usually some form of order by. I think I've removed all examples of sorting from the project now. There used to be some queries that did sorting, but it always caused issues.

So the sorting must be optional in the keyword search parameters.

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.

2 participants

Comments