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

Issue when retrieving the information from inventory #163

Closed
waldirio opened this issue Aug 8, 2022 · 1 comment · Fixed by #164
Closed

Issue when retrieving the information from inventory #163

waldirio opened this issue Aug 8, 2022 · 1 comment · Fixed by #164
Assignees
Labels
bug Something isn't working

Comments

@waldirio
Copy link
Contributor

waldirio commented Aug 8, 2022

By default, we are doing a simple API query with no sort. However, after some pages, we can see some duplicate information. Doing the same API request, but adding the sort, this behavior just vanishes.

@waldirio waldirio added the bug Something isn't working label Aug 8, 2022
@waldirio waldirio self-assigned this Aug 8, 2022
@waldirio
Copy link
Contributor Author

It was added the order_by in the call, fixing this weird behavior.

        url = (
            "https://console.redhat.com/api/inventory/v1/hosts?per_page="
            + str(conf.ITEMS_PER_PAGE)
            + "&page="
            + str(page)
            + "&order_by=display_name"
        )

An internal issue will be filled to check it internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant