Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support searching and sorting experiments via API and sorting on UI #280

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Datron
Copy link
Collaborator

@Datron Datron commented Nov 8, 2024

Problem

It is difficult to find experiments on different filters and sort them

Solution

  • Provide an API interface that allows a user to search and sort experiments based on multiple parameters.
  • Add support in the UI to sort columns, and in experiments listing add the ability to sort on last_modified_at and created_at

PS: more frontend changes are to be expected to support searching. That is NOT present in this PR.

Screen.Recording.2024-11-08.at.2.35.02.PM.mov

@Datron Datron requested a review from a team as a code owner November 8, 2024 09:08

impl Default for SortBy {
fn default() -> Self {
Self::Desc
Copy link
Collaborator

Choose a reason for hiding this comment

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

I feel default should be Asc

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@pratikmishra356 you always want to see the latest data, especially if you've been using Superposition for years.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Datron but it can differ based on entity , position/weight needs to be sort in asc order

}
if let Some(ref context_search) = filters.context {
builder = builder.filter(
sql::<Bool>("context::text LIKE ")
Copy link
Collaborator

Choose a reason for hiding this comment

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

are we type casting here ? context

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes we are, this just lets me modify the context type so I can use LIKE on it. It's currently an experiment to see if this is a viable way to search through contexts

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