Commit Graph

70 Commits

Author SHA1 Message Date
rui ma b2ccddefbd fix: remove sonar card disable class
Signed-off-by: rui ma <ruima@alauda.io>
2023-07-28 17:05:48 +08:00
npiyush97 02ede704fe fix-18259
Signed-off-by: npiyush97 <npiyush35@gmail.com>
2023-06-19 16:46:47 +05:30
Fredrik Adelöw 7eaf2e0780 Merge pull request #17359 from Ma11hewThomas/fix/hotspots-reviewed-link
fix: amend getSecurityHotspotsUrl to conditionally remove project path
2023-04-14 10:36:25 +02:00
Matthew Thomas 5a368d12bc fix: amend getSecurityHotspotsUrl to conditionally remove project path
Signed-off-by: Matthew Thomas <matthewthomasgb@gmail.com>
2023-04-13 14:07:58 +01:00
Fredrik Adelöw 65454876fb unpack props inside component bodies
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-02-27 15:31:15 +01:00
Patrik Oldsberg 58814d6d4c fix stray imports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-02-21 14:56:15 +01:00
Patrik Oldsberg 61055f106b update /alpha imports to fix all type issues
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-02-21 14:42:38 +01:00
martincostello b12f564240 Fix formatting
Fix prettier issue caused by minor refactor just before previous commit.

Signed-off-by: martincostello <martin@martincostello.com>
2023-02-21 09:39:26 +00:00
martincostello d3d624e8e8 Update SonarQube card icons
- If there are no vulnerabilities, show a closed lock.
- If there are no code smells, show a happy face.

Signed-off-by: martincostello <martin@martincostello.com>
2023-02-20 17:34:34 +00:00
blam e3e2c57272 chore: moving @alpha types to @public
Signed-off-by: blam <ben@blam.sh>
2023-02-17 12:06:59 +01:00
Magnus Persson 6310eacc11 Additional package export
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2023-01-23 22:00:08 +01:00
Carlos Esteban Lopez 1daac71e74 fix: Apply linter <span> rule
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2023-01-10 16:07:40 -05:00
Patrik Oldsberg db2e137744 remove unnecessary usages of ThemeProvider
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-31 18:24:32 +01:00
Magnus Persson 836b30e61c Update api-report.md
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-12-14 22:27:27 +01:00
Magnus Persson 19f8ad4262 Keep types but marked deprecated
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-12-14 22:27:27 +01:00
Magnus Persson b3a304e78e Reference @backstage/plugin-sonarqube-react from @backstage/plugin-sonarqube
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-12-14 22:27:27 +01:00
Magnus Persson 2b555e3b83 Add @backstage/plugin-sonarqube-react
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-12-14 22:27:27 +01:00
manusant b94af16ac8 Updates according PR commentas
Signed-off-by: manusant <ney.br.santos@gmail.com>
2022-11-10 16:08:42 +00:00
manusant a4a7166fd0 Cleanup exports
Signed-off-by: manusant <ney.br.santos@gmail.com>
2022-11-10 10:13:57 +00:00
manusant ece8c70bb2 API report cleanup
Signed-off-by: manusant <ney.br.santos@gmail.com>
2022-11-09 16:25:10 +00:00
manusant 786117e98a sonarqube improvements
Signed-off-by: manusant <ney.br.santos@gmail.com>
2022-11-02 11:27:16 +00:00
Fredrik Adelöw 3f739be9d9 more api cleanup
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-18 15:16:19 +02:00
blam 0f2534537f chore: cleanup lint errors
Signed-off-by: blam <ben@blam.sh>
2022-08-16 09:42:30 +02:00
Neemys e598739487 Modify plugin sonarqube's APIs to take object as parameter
to make the API more easy to extend.

Signed-off-by: Neemys <36508659+Neemys@users.noreply.github.com>
2022-08-01 17:06:57 +02:00
Neemys 063ca97137 Change behavior of method useProjectInfo in plugin sonarqube
Will now return undefined instead of empty string. To be consistent with how the rest of the API works.

Also provide unit test for this method and the other one in the same file `isSonarQubeAvailable`

Signed-off-by: Neemys <36508659+Neemys@users.noreply.github.com>
2022-08-01 16:55:59 +02:00
Neemys ae0e115dd1 Inline a type in useProjectKey in sonarqube plugin
Type used only used and referenced in one place

Signed-off-by: Neemys <36508659+Neemys@users.noreply.github.com>
2022-07-28 16:50:43 +02:00
Neemys ddd47ff7fb Fix typo in comment in sonarqube plugin
Signed-off-by: Neemys <36508659+Neemys@users.noreply.github.com>
2022-07-22 15:27:51 +02:00
Neemys f9c310a439 Modify sonarqube frontend plugin to handle multiple sonarqube instances
The instance name should be provided into the annotation in the `catalog-info.yaml`

Care has been taken to provide backward compatibility of previous annotation into the default sonarqube instance

Signed-off-by: Neemys <36508659+Neemys@users.noreply.github.com>
2022-07-22 15:27:45 +02:00
Neemys 619b515172 Modify sonarqube frontend plugin to call the new sonarqube backend
backend only have mock API for now

Signed-off-by: Neemys <36508659+Neemys@users.noreply.github.com>
2022-07-22 15:27:45 +02:00
Patrik Oldsberg 2262fe19c9 removed deprecated entity props
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-18 13:54:33 +01:00
Patrik Oldsberg 51fbedc445 plugins: migrate usage of deprecated IdentityApi methods
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-01-13 19:51:30 +01:00
Patrik Oldsberg 4ce51ab0f1 use precise imports of react-use
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-12-30 12:53:16 +01:00
Fredrik Adelöw d0523cec56 Merge pull request #8156 from WarlenRodrigues/fixing_link_somponents_usage
Fixed Link components usage. Now, all links use the Backstage's Link c…
2021-12-21 08:10:15 +01:00
WarlenRodrigues 22bf2da934 Fied Link components usage. Now, all links use the Backstage's Link component
Signed-off-by: WarlenRodrigues <warlen.cesarrodrigues@gmail.com>
2021-12-20 19:18:04 +01:00
Colton Padden 345dcea560 release-2021-06-01 packages/core-plugin-api/src/apis/system/ApiRef.ts:27
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-12-17 15:04:34 -05:00
Johan Haals e9471d274c Use BackstageUserIdentity, fix tests
Co-authored-by: blam <ben@blam.sh>
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-12-02 13:32:35 +01:00
Adam Harvey 22bcaafa49 Add packageDocumentation
Signed-off-by: Adam Harvey <adaharve@cisco.com>
2021-12-01 14:10:35 -05:00
Johan Haals f1e96dc5b1 chore/cli: Replace msw with setupRequestMockHandlers
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-26 10:54:47 +02:00
Eric Peterson 81a41ec249 Apply extension-names codemod to monorepo.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-10-04 19:29:43 +02:00
Patrik Oldsberg ca0559444c avoid usage of to*Case + add project lint rule
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-02 18:43:11 +02:00
Shyam Saraswati 1099a77ea3 Fix SonarQubeClient test checking for Authentication header
Signed-off-by: Shyam Saraswati <ssaraswati@willowinc.com>
2021-08-06 07:52:56 +10:00
Shyam Saraswati 8db48b968c Add auth token to SonarQubeClient via IdentityApi
Signed-off-by: Shyam Saraswati <ssaraswati@willowinc.com>
2021-08-05 16:46:37 +10:00
Pankaj Patil d56c390e8f Fix All Material UI Warnings
Signed-off-by: Pankaj Patil <pankaj.patil2099@hotmail.com>
2021-08-03 21:49:08 +05:30
Patrik Oldsberg 9258c54f87 Merge branch 'master' into rugvip/mod 2021-06-22 10:07:18 +02:00
Patrik Oldsberg d453c05dc3 apply core-imports codemod to all packages and plugins
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-19 15:33:08 +02:00
Fredrik Adelöw a88073c29a Update copyright headers
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-18 20:26:42 +02:00
Jeff Cook ec75495ee3 No need to export under the alias isPluginApplicableToEntity. ...
That's an old pattern, per https://github.com/backstage/backstage/pull/5245#discussion_r609367059.

Signed-off-by: Jeff Cook <jeff.cook@endurance.com>
2021-04-08 13:32:47 +00:00
Jeff Cook 38726cd9a7 Teach SonarQube isPluginApplicableToEntity.
Signed-off-by: Jeff Cook <jeff.cook@endurance.com>
2021-04-07 23:36:51 +00:00
Thilo Schmalfuss 322e01a951 SonarQubeClient: Fix encoding issue for project ids
Project ids can contain special characters like ':', so they need to be url-encoded
when used as query parameter.

Signed-off-by: Thilo Schmalfuss <thilo@staffbase.com>
2021-03-18 12:20:56 +01:00
Dominik Henneke 4e771685c1 Merge pull request #4739 from SDA-SE/feat/sonarqube-missing-metrics
[SonarQube] Collect all available metric types if the number exceeds the default page size of 100
2021-03-01 17:39:17 +01:00