Skip to content

ADMIN: Create separate issue templates for different usecases #33187

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

Merged
merged 21 commits into from
Apr 3, 2020

Conversation

ShaharNaveh
Copy link
Member

revival of #31551 originally opened by @jschendel


I recall this being mentioned on one of the core dev calls a few months back, and took inspiration from rapidsai/cudf for the various templates.

Added templates for the following use cases:

* Bug Report
  
  * This is largely the same as the current issue template

* Documentation Enhancement

* Documentation Error

* Feature Request

* Submit Question
  
  * This attempts to direct users to StackOverflow for usage questions

We could also add a Blank Template for opening an issue without any template provided, but opted not to do that for now, as I don't want to encourage people to bypass these templates. Could certainly add one if there's a consensus that we want this.

I've created a local repo where you can see these templates in action since I couldn't figure out another way to actually display these. Click the "New Issue" button to see what these changes would look like.

@ShaharNaveh ShaharNaveh added the Admin Administrative tasks related to the pandas project label Mar 31, 2020

```python
# Your code here

```

**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, this should go before the Code Sample

#### Problem description

[this should explain **why** the current behaviour is a problem and why the expected output is a better solution.]
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]

**Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
Copy link
Member

@mroeschke mroeschke Mar 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a suggestion. I think we should change these two **Note** sections into checkboxes like

- [ ] I have checked that issue has not already been reported
- [ ] I have confirmed this bug exists on the latest version of pandas
- [ ] I have confirmed this bug exists on the master branch of pandas

More succinct than these sections IMO.

Inspired how Numba does their bug reports: numba/numba#4735


#### Location of the documentation

[this should provide a description of what documentation you believe needs to be fixed/improved]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also encourage a link to the documentation that they want to see improved.

Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reviving this.


#### Describe the solution you'd like

[this should provide a description of the feature request, e.g. "`DataFrame.foo` should get a new parameter `bar` that [...]"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've found asking people to "write a docstring" to be helpful in clarifying what people are asking for.

name: Bug Report
about: Create a bug report to help us improve pandas
title: "BUG:"
labels: ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say we should use this label: feature to automatically tag the issue with the appropriate label. For this template Bug and similarly for the others.

https://github.community/t5/How-to-use-Git-and-GitHub/Apply-labels-automatically-at-issue-creation/td-p/10719#

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just making sure before I make the changes, the labels for each file should look like this:


bug_report: Bug


documentation_improvement: Docs


feature_request: Enhancement?


submit_question: "Usage Question"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was originally on the fence about automatically adding labels because it could make it harder to distinguish what has been triaged vs. what hasn't, since I currently look for the presence of labels to determine if something has been triaged, and automatically adding labels would make it less clear whether a triage has occurred or not.

A potential workaround here is to also automatically add a new "Needs Triage" label and then remove it as part of the triage process. Or maybe this is only an issue on my part, in which case I can work around it.

Copy link
Member Author

@ShaharNaveh ShaharNaveh Apr 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feature_request: Enhancement?

We don't have a label for feature requests

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have a label for feature requests

We typically use the "Enhancement" label for this, so I think what you've proposed above is good.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I've seen a couple variants of this: rapidsai/cudf automatically adds a generic "? - Needs Triage" label, scikit-learn/scikit-learn adds a "Bug: triage" just to bug reports.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Numba has a need triage label: https://github.com/numba/numba/issues?q=is%3Aissue+is%3Aopen+label%3Aneedtriage

I'd be in favor in autotagging with <Bug/Doc/Enhancement/...> + Need Traige, and then Need Triage can be removed once someone has commented (and can be replace with a more specific label like IO CSV for example)

I've also been making an effort to tag older issue with one of Bug/Doc/Enhancement/... which will be useful in the future for developing metrics about total number of issues per category.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mroeschke ATM Need Triage label does not exists.
Should I wait for it to be created? or just edit this pull request to auto-assign the label Need Triage and the label will be created later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went ahead and just created a Needs Triage label so it should be available now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @mroeschke

Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@jreback jreback added this to the 1.1 milestone Apr 3, 2020
@jreback jreback merged commit b712971 into pandas-dev:master Apr 3, 2020
@jreback
Copy link
Contributor

jreback commented Apr 3, 2020

thanks @MomIsBestFriend

@jreback
Copy link
Contributor

jreback commented Apr 3, 2020

it even pre-sets some labels, nice!

@ShaharNaveh ShaharNaveh deleted the issue-template branch April 6, 2020 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Administrative tasks related to the pandas project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants