Skip to content
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

SLCORE-777 Perform issue tracking before raising issue #952

Merged

Conversation

kirill-knize-sonarsource
Copy link
Contributor

No description provided.

@kirill-knize-sonarsource kirill-knize-sonarsource changed the title Task/kk/issue tracking SLCORE-777 Perform issue tracking before raising issue Apr 29, 2024
@kirill-knize-sonarsource kirill-knize-sonarsource force-pushed the task/kk/issue-tracking branch 2 times, most recently from cd0e846 to f56be07 Compare May 2, 2024 11:42
@kirill-knize-sonarsource kirill-knize-sonarsource force-pushed the task/dam/add-analysis-tracking-tests branch 2 times, most recently from 93bae13 to 375a1d2 Compare May 2, 2024 11:52
@kirill-knize-sonarsource kirill-knize-sonarsource changed the base branch from task/dam/add-analysis-tracking-tests to feature/analysis-tracking May 2, 2024 12:04
Copy link
Contributor

@damien-urruty-sonarsource damien-urruty-sonarsource left a comment

Choose a reason for hiding this comment

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

Some minor comments, else LGTM

@@ -67,4 +82,16 @@ public Set<String> getReportedRuleKeys() {
public Set<SonarLanguage> getDetectedLanguages() {
return detectedLanguages;
}

public List<RawIssue> getIssues() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe getRawIssues, to make things explicit? Same for the field name

return issues;
}

public boolean isEnableTracking() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe isTrackingEnabled ?

private void streamIssue(String configScopeId, UUID analysisId, Issue issue, ConcurrentHashMap<String, GetRuleDetailsResponse> ruleDetailsCache,
HashSet<String> reportedRuleKeys) {
private void streamIssue(String configScopeId, UUID analysisId, Issue issue, ConcurrentHashMap<String, RuleDetailsForAnalysis> ruleDetailsCache,
List<RawIssue> raisedIssues) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be called rawIssues. Raw issues are not necessarily raised, as raised to me means that we would display them to the user. In fact raiseIssues could even be an alternative name for publishIssues

*/
@Deprecated(since = "10.2")
Copy link
Contributor

Choose a reason for hiding this comment

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

If we deprecate this one, we can also deprecate didRaiseIssues for the client

Copy link

sonarqube-next bot commented May 2, 2024

@kirill-knize-sonarsource kirill-knize-sonarsource merged commit 6ab2e0c into feature/analysis-tracking May 2, 2024
11 checks passed
@kirill-knize-sonarsource kirill-knize-sonarsource deleted the task/kk/issue-tracking branch May 2, 2024 15:58
damien-urruty-sonarsource added a commit that referenced this pull request May 7, 2024
* Add medium tests for issue tracking

* SLCORE-777 Perform issue tracking before raising issue

---------

Co-authored-by: Damien Urruty <damien.urruty@sonarsource.com>
damien-urruty-sonarsource added a commit that referenced this pull request May 10, 2024
* Add medium tests for issue tracking

* SLCORE-777 Perform issue tracking before raising issue

---------

Co-authored-by: Damien Urruty <damien.urruty@sonarsource.com>
damien-urruty-sonarsource added a commit that referenced this pull request May 13, 2024
* Add medium tests for issue tracking

* SLCORE-777 Perform issue tracking before raising issue

---------

Co-authored-by: Damien Urruty <damien.urruty@sonarsource.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants