It would be useful in Greenwave to have this additional feature in ResultsDB API: with a specific flag (that we can keep disabled by default) called something like "return_only_new", if set to "true" it will return not all the results for that filtering, but only the newest one (most recent timestamp).
Are you aware of the /results/latest endpoint? https://resultsdb20.docs.apiary.io/#reference/0/results/get-a-list-of-current-results-for-a-specified-filter-fixme:-reword-to-make-more-sense Or are you looking for something different?
/results/latest
I'm not sure I follow, but there is the /latest endpoint in resutlsdb, that IMO does precisely what you need.
/latest
Ah, kparal ninja'd me :) But let me add couple of example queries: https://taskotron-dev.fedoraproject.org/resultsdb_api/api/v2.0/results/latest?testcases:like=dist.rpmgrill.* https://taskotron-dev.fedoraproject.org/resultsdb_api/api/v2.0/results/latest?item=ClanLib1-1.0.0-29.fc30
https://taskotron-dev.fedoraproject.org/resultsdb_api/api/v2.0/results/latest?testcases:like=dist.rpmgrill.*
https://taskotron-dev.fedoraproject.org/resultsdb_api/api/v2.0/results/latest?item=ClanLib1-1.0.0-29.fc30
Let me know whether you meant something else than this. `
Yeah!! Just found out :) Thank you! Let's close this one
Metadata Update from @gnaponie: - Issue close_status updated to: Invalid - Issue status updated to: Closed (was: Open)