diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-03-02 16:24:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-02 16:24:37 +0100 |
commit | 299cebedac5ef4a6a17dd18782c2b1a2a79f08d5 (patch) | |
tree | 357d7b0ebe5fe686b9f2ea35507a2fb58bce12a0 /server/sonar-web/src/main/js/helpers/issues.ts | |
parent | 2d98999918574c56056c21f9c4791476d644a041 (diff) | |
download | sonarqube-299cebedac5ef4a6a17dd18782c2b1a2a79f08d5.tar.gz sonarqube-299cebedac5ef4a6a17dd18782c2b1a2a79f08d5.zip |
rewrite remaining popups in react (#3109)
* extract baseFontFamily
* rewrite favorites store in ts
* add new types and change existing ones
* rewrite SourceViewer helpers in ts
* rewrite SourceViewer in ts and its popups in react
* drop popups
* fix iterating over nodelist
* fix quality flaws
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/issues.ts')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/issues.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/helpers/issues.ts b/server/sonar-web/src/main/js/helpers/issues.ts index e7910c837e3..a1ccedd665c 100644 --- a/server/sonar-web/src/main/js/helpers/issues.ts +++ b/server/sonar-web/src/main/js/helpers/issues.ts @@ -19,6 +19,7 @@ */ import { flatten, sortBy } from 'lodash'; import { SEVERITIES } from './constants'; +import { Issue } from '../app/types'; interface TextRange { startLine: number; @@ -67,8 +68,6 @@ export interface RawIssue extends IssueBase { textRange?: TextRange; } -interface Issue extends IssueBase {} - export function sortBySeverity(issues: Issue[]): Issue[] { return sortBy(issues, issue => SEVERITIES.indexOf(issue.severity)); } @@ -173,5 +172,5 @@ export function parseIssueFromResponse( ...ensureTextRange(issue), secondaryLocations, flows - }; + } as Issue; } |