-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Pipeline metrics are always sorted alphabetically #5215
Comments
/area pipelines |
Any updates on this issue? I'll have to name my metrics Thanks guys |
We are open for contributions, here's frontend development guide: https://github.com/kubeflow/pipelines/tree/master/frontend. And I believe related code to this issue is in pipelines/frontend/src/pages/RunDetails.tsx Line 584 in 45c5c18
|
Hi @Bobgy @ypitrey, a new contributor here looking for a good first issue to work on. Is the ask to simply remove the sorting of metrics or to create a functionality that a user can choose the metrics that show up on the UI?
In addition, I think you're looking for a way to show more than two metrics? Should this be part of this issue? |
Thank you @annajung ! |
#5215 (#5701) * Remove alphabetical sorting of the metrics column Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com> * Fix code format Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com> * Refactor test to use data-testid Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com> * Remove snapshot in favor of text comparison Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com>
#5215 (#5701) * Remove alphabetical sorting of the metrics column Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com> * Fix code format Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com> * Refactor test to use data-testid Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com> * Remove snapshot in favor of text comparison Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com>
#5215 (#5701) * Remove alphabetical sorting of the metrics column Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com> * Fix code format Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com> * Refactor test to use data-testid Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com> * Remove snapshot in favor of text comparison Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com>
/kind bug
I have a pipeline that exposes pipeline metrics following this example. It's working great, but it seems that the metrics always appear sorted alphabetically. I would like to make use of the fact that the first two metrics are displayed next to each run in the run list view, but the two metrics I'm interested in are not the first two in alphabetical order.
Note: I need to expose more than these two metrics, as I am using these metrics to aggregate results across multiple runs.
Am I doing something wrong? Is there a way to not sort the metrics alphabetically?
For context, here is the code I'm using to expose the metrics:
and this is the header row as displayed in the Run Output tab:
which seems to be in alphabetical order. However, if I do:
I get this:
which isn't in alphabetical order. And the two metrics I'm interested in are the first two ones in this list.
Environment:
The text was updated successfully, but these errors were encountered: