-
Notifications
You must be signed in to change notification settings - Fork 85
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
docs: Use GitHub Issue forms as Issue templates #1576
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1576 +/- ##
=======================================
Coverage 97.70% 97.70%
=======================================
Files 63 63
Lines 4050 4050
Branches 576 576
=======================================
Hits 3957 3957
Misses 54 54
Partials 39 39
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
As there is no good way to preview these in a PR, I did all the writing on my fork https://github.com/matthewfeickert/pyhf. I'd invite everyone to go over to my fork's Issues to review the PR. @alexander-held as you open some of the best Issues on @kratsg @lukasheinrich Once this is in (I wanted to mention new Issues in the release email) I'll start up the release checklist to release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The templates look very good to me. I have a few rather minor comments. Is there still the possibility to upload files (e.g. a workspace) in the new bug report form? I spontaneously would not know how to do it.
Paste verbatim output from `pyhf --version` below, under | ||
the prompt line. Please don't wrap it with tripple backticks — your | ||
whole input will be turned into a code snippet automatically. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am assuming that users with editable installs who checkout different versions of pyhf
will generally understand the system enough so that this is not an issue, but in principle the output of pyhf --version
may not match the actual version in use (this is for example the case for me right now).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexander-held You just saying that if you are locally installing pyhf
and not using a supported release from PyPI then you might get something like
$ pyhf --version
pyhf, version 0.6.3.dev17
? Or do you mean something in addition to this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean something closely related, yes. I won't get the dev tags if I clone the repo, check out tag v0.6.2
, pip install -e .
, and then check out the master branch. pyhf --version
will show pyhf, version 0.6.2
nevertheless, even though I am using a newer version. This is so minor though that it is probably not worth any changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah gotcha yeah. 👍 I think this is probably okay, as you're like our ultimate power user and you know what you're doing here. I'm more assuming that people who are reporting bugs are installing directly from PyPI.
Though I'll mention here that when you report bugs in the future feel free to just give whatever information is the most relevant here (e.g. git commit hash) or something.
|
||
- type: textarea | ||
attributes: | ||
label: pyhf Version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would suggest moving this towards the end of the form, in my experience with existing issues the version seems to rarely matter a lot.
attributes: | ||
label: OS / Environment | ||
description: >- | ||
Provide the name of your operating system and the output of `uname --all`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part seems like it would not matter for the large majority of existing issues. I think it does not hurt to have for completeness, but would suggest moving to the end of the fields. uname --all
will not always work, for example on Mac OS I need uname -a
.
|
||
**HINT:** You can paste [GitHub Gist](https://gist.github.com) links for larger files. | ||
value: | | ||
<!--- Paste your minimal failing Python example code between the quotes below --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe easier to use if the comment is above the cell, and the whole cell is python
formatted? Not clear to me why this different style is used here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably to give people a chance to also add text, not just code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I assumed extra text could go into summary / expected results / actual results, but for more complicated setups the opportunity for more text seems useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could have two separate fields for code and text, of course. But then, you can never guess how many code blocks the reporter would need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could have two separate fields for code and text, of course. But then, you can never guess how many code blocks the reporter would need.
Yeah. I think I may stick with doing the hint and then just adding an optional place for people to upload a workspace file. This way I don't have to have both an entry for CLI and for Python APIs.
Every |
Thanks for these comments! I think I've applied all of them now. 👍 |
3013ce9
to
8ed2171
Compare
Thank you Sviatoslav! Co-authored-by: Sviatoslav Sydorenko <[email protected]>
d4a83aa
to
209daad
Compare
* Fix the links in the Issue forms to point to the same Issue type label as the form * Amends PR #1576
Description
Resolves #1452
Add GitHub Issue forms to provide better context and guide users. As the forms can also require information to be entered before the Issue can be created, they can also streamline input from users.
These Issue forms are heavily influenced / copied from Ansible's (thanks @webknjaz!).
Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: