On Mon, Jul 12, 2021 at 4:23 AM Adrien Glauser <adrien.glauser@gmail.com> wrote:
Dear Heroes,
As mentioned in the last Heroes meeting we (Jens, Martín and I) are looking into building a user-friendly REST API to allow users across the entire platforms (web, Matrix, Telegram, Discord, future forums) to perform a variety of queries. The ultimate goal is to make important community tools and services more accessible by providing a single, user-friendly interface where basically any question that doesn't need a human respondent can be addressed by a simple query. (That's half the of it; it other half is to make channels, people and activities more discoverable, but that's for another day.)
The domain of resources we want to provide access to is evolving as we learn new things about oS infra but it goes roughly like: - packages listed under "zypper search" - packages displayed on build.opensuse.org - documentation - the opensue bugzilla - progress/pagure - community news & activities (from news-o-o) and more.
Now before we start building new tools we'd like to see if we can use tools that exist already. Thus we would like to know a few things:
1) Since this API is likely to depend on bots to provide in-app searches, we need to know if the bots bridging between the various instant messaging services could be used to forward queries to the API. Who's maintaining that / these bots and where can read the code?
Today, openSUSE Heroes has no bots in service beyond the bridge bots for the Matrix server.
2) Bugzilla comes with a REST API from version 5+; does bugzilla.opensuse.org have this feature currently enabled? Who should we get in touch with to negotiate enabling it?
We do not have Bugzilla 5. Sasi and I had been looking at trying to get SUSE IT to deploy a variant of the Red Hat Bugzilla 5 software[1] as it provides a variant of Bugzilla 5 with features that would be useful for distributions (including tracking third-party bug trackers and multi-SSO). Today, we have Bugzilla 4 with its XML-RPC API. I strongly recommend using python-bugzilla[2] to interface with it.
3) Does Progress expose an API for doing queries and if yes, where's the docs about using this feature?
Progress uses Redmine, however the project does not generally use this much, so it's not of much use to query for the project as a whole. That said, we *can* enable the REST API[3] if desired (if it's not already enabled, I'm not sure). Pagure has an API, and it's documentation is on the instance itself[4].
Thanks a lot, any piece of information would be greatly appreciated!
Hope this helps! [1]: https://pagure.io/Red-Hat-Bugzilla/rh-bugzilla [2]: https://github.com/python-bugzilla/python-bugzilla [3]: https://www.redmine.org/projects/redmine/wiki/rest_api [4]: https://code.opensuse.org/api -- 真実はいつも一つ!/ Always, there's only one truth!