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-1026 SonarLint is aligned with the custom/new severity for issues #1162

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

nquinquenel
Copy link
Member

@nquinquenel nquinquenel commented Nov 15, 2024

@nquinquenel nquinquenel force-pushed the feature/nq/SLCORE-1026-custom-severities-issues branch 4 times, most recently from 3304a7c to a7d7b17 Compare November 15, 2024 18:27
@nquinquenel nquinquenel marked this pull request as ready for review November 18, 2024 08:08
@nquinquenel nquinquenel force-pushed the feature/nq/SLCORE-1026-custom-severities-issues branch from a7d7b17 to 06f5847 Compare November 18, 2024 09:48
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.

It looks mostly good but I left some comments related to how you handle the event, this might need some more work

@@ -192,8 +192,10 @@ private static ServerIssue adapt(Entity storedIssue) {
var creationDate = (Instant) requireNonNull(storedIssue.getProperty(CREATION_DATE_PROPERTY_NAME));
var userSeverity = (IssueSeverity) storedIssue.getProperty(USER_SEVERITY_PROPERTY_NAME);
var type = (RuleType) requireNonNull(storedIssue.getProperty(TYPE_PROPERTY_NAME));
var impacts = readImpacts(storedIssue.getBlob(IMPACTS_BLOB_NAME));
Copy link
Contributor

Choose a reason for hiding this comment

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

Be aware that for issues we have an incremental update with the pull mechanism. It means no impacts will be returned for all issues that are already stored. For such changes, we might want at some point to force a re-download of all issues. We had a similar case with SLCORE-441

@nquinquenel nquinquenel force-pushed the feature/nq/SLCORE-1026-custom-severities-issues branch 2 times, most recently from de2ca5a to ed2759d Compare November 21, 2024 09:18
@nquinquenel nquinquenel force-pushed the feature/nq/SLCORE-1026-custom-severities-issues branch from 6461a9d to c01f756 Compare November 26, 2024 13:26
@nquinquenel nquinquenel merged commit 3c0097e into master Nov 27, 2024
12 checks passed
@nquinquenel nquinquenel deleted the feature/nq/SLCORE-1026-custom-severities-issues branch November 27, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants