#499 New command `disable-monitoring`
Merged by onosek. Opened by onosek.
onosek/fedpkg disable_monitoring  into  master

Download 499.patch

After the repository is retired, its monitoring needs to be disabled.

Relates: https://pagure.io/releng/issue/10724
JIRA: RHELCMP-11025

Signed-off-by: Ondrej Nosek onosek@redhat.com

Hi @lenkaseg,

please check the code and functionality. For POST requests I am obtaining 401 every time (even for a token with all ACLs). Is this functionality accessible just for Pagure admins?
The code doesn't contain unit tests so far.

Thanks

Should not need to be pagure admin, because I am not and it worked for me...

I think the token had to be in the form of "token <the actual token>"
I solved it like this: https://pagure.io/rpkg/pull-request/646#_1__17
Modifying the token string and removing any quotes if present. I can be probably done better :)

rebased onto 1857acff13ddfde788d5a23df2ebde23d9e70054

rebased onto 2d42179d9f83439bb8e9b44fa8c72a8d3e911e83

rebased onto cdb93640437b5eb26f68c80c9609c3abcb3fc990

rebased onto 7f1b8c75a718a6a54343dc2dcd5b51efefd91ea8

Pull-Request has been merged by onosek

Metadata