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

Deleted Items will appear in test run list, could we document what property to filter out on. #720

Open
JasonF-BJSS opened this issue Aug 13, 2024 · 0 comments

Comments

@JasonF-BJSS
Copy link

[Enter feedback here]

Deleted test runs appear in the Runs - list API, and there is no documented way to filter these out,

I have found the status is set to 255 when a run is deleted, however this is an assumption and basing API interaction on an un-documented behavior is problematic.

Please would it be possible to update the documentation with an approved method to filter on deleted test runs.

Sources:

Runs List:
https://learn.microsoft.com/en-us/rest/api/azure/devops/test/runs/list?view=azure-devops-rest-7.1&tabs=HTTP

Runs Delete:
https://learn.microsoft.com/en-us/rest/api/azure/devops/test/runs/delete?view=azure-devops-rest-7.1&tabs=HTTP

Current workaround:

    runs = []
    for run in all_runs:
        if not run.state == "255":
            runs.append(run)

    return runs

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

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

1 participant