fedora-infra / bodhi

Bodhi is a web-system that facilitates the process of publishing updates for a Fedora-based software distribution.
https://bodhi.fedoraproject.org
GNU General Public License v2.0
152 stars 195 forks source link

Add support to bodhi's CLI to update packager_manager and testing_repository #3541

Open pypingou opened 5 years ago

pypingou commented 5 years ago

We have two fields in the Releases DB model: packager_manager and testing_repository but bodhi's CLI doesn't seem to support editing them.

It would be nice to gain some sort of way to edit these fields that do not rely on running raw SQL queries :)

pypingou commented 5 years ago

Note this is valid for creating as well as editing the release.

mattiaverga commented 5 years ago

I remember that when I added those two fields I had successfully tested editing the release with bodhi releases edit command. For example bodhi releases edit --name F31 --package-manager dnf --testing-repository updates-testing should work.

I suppose I forgot to add those options in the documentation under the edit subcommand (I've only added them to the create subcommand)

pypingou commented 5 years ago

So with python3-bodhi-client-4.0.2-2.fc30.noarch installed, I do not see these options when I do: bodhi releases create --help or bodhi releases edit --help.

Is my version too old?

mattiaverga commented 5 years ago

If I remember well, they were introduced in Bodhi 4.1

pypingou commented 5 years ago

Checking the code in git, I see the options in the --help of edit and create. I'm just approved your PR (#3542) once it's in I think we can close this ticket.

Thanks!

sebwoj commented 4 years ago

@ryanlerch Can we close this?