Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

ordering="slug" does not work for tests.short_name #107

Open
chaws opened this issue Jan 13, 2021 · 2 comments
Open

ordering="slug" does not work for tests.short_name #107

chaws opened this issue Jan 13, 2021 · 2 comments

Comments

@chaws
Copy link
Collaborator

chaws commented Jan 13, 2021

Extracted from Linaro/squad#952

From my discussion with @chaws

build.tests(environment=e.id,suite=s.id,ordering="short_name")

does not appear to be working for the ordering component. it appears to be ordering by id.

Is this the issue? https://github.com/Linaro/squad/blob/9472d5e337a38488d1fb44c986deec7e8a54d6e7/squad/api/rest.py#L1161 only the id is there and thus can't be filtered on other things?

@chaws
Copy link
Collaborator Author

chaws commented Jan 13, 2021

From squad:

I looked at the code and it won't be that easy to via api. Tests are complicated as they're are just too much and we need to order them by id so we can make cursor pagination.

I'll make a generic function in squad-client so you can call it on demand, does that sound good?

@jscook2345
Copy link
Contributor

I gave @chaws some of my sorting snippets and he may include them in the library.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants