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

Listing applications does not sort correctly #478

Open
fdewas-aneo opened this issue Feb 14, 2024 · 1 comment
Open

Listing applications does not sort correctly #478

fdewas-aneo opened this issue Feb 14, 2024 · 1 comment

Comments

@fdewas-aneo
Copy link
Contributor

fdewas-aneo commented Feb 14, 2024

When listing the applications, with the sortField set to the application name, applications with the same name (but different versions) are not returned in the same order at each call.

This unexpected behaviour might be present elsewhere (for example with sessions and tasks, which have the applicationName field).

Versions:

infra=0.2.2
core=0.20.5
worker=0.14.1
samples=v2.17.0

Steps to reproduce:

  • Run a test sample (for example, Unified API)
  • Change the version of the same test sample
  • Run again the test sample with the new version
  • list applications with the bellow request:
{
  page: 0,
  filters: { }, 
  pageSize: 10,
  sort: { 
    direction: SortDirection.SORT_DIRECTION_ASC, // or 1
    fields: [{
      applicationField: {
        field: ApplicationRawEnumField.APPLICATION_RAW_ENUM_FIELD_NAME // or 1
      }
    }]
  }
}

How it looks in GUI:
imageimage

@aneojgurhem
Copy link
Contributor

aneojgurhem commented Feb 15, 2024

Hello,
fields is a list. Can you add version in it and see if it is better ?

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

No branches or pull requests

2 participants