Skip to content

Expand the bug issue template & add a template for questions#873

Merged
mhucka merged 18 commits intomasterfrom
mh-more-issue-template-work
Aug 27, 2025
Merged

Expand the bug issue template & add a template for questions#873
mhucka merged 18 commits intomasterfrom
mh-more-issue-template-work

Conversation

@mhucka
Copy link
Copy Markdown
Collaborator

@mhucka mhucka commented Aug 24, 2025

People are filing bug reports without providing us basic info like the qsim version. This PR revises the issue templates in the following ways:

  1. Adds a question about the qsim version number in the bug template
  2. Adds a question about the computing environment in the bug template
  3. Adds a new template for questions
  4. Turns off the "blank issue" template option

After this change, there will be 4 templates: bug reports, feature requests, questions, and tasks.

Here is a screenshot of the revised bug template:

screenshot-2025-08-24-1320

mhucka added 5 commits August 23, 2025 22:12
People are filing bug reports without providing us basic info like the
qsim version. This adds an additional question to ask for the version
number. It also adds a suggestion to search existing issues, and tweaks
the form a little bit in other ways.
Since I want to remove the blank issue option, we need to provide a
template for questions.
Let's try to steer people towards the other issue forms, so that we are
more likely to get the necessary information right from the start.
The previous sentence felt off, somehow. Hopefully this is better.
The order will be:

1. bugs
2. feature requests
3. questions
4. tasks
@github-actions github-actions Bot added the size: M 50< lines changed <250 label Aug 24, 2025
@mhucka mhucka marked this pull request as ready for review August 25, 2025 05:02
Comment thread .github/ISSUE_TEMPLATE/config.yml Outdated
@@ -1 +1 @@
blank_issues_enabled: true
blank_issues_enabled: false
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why no blank issues? I think it's nice if you have something that doesn't fit in another category for some reason.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

There is an issue that someone filed when the previous forms were in place, and evidently they must have used the blank issue form, because the issue lacked almost any useful info or structure. That particular issue was a question, and the previous set of forms lacked one for questions, so I added one. After I did that, I couldn't think of something that didn't fit into the 4 categories that will exist after this PR is merged (i.e., bug, feature request, question, or task). That, in combination with the desire to steer inexperienced users away from using the blank form, made me think it was worth trying to limit issues to the 4 categories.

I don't feel very strongly about it. @dstrain115 can you think of issue types that don't fit in those 4 categories? If so, or if your past experience has been that blank issues are important to keep around, then we can keep them enabled.

Copy link
Copy Markdown
Collaborator Author

@mhucka mhucka Aug 27, 2025

Choose a reason for hiding this comment

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

A relevant point of comparison here is to the issue types for Cirq. The ones for Cirq overlap: "design discussion" is basically "feature request", and "project health issue" is a "bug". I'm not really sure there is value in distinguishing those that finely, to be honest.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The No Type Issues seems to be the most popular in the past issues. They can capture cases which are not a clear cut at the time of reporting - e.g., if qsim crashed after installation it could be due to incorrect action on the user side (ie, Question - how to install correctly) or because of genuine bug in qsim.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The No Type Issues seems to be the most popular in the past issues.

The qsim repo did not have any issue templates before I added the current ones earlier this year, which means the only issue type that people could select was the blank issue type. So of course, it looks like the most popular :-).

For qsim software problems, we need to know the exact version you are
using. If you are using the Python package and are running within a
terminal emulator, then typing the following command in the shell will
print the version number:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Copy link
Copy Markdown
Collaborator

@pavoljuhas pavoljuhas Aug 27, 2025

Choose a reason for hiding this comment

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

Is it possible to use quoted textblock instead of nbsp-s here? (ie, the one below comes with a copy button)

python3 -c 'import qsimcirq; print(qsimcirq.__version__)'

Copy link
Copy Markdown
Collaborator Author

@mhucka mhucka Aug 27, 2025

Choose a reason for hiding this comment

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

As you can imagine, that's the first thing I tried. Unfortunately, in issue forms, the copy button does not appear for code blocks:

image

Furthermore, in dark mode, IMHO it's much harder to see where you should write the answer because of the styling – specifically, the white code text attracts visual attention while the input box is harder to notice:

image

So, faced with these two facts, I looked for another solution and came up with the inline code + spacing approach you see in the final version.

Copy link
Copy Markdown
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

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

Let us keep the blank issue in. Otherwise LGTM with a small optional suggestion.

mhucka added 4 commits August 27, 2025 10:55
The team wants blank issues enabled, so reverting changing the setting
back to true.
@mhucka
Copy link
Copy Markdown
Collaborator Author

mhucka commented Aug 27, 2025

Let us keep the blank issue in. Otherwise LGTM with a small optional suggestion.

OK, blank issue template re-enabled.

@mhucka mhucka merged commit e2473d4 into master Aug 27, 2025
27 checks passed
@mhucka mhucka deleted the mh-more-issue-template-work branch August 27, 2025 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants