Hello, I’m encountering an issue when trying to ge...
# community-support
c
Hello, I’m encountering an issue when trying to generate a report for a specific invocation ID. The command
edr report --select invocation_id:XXXXXXXXXXXX
does not work for historical data tests: the report shows 0 tests, even though the test results are present in the
test_result_rows
and
elementary_test_results
tables. This command only works correctly for the most recent test invocation.
n
Hey @Corentin Fanton, You’re right: when using
edr report --select invocation_id:XXXX
, the report only shows tests when that invocation falls within the default data window we load (last 7 days and the most recent invocations per test). Are you trying to load earlier than 7 days?
c
Hello Naya thanks your answer, yes i have tried with recent data earlier than 7 days
I have found the bug
get_test_results()
in the TestsAPI(APIClient) class:
Copy code
if invocation_id:
    filtered_test_results_db_rows = [
        test_result
        for test_result in filtered_test_results_db_rows
        if test_result.invocation_id == invocation_id
    ]

filtered_test_results_db_rows = [
    test_result
    for test_result in filtered_test_results_db_rows
    if test_result.invocations_rank_index == 1
]
filtered_test_results_db_rows = ... runs unconditionally after the invocation_id filter I have fixed the bug by adding this line of code in a else condition
🙌 1
I have fixed locally, i meant 🙂 Will you be able to fix it for the next release ?
n
Yes, passed this over to the engineer that's working on it!
i
Hii @Corentin Fanton ! Confirming this is fixed in the version that was released today :)
c
It works now, thank you very much for your prompt response