Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osc meta attribute openSUSE:Factory -a ATTR -e -> no edit option #435

Closed
DimStar77 opened this issue Aug 6, 2018 · 3 comments · Fixed by #1360
Closed

osc meta attribute openSUSE:Factory -a ATTR -e -> no edit option #435

DimStar77 opened this issue Aug 6, 2018 · 3 comments · Fixed by #1360
Assignees

Comments

@DimStar77
Copy link
Contributor

According to osc --help, one should be able to edit an attribute using meta attribute -e;

This though results in a NO-OP, no editor showing up.

Calling the command osc -d meta attribute openSUSE:Factory -a OSRT:Config -e does not show a single API call being done

@lethliel lethliel self-assigned this Aug 6, 2018
@lethliel
Copy link
Member

lethliel commented Aug 6, 2018

This is not that easy.

-e results in a PUT that uploads the resulting XML to the server.

But for attributes there is no PUT route, because every attribute can have different
permissions (and thus is completely different to other meta files like project meta)

What I can do is add a edit mode for single attributes.

Like:
osc meta attribute home:mstrigl -e -a OBS:RejectRequests

And then a editor shows up for just this attribute.

And from the help:

Usage:

    [SNIP]

    osc meta attribute PRJ [PKG [SUBPACKAGE]] [--attribute ATTRIBUTE] [--create [--set <value_list>]|--delete|--set <value_list>]

@DimStar77
Copy link
Contributor Author

What I can do is add a edit mode for single attributes.

Like:
osc meta attribute home:mstrigl -e -a OBS:RejectRequests

Single attribute editing would be helpful in this case, indeed

@SchoolGuy
Copy link
Contributor

I got hit by this today since the Python code for this is directly in the CLI and not accessible through the Python API. Thus I need to duplicate this code now into openSUSE-release-tools. It would really be nice if this will be implemented soon. I can't write Ruby, so I sadly can't contribute this, however I could fix osc if the server side code is existing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants