21 KiB
Triage issues
The main goal of issue triage is to categorize all incoming Grafana issues and make sure each issue has all the essential information needed for anyone to understand and be able to start working on it.
[!NOTE] This information is for Grafana project Maintainers, Owners, and Admins. If you are a Contributor, then you won't be able to perform most of the tasks in this topic.
Automation
All issues except the internal ones, are automatically triaged. The automation adds labels based on the title and description provided. The labels are mapped to projects.
Many of these automated behaviors are defined in commands.json. Or in other GitHub Actions Learn more about the auto triager bot in our bot documentation.
Simplified flowchart diagram of the automated issue triage process
flowchart TD
A([New issue])
C2([Triage app adds: <br>Label: type/#42; <br> Label: area/#42; <br> Label: datasource/#42; <br> Label: automated-triage])
G1([Assigns to mapped project])
H([Done])
%% Flow
A --> C2
C2 --> G1 --> H
Key functions of issue triage
Even with automation, understanding the purpose and value of triage remains important. Automation helps categorize and label issues, but human review is still important to:
- Ensure the issue's intent and purpose is conveyed precisely. This is necessary because it can be difficult for an issue to explain how an end user experiences a problem and what actions they took.
- Provide contributors with the information they need before they commit to resolving an issue.
- Lower the issue count by preventing duplicate issues.
- Improve the overall quality and clarity of issues, making it easier for everyone to contribute.
If you don't have the knowledge or time to code, consider helping with triage. Your efforts help maintainers and contributors focus on resolving issues more efficiently, benefiting the entire community.
1. Get started with issue triage
Subscribe to all notifications
One way is to subscribe to all notifications from this repository which means that all new issues, pull requests, comments and important status changes are sent to your configured email address. Read this guide for help with setting this up.
It's highly recommended that you set up filters to automatically remove emails from the inbox and label them accordingly. When issues are properly categorized you can easily understand when you need to act upon a notification or where to look to find issues that haven't been triaged.
Instructions for setting up filters in Gmail can be found here. Another alternative is to use Trailer or similar software.
2. Ensure the issue contains basic information
Before triaging an issue very far, make sure that the issue's author provided the standard information. This helps you make an educated recommendation on how to categorize the issue. The Grafana project uses GitHub issue templates to guide contributors to provide standard information that must be included for each type of template or type of issue.
Bug reports
Bug reports should explain what happened, what was expected, and how to reproduce it. Also, it should include additional information that may help giving a complete picture of what happened such as screenshots, query inspector output, and any relevant information about the environment. For example:
- Grafana version:
- Data source type & version:
- OS Grafana is installed on:
- User OS & Browser:
- Grafana plugins:
- Others:
Enhancement requests
Note: Prior to August, 2023, community-submitted feature requests were submitted as GitHub discussions. These are now submitted using the feature request issue template.
When submitting an enhancement request we ask that users focus on the problem they'd like to solve and why it’s a problem rather than focusing on the solution itself. To facilitate these objectives, the feature requests template includes the following:
- What would you like to be added?:
- Why is this needed (describe your use case and goals)**?:
Accessibility issues
This is a mix between a bug report and enhancement request but focused on accessibility issues to help make Grafana improve keyboard navigation, screen-reader support, and general accessibility. The report should include relevant WCAG criteria, if applicable.
Grafana Labs is dedicated to improving our graphical user interfaces and overall experience so that our product becomes usable and accessible for people with disabilities as well as anyone else. Learn more about Grafana's commitment to A11y (accessibility).
Support requests
In general, if the issue description and title is perceived as a question no more information is needed. See how to categorize these requests here.
Good practices
To make it easier for everyone to understand and find issues a good rule of thumb is to:
- Make sure that issue titles are named to explain the subject of the issue, are spelled correctly, and don't include irrelevant or sensitive information.
- Make sure that issue descriptions don't include irrelevant information, information from a template that hasn't been filled out, or sensitive information.
- Make your best effort to change the title and description or request suggested changes by adding a comment.
Does the issue have all the information needed for automated categorization?
Most issues are now categorized automatically based on the information provided. However, if the automation cannot categorize an issue due to missing or unclear information, a human reviewer may need to request additional details from the author. Use your best judgement—if the issue lacks enough information for automation to work correctly, kindly ask the author to provide the necessary details.
3. Issue categorization
Issues are automatically categorized. An issue can have multiple labels. Typically, a properly categorized issue should at least have these labels:
- One label identifying its type (
type/*). - One or multiple labels identifying the functional areas of interest or component (
area/*) and/or data source (datasource/*), if applicable.
| Label | Description |
|---|---|
type/bug |
A feature isn't working as expected given design, or documentation. |
type/feature-request |
Request for a new feature, or enhancement. |
type/docs |
Documentation problem, or enhancement. |
type/accessibility |
Accessibility problem, or enhancement. |
type/question |
Issue is a question or is perceived as such. |
type/duplicate |
An existing issue of the same subject has already been reported. |
type/works-as-intended |
A reported bug works as intended (that is, by design). |
type/build-packaging |
Build or packaging problem, or enhancement. |
area/* |
Subject is related to a functional area of interest, or component. |
datasource/* |
Subject is related to a core data source plugin. |
Duplicate issues
Make sure it's not a duplicate by searching existing issues using related terms from the issue title and description. If you think you know there is an existing issue, but can't find it, please reach out to one of the maintainers and ask for help. If you identify that the issue is a duplicate of an existing issue:
- Add a comment
/duplicate of #<issue number>. GitHub will recognize this and add some additional context to the issue activity. - The Grafana bot will do the rest, adding the correct label and a closing comment.
- Add the
type/duplicatelabel. Optionally, you may add any relatedarea/*ordatasource/*labels.
Bug reports
If it's not perfectly clear that it's an actual bug, quickly try to reproduce it.
It can be reproduced:
- Add a comment describing detailed steps for how to reproduce it, if applicable.
- Label the issue
type/bugand at least onearea/*ordatasource/*label. - If you know that maintainers won't be able to put any resources into it for some time then label the issue with
help wantedand optionallybeginner friendlytogether with pointers on which code to update to fix the bug. This should signal to the community that we would appreciate any help we can get to resolve this. - Move on to prioritizing the issue.
It can't be reproduced:
- You can either ask for more information needed to investigate it more thoroughly.
- or delegate further investigations to someone else.
It works as intended (that is, by design):
- Kindly and politely add a comment explaining briefly why we think it works as intended and close the issue.
- Label the issue
type/works-as-intended.
Enhancement or feature request?
- Label the issue
type/feature-requestand add at least onearea/*ordatasource/*label. - Make sure the submitter has justified why this feature request is important.
Documentation issue?
First, evaluate if the documentation makes sense to be included in the Grafana project:
- Is this something we want and can maintain as a project?
- Is this referring to usage of some specific integration and in that case is that a popular use case in combination with Grafana?
- If unsure, kindly and politely add a comment explaining that we would need upvotes to identify that lots of other users want or need this.
Second, label the issue type/docs and at least one area/* or datasource/* label.
Minor typo/error/lack of information:
There's a minor typo, error, or lack of information that adds a lot of confusion for users and is a big win to fix it:
- Either update the documentation yourself and open a pull request.
- Either delegate the work to someone else by assigning that person to the issue. Note that the milestone is automatically assigned and usually doesn't need to be manually edited.
Major error/lack of information:
- Label the issue with
help wantedandbeginner friendly, if applicable, to signal that we find this important to fix and we would appreciate any help we can get from the community. - Move on to prioritizing the issue.
Accessibility issues
- Label the issue
type/accessibilityand at least onearea/*ordatasource/*label.
Support requests
- Kindly and politely direct the issue author to the community site and explain that GitHub is mainly used for tracking bugs and feature requests. If possible, it's usually a good idea to add some pointers to the issue author's question.
- Label the issue with
bot/question. The Grafana bot will automatically close the issue, and it will add the type/question label for you.
4. Prioritization of issues
In general, bugs and enhancement issues should be labeled with a priority.
This is the most difficult thing with triaging issues since it requires a lot of knowledge, context and experience before it is possible to skillfully add a specific priority label.
The key here is to ask for help and discuss issues to understand how more experienced project members think and reason. By doing that you learn more and eventually be more and more comfortable with prioritizing issues.
In case there is an uncertainty around the prioritization of an issue, please ask the maintainers for help.
| Label | Description |
|---|---|
priority/critical |
Highest priority. Must be actively worked on as someone's top priority right now. |
priority/support-subscription |
This is important for one or several customers having a paid Grafana support subscription. |
priority/important-soon |
Must be staffed and worked on either currently, or very soon, ideally in time for the next release. |
priority/important-longterm |
Important over the long term, but may need multiple releases to complete. |
priority/nice-to-have |
It's a good idea, but not scheduled for any release. |
priority/awaiting-more-evidence |
Lowest priority. Possibly useful, but not yet enough interest in it. |
priority/unscheduled |
Something to look into before and to be discussed during the planning of the next major/minor stable release. |
Critical bugs
-
If a bug has been categorized and any of the following criteria apply, the bug should be labeled as critical and must be actively worked on as someone's top priority right now:
- Results in any data loss
- Critical security or performance issues
- Problem that makes a feature unusable
- Multiple users experience a severe problem affecting their business, user experience, and so on.
-
Label the issue
priority/critical. -
If applicable, label the issue
priority/support-subscription. -
Add the issue to the next upcoming patch release milestone. Create a new milestone if there are none.
-
Escalate the problem to the maintainers.
-
Assign or ask a maintainer for help assigning someone to make this issue their top priority right now.
Important short-term
- Label the issue
priority/important-soon. - If applicable, label the issue
priority/support-subscription. - Add the issue to the next upcoming patch or major/minor stable release milestone. Ask maintainers for help if unsure if it's a patch or not. Create a new milestone if there are none.
- Make sure to add the issue to a suitable backlog of a GitHub project and prioritize it or assign someone to work on it now or very soon.
- Consider requesting help from the community, even though it may be problematic given a short amount of time until it should be released.
Important long-term
- Label the issue
priority/important-longterm. - Consider requesting help from the community.
Nice to have
- Label the issue
priority/nice-to-have. - Consider requesting help from the community.
Not critical, but unsure?
- Label the issue
priority/unscheduled. - Consider requesting help from the community.
5. Request help from the community
It's generally a good idea to consider signaling to the community that help is appreciated and needed in case an issue isn't prioritized to be worked on by maintainers. Use your best judgement. In general, requesting help from the community means that a contribution has a good chance of getting accepted and merged.
In many cases the issue author or community as a whole is more suitable to contribute changes since they're experts in their domain. It's also quite common that someone has tried to get something to work using the documentation without success, made an effort to get it to work, reached out to the community site to get the missing information, or some combination of these things.
In certain areas there probably exist domain experts who may be able to help:
- Database setups
- Authentication like OAuth providers and LDAP setups
- Platform-specific things
- Reverse proxy setups
- Alert notifiers
- Kindly and politely add a comment to signal to users subscribed to updates of the issue.
- Explain that the issue would be nice to get resolved, but it isn't prioritized to work on by maintainers for an unforeseen future.
- If possible or applicable, try to help contributors get started by adding pointers and references to what code needs to be changed. Note any suggestions for good ways of solving or implementing the issue.
- Label the issue with
help wanted. - If applicable, label the issue with
beginner friendlyto denote that the issue is suitable for a beginner to work on. - If possible, try to estimate the amount of work by adding
effort/small,effort/mediumoreffort/large.
Investigation of issues
When an issue has all basic information provided, but the triage responsible hasn't been able to reproduce the reported problem at a first glance, the issue is labeled triage/needs-confirmation. Depending on the perceived severity and/or number of upvotes, the investigation will either be delegated to another maintainer for further investigation or put on hold until someone else (maintainer or contributor) picks it up and eventually starts investigating it.
Investigating issues can be a very time consuming task, especially for the maintainers, given the huge number of combinations of plugins, data sources, platforms, databases, browsers, hardware, integrations, cloud services, and so on, that are used with Grafana. There are a certain number of combinations that are more common than others, and these are in general easier for maintainers to investigate.
For some other combinations it may not be possible at all for a maintainer to set up a proper test environment to investigate the issue. In these cases we really appreciate any help we can get from the community. Otherwise, the issue is highly likely to be closed.
Even if you don't have the time or knowledge to investigate an issue we highly recommend that you upvote the issue if you happen to have the same problem. If you have further details that may help investigating the issue, please provide as much information as possible.
External PRs
Part of issue triage should also be triaging of external PRs. The main goal should be to make sure PRs from external contributors have an owner and aren't forgotten.
- Check new external PRs which don't have a reviewer. You can easily search for pull requests made by external contributors by using the label:
pr/externalin your query search Note: external PRs are automatically labeled withpr/externalupon creation. - Check if there is a link to an existing issue. The link to an existing issue should be in the description section, underneath “Which issue(s) does this PR fix?:”. If not, and you know which issue it is solving, add the link yourself. Otherwise, ask the author to link the issue or to create one.
- Assign a reviewer based on who was handling the linked issue or what code or feature the PR touches (if all else fails, look at who was the last to make changes).
Appendix
Setting up Gmail filters
If you're using Gmail, a best practice is to set up filters to automatically remove emails from the inbox and label them, making it easy for you to understand when you need to act upon a notification. You should be able to promptly process all incoming issues that haven't been triaged.
This may be set up by personal preference, but here's a working configuration for reference:
- Follow instructions in gist
- In Gmail, go to Settings -> Filters and Blocked Addresses.
- On the menu, select Import filters, then select and open the XML file.
- Review the filters.
- Optional: Select Apply new filters to existing email.
- Create filters.
This gives you a structure of labels in the sidebar similar to the following:
- Inbox
...
- GitHub (mine)
- activity
- assigned
- mentions
- GitHub (other)
- Grafana
- All notifications you’ll need to take action on should show up as unread in GitHub (mine) and its sub-labels.
- All notifications you don’t need to take action on show up as unread in GitHub (other) and its sub-labels.