-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Issue templates #4278
Issue templates #4278
Conversation
Bump: I would prefer to see opinions from at least two different people (excluding myself), before taking a decision. To anyone considering to do a review: you can skip the code, the preview link in the opening post will show you what it will actually look like in the GitHub web interface. |
I figured out how to preview them, they look good! The bug one might be a little long though, entering all that information would take a while. I left a few comments where I thought they could be combined without missing anything |
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.
Fancy
The bug form is quite long. I suppose things like logs, research, prior discussions, related tickets, etc. could all be wrapped into simply a Steps to reproduce and example code could possibly be merged into one field as well. |
@GammaGames where can I see your comments? |
@GammaGames Ah, it says "pending" in that screenshot, which means they are probably only visible to you. GitHub queues your comments and then publishes them all at once when you submit your "overall" review (i.e., the "verdict"). You can make that final step by going to the "Files changed" tab and pressing the green button in the top right. |
.github/ISSUE_TEMPLATE/Bugs.yml
Outdated
attributes: | ||
label: Affected engine(s) | ||
description: > | ||
In which browser(s) or other JavaScript environment(s) did you encounter |
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.
Do we have a Backbone.getDebugInfo()
function? Would make this step way easier (for both client and server)
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 don't think we do, but that is an excellent idea. I'll see whether it is easy to add, and otherwise create a ticket for it.
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.
@GammaGames please have a look at 8fe1bbb while I continue to work on the other review comments. Maybe it is a bit bulky for what it is; I put it all in one commit so it will be easy to revert.
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 think putting it all in one commit makes sense and at a glance it looked good! I'll try to take a closer look and respond to the rest of your comments sometime this weekend
.github/ISSUE_TEMPLATE/Bugs.yml
Outdated
attributes: | ||
label: Code permalinks | ||
description: > | ||
If possible, provide permalinks to the JavaScript code, configuration, |
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 think this is useful, but if we have to cut something this is where we should do it. 99% of users aren't going to do this (especially if they've already got a line and version, that's enough to find the location)
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.
Just to make sure we are talking about the same thing: did you interpret this question as asking for a permalink to Backbone code, or for a permalink to someone's project code in which the bug manifested?
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 interpreted it as a link to the documentation, I may have misread it. Most repos have a jsfiddle template set up and just ask for a reproducable example
id: problem | ||
attributes: | ||
label: Problem statement | ||
description: >- |
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 know this is technically something to collect, but it's really just the cause of the problem. They're both asking similar questions.
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 somewhat disagree here, it's asking for the effects rather than the cause. I know people generally find it more intuitive to discuss the cause before the effect, but it is the effect that actually motivates changes to the documentation. I find it important to start with the "why".
That said, your comment made me realize the naming of the field was a bit vague, so I renamed it to "effect".
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 agree with the name change
@jgonggrijp Thank you, posted! Guess I've accidentally done it correctly the few times I've posted a review |
@GammaGames and @Rayraz, I think I followed up on your review comments (maybe not to the letter but hopefully still in spirit). I merged a bunch of questions, especially in the bug template. Please have another look at the live preview. The new |
I can only choose between single-line
By they way, do you think that the code size of the |
@jgonggrijp honestly I'd move that import Backbone from 'backbone';
import { debugInfo } from 'backbone/debug-info'; |
I like that they're |
Alright, I shortened the placeholder for that The updated bug report template can be previewed here and the documentation for (The linter currently chokes on the ESM syntax in |
👍️ |
I mean, not exactly to the letter of the comments, but hopefully to the spirit.
Old trick learned from Underscore: within this directory, Node.js and other tools that follow its awkward convention will be willing to interpret .js files with ES module syntax.
556d29b
to
be26215
Compare
I decided to try my hand at GitHub's issue template functionality. The changes can be previewed at my fork, where I temporarily enabled issues. This is probably a better way to review this PR than by reading the YAML files. The top three categories have forms that you can view by clicking "get started".
I had two main goals:
For expert users, there is still the option to skip the forms and create a blank issue.
I may have gone a bit overboard with the forms. I'm open to all suggestions.