we use Sonar for Bitbucket Server, Version 1.6.0 (Bitbucket v4.4.1). In our Pull Requests we something I can not find anywhere in your documentation. I expect a diff between the issues of my branch and the target branch, but I get only data that lead me to the target branch. This is not as useful as the diff we had before ...
Please explain for me what I see here or guide a blind man through the documentation . Thanks!
Please excuse my late reply. I don't get notification e-mails from Atlassian Answers anymore since a couple of weeks and I don't know why.
You're right, since version 1.6.0 we only show the statistics of the source branch of the pull request. We decided to change this to be consistent with the metrics that are shown in SonarQube. It caused a lot of confusion when we e.g. showed a different amount of new issues in the plug-in than SonarQube did.
One reason for this change was that we are not always able to correctly count the number of resolved issues with the SonarQube API, so if you add 3 new issues in a branch and resolved 2 old ones, we are not aware of the 2 resolved issues without comparing the metrics of the source with the ones from the target branch (which again caused some issues because not in every case has the target branch been analyzed already when opening a pull request).
What we could do is to make the number of new issues by severity available in the statistics (new in terms of issues found in changed/new lines in the diff). This is the number we also show in the issue overview dialog. This will not include removed issues, so it will not be a real delta between the source/target branch, but instead just the number of added issues. Would that be of interest for you? If yes, could you please open a feature request at https://mibexsoftware.atlassian.net/browse/SONAR/ ? We could also make this configurable so if you are interested in the old metrics based on the diff of the source and target branch, you could still have them as before 1.6.0.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs