Update GET collections/{}/optimizations#7946
Merged
Conversation
21a2231 to
8caaebe
Compare
Merged
8caaebe to
8385d8c
Compare
ongoing and completed into a single listGET collections/{}/optimizations
timvisee
approved these changes
Jan 26, 2026
Member
timvisee
left a comment
There was a problem hiding this comment.
👍
The parameterization makes it feel like we're inventing some kind of GraphQL here. Though I believe it is well placed here, and I don't have a better suggestion. I understand the benefit for web UI if this endpoint is being refreshed a lot.
generall
approved these changes
Jan 26, 2026
timvisee
approved these changes
Jan 26, 2026
IvanPleshkov
pushed a commit
that referenced
this pull request
Jan 27, 2026
6 tasks
generall
pushed a commit
that referenced
this pull request
Feb 9, 2026
KShivendu
pushed a commit
that referenced
this pull request
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR rehauls
/collections/{}/optimizationsendpoint.summary(replaces old summary inpending)running(wasongoing) - listqueued(new) - list, predicted byOptimizerPlannercompleted- listidle_segments(new) - list of good segments that don't require optimizationsrunning/completedlists were containing nakedProgressTrees.uuids are included to let the UI refresh currently selected progress tree.?withto control whether to include new optional fields.?with=queued,completed,idlle_segments.runningis not optional: if we need just a single number of current optimizations, then we can add this number it toGET /collections/{}endpoint.?completed=trueis replaced with?with=completed.OptimizationSegmentInfo(idle_segments[],queued[].segments[],running[].segments[]):The UI might visualize the collection as a bunch of rectangles; with color/size based on the status/points count. (perhaps it might look like the old defrag) UUIDs can help keep ordering/transitions.
Example output: