#1077 listExternalRepos API call should raise GenericError exception for non existing repo ID
Closed: Invalid by mikem. Opened by jcupova.

Steps to Reproduce:

Run listExternalRepos(info=non_exist_repo_id)

Actual result:

[]

Expected result:

Should return error message.


PR: #1086

I question whether this should raise an error at all.

The calls where we offer a strict option, or otherwise raise an error like this, are generally calls where the user is expected to provide a valid identifier for a single entry.

This call is more of a query for external repos. It returns a list of the matches. If you ask the system for all the repos with url=foo and there are none, then it returns an empty list, which is the correct answer to the question.

Contrast with the getExternalRepo call. This is a call that does expect the user to give a single valid repo identifier and returns a single value. That call does support a strict option.

Metadata Update from @mikem:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

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

Please continue any further discussion there.

Metadata