#3134 Allow untagging "invisible" tagged builds
Closed: Fixed 2 years ago by tkopecek. Opened 2 years ago by mikem.

When build has a tag_listing entry for a tag, but is not in the package list for that tag, then the build will not show up when the tags content is queried. It's an unfortunate quirk of the Koji data model.

However, there's no reason we can't allow such builds to be untagged. The CLI includes a sanity check that errors if the build does not show up in a listTagged query. This prevents untagging such invisible builds, even though the underlying untagBuild call would have no problem.

Probably the easiest thing to do here is to just skip the sanity check and instead catch and explain any errors from the untagBuild calls.


If we do want to preserve the sanity check, then we could use a queryHistory call instead. E.g. queryHistory(['tag_listing'], tag=args[0], package=pkg, active=True)

Metadata Update from @mikem:
- Custom field Size adjusted to None

2 years ago

While we're here, it might be nice to make this command use multicall

A trivial workaround exists: just use koji call untagBuild $tag $nvr

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

2 years ago

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.29 (was: 1.28)

2 years ago

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

2 years ago

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

2 years ago

Login to comment on this ticket.

Metadata