#112 CLI: add option to disable Pagure integration stuff
Closed: Fixed by adamwill. Opened by adamwill.

If you have a local test/dev deployment of blockerbugs that does not have a Pagure instance to talk to, it will waste a lot of time trying to sync with the public Pagure instance and failing, every time you sync blockers:

[2020-03-23 15:49:15,590] DEBUG in cli: Creating Pagure discussion for bug 1767351
[2020-03-23 15:49:15,590] DEBUG in pagure_interface: POST request to https://pagure.io/api/0/fedora-qa/blocker-review/new_issue
[2020-03-23 15:49:16,217] ERROR in cli: Unable to create Pagure discussion for bug 1767351. Pagure error: Unable to create issue, response code: 401, response text:
{
  "error": "Invalid or expired token. Please visit https://pagure.io/settings#nav-api-tab to get or renew your API token.",
  "error_code": "EINVALIDTOK",
  "errors": "Invalid token"
}

etc. etc. etc. It'd be good to have a handy CLI option or something to prevent Pagure sync. I'm planning to do something about this myself, just filing a ticket because I love bureaucracy!


https://pagure.io/fedora-qa/blockerbugs/pull-request/113 should fix this.

113 is merged, closing this. (It doesn't add an option, just tries to DTRT - if no Pagure API token is set, it skips the sync.)

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

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/quality/blockerbugs/issues/112

Please continue any further discussion there.

Log in to comment on this ticket.

Metadata