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

Add issue templates #62

Merged
merged 7 commits into from
Oct 19, 2022
Merged

Add issue templates #62

merged 7 commits into from
Oct 19, 2022

Conversation

grst
Copy link
Collaborator

@grst grst commented May 23, 2022

Close #57

@grst grst requested a review from ivirshup June 21, 2022 16:39
@grst grst added this to the v0.1.0 milestone Jun 21, 2022
@grst
Copy link
Collaborator Author

grst commented Jun 21, 2022

I think we agreed to stick with the simple, explicit version placeholder for now.
Once we have #72, we can change this.

Copy link
Member

@ivirshup ivirshup left a comment

Choose a reason for hiding this comment

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

Looks mostly good.

Had two comments re: structure of bug report and use of discourse.

Comment on lines 15 to 50
- type: textarea
id: description
attributes:
label: Description of the bug
description: A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
id: repex
attributes:
label: Minimal reproducible example
description: A code snipped that we can copy&paste to reproduce the bug without having any data
render: python
placeholder: |
import scanpy as sc
adata = sc.datasets.pbmc3k()

sc.do_something_that_doesnt_work(adata)

- type: textarea
id: stacktrace
attributes:
label: The error message produced by the code above
description: Please paste the entire error message
render: pytb
placeholder: |
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-5-78750baef17a> in <module>
----> 1 adata = sc.do_something_that_doesnt_work(adata)

/opt/conda/lib/python3.8/site-packages/scanpy/_preprocessing.py in do_something_that_doesnt_work(adata)
438
--> 439 raise AssertionError("Demo function that fails")
440
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this is a lot better than just having free-form markdown.

While many bug reports fit "ran this code, got this error" not all do. Especially difficult to solve ones. How does "incorrect thing works" or "this works, this works, this doesn't" fit into this template?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All fields except for the first one are optional and you can write free-form markdown there.

Copy link
Member

Choose a reason for hiding this comment

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

My preference here would be:

One required field with description of bug. This includes a template that looks like:

## Description

## Example

```python
import {pkg}

# Minimal example to reproduce bug
````

```pytb
# Traceback from running code
```

And a required field for version info.

To me, Text, Code block, Error block may be the most common bug report format, but I'm not sure it's over 50% prevalence. I think putting too much structure here makes it harder for people to report, since they'll try to fit their problem into structure.

@github-actions
Copy link

github-actions bot commented Jul 4, 2022

A PR has been generated to the instance repo:
scverse/cookiecutter-scverse-instance#4

You can check out the PR to preview your changes
in an instance of the cookiecutter template. The PR will be kept in sync with
this PR automatically.

@grst
Copy link
Collaborator Author

grst commented Jul 7, 2022

Copy link
Member

@giovp giovp left a comment

Choose a reason for hiding this comment

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

minor nitpick, feel free to disregard, I'd get this merged asap.

dependencies = ["anndata"]
dependencies = [
"anndata",
# for debug logging (referenced from the issue template)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# for debug logging (referenced from the issue template)

@grst
Copy link
Collaborator Author

grst commented Oct 17, 2022

By now, I tend to side with @ivirshup: Rather have a less-structured bug report form - I think it's still better to receive low quality bug reports than not receiving any.

But a markdown template within an issue form is also ugly. Maybe just make it very explicit in the forms description which fields are optional?

(or no template at all: This is fine for most repos until you reach a certain traffic)

@grst
Copy link
Collaborator Author

grst commented Oct 19, 2022

Ok, let's go with you suggestion, @ivirshup.

We can always extend the template later if it turns out to be necessary.

@grst grst merged commit 5e41002 into main Oct 19, 2022
@grst grst deleted the issue-templates branch October 19, 2022 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create issue templates
6 participants