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

Read-only API for retrieving Trac data #1657

Open
laymonage opened this issue Oct 8, 2024 · 2 comments
Open

Read-only API for retrieving Trac data #1657

laymonage opened this issue Oct 8, 2024 · 2 comments
Labels
python Pull requests that update Python code trac

Comments

@laymonage
Copy link

Per discussion in django/code.djangoproject.com#198 (comment).

The same XmlRpcPlugin for Trac that we removed in django/code.djangoproject.com#198 was also responsible for the JSON RPC (/jsonrpc endpoint). The endpoint seems useful for extracting data to gain insights, e.g.

Instead of restoring the old API, which relies on an old Trac plugin and does not give us full control over the output, we probably want to create our own API.

There is a draft PR at #1656.

For now, I think it's OK to limit the scope of the API to be read-only. If we find use cases for a write API, we can file a separate issue.

@thibaudcolas
Copy link
Member

I’d love to see this happen, as this kind of API endpoint seems to be the only reliable way to check people’s commenting and triaging activity. For example, this would help in assessing people’s eligibility as candidates for Steering Council elections, as triaging contributions are one of the areas where we acknowledge candidates’ work:

Reviewing pull requests and/or triaging Django project tickets

So I need a way to assess how often someone helps by:

  • Accepting or closing tickets
  • Sharing git bisect results to find a regression commit
  • Answering questions
  • Linking tickets

In the meantime I’m using site:code.djangoproject.com inurl:/ticket/ "by Person Name" in Google to find comments, but it’s proving unreliable. I might scrape the tickets instead.

@sarahboyce
Copy link
Contributor

An idea was discussed in the DSF office hours to have a GitHub action for django/django which would add labels to PRs based off their status in Trac to acheive easy filtering within GitHub

So for example, adding a "needs review" label (which would check the ticket from the title and needs_docs=0, needs_tests=0, patch_needs_improvement=no), a "needs tests" label etc.

Having an api which includes these flags for tickets would be really great 💚

I don't mind working on this but would appreciate an agreement on what would be the minimum work required to get this accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code trac
Projects
None yet
Development

No branches or pull requests

4 participants