#2632 count and countAndFilterResults unable to handle plugins and generators
Closed: Fixed by tkopecek. Opened by mikem.

The count and countAndFilterResults hub calls wrap other hub calls and modify the result. However, they do not look up the method handler in a way that includes plugins, and they do not handle methods that return generators.

E.g. they can't find the methods from the side tag plugin:

$ brew call count listSideTags
2021-01-06 16:12:02,342 [ERROR] koji: GenericError: method listSideTags doesn't exist
$ brew call countAndFilterResults listSideTags
2021-01-06 16:12:24,765 [ERROR] koji: GenericError: method listSideTags doesn't exist

And they get the count wrong if the result is a generator:

[mikem@localhost koji]$ brew call search '*-candidate' tag glob|wc
   2299    9184  128920
[mikem@localhost koji]$ brew call count search '*-candidate' tag glob
1

fix forthcoming

Metadata Update from @mikem:
- Custom field Size adjusted to None
- Issue tagged with: easyfix

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.24

Metadata Update from @jcupova:
- Issue tagged with: testing-ready

Metadata Update from @mfilip:
- Issue tagged with: testing-done

Commit aeff4f52 fixes this issue

Commit 9a56b061 fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/2632

Please continue any further discussion there.

Metadata
Related Pull Requests