-
Notifications
You must be signed in to change notification settings - Fork 173
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
🐛 Sonarqube: No information to display, however, the settings are correct #1350
Labels
bug
Something isn't working
Comments
interesting, we are using the same plugin and it's working as expected 🤔 sonarqube:
baseUrl: ${SONARQUBE_BASE_URL}
apiKey: ${SONARQUBE_API_KEY}
backend:
baseUrl: ${BACKEND_BASE_URL}
listen:
port: 7007
csp:
connect-src:
[
"'self'",
"'unsafe-eval'",
"'unsafe-inline'",
'https://api.github.com/repos/',
'https://pipelines.actions.githubusercontent.com/',
'https://api.pagerduty.com/',
]
default-src: ['https://www.loom.com/', '*']
script-src: ["'self'", "'unsafe-inline'", "'unsafe-eval'"]
img-src: ["'self'", '*', 'data:']
cors:
origin: ${APP_BASE_URL}
methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
credentials: true "@backstage-community/plugin-sonarqube": "^0.8.2",
---
export const hasSonarqube = (entity: Entity) =>
entityHasAnnotation(entity, 'sonarqube.org/project-key');
---
// Routes.tsx
<>
<EntityLayout.Route path="/sonarqube" title="Sonarqube" if={hasSonarqube}>
<Grid container spacing={3} alignItems="stretch">
<Grid md={12}>
<EntitySonarQubeCard variant="gridItem" />
</Grid>
</Grid>
</EntityLayout.Route>
</> index.ts in the BE "@backstage-community/plugin-sonarqube-backend": "^0.2.23",
---
backend.add(import('@backstage-community/plugin-sonarqube-backend')); |
according to the code the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Plugin Name
sonarqube
📜 Description
The settings are in accordance with the Backend and Frontend plugin documentation.
However, I receive the message on the frontend:
No information to display
👍 Expected behavior
Sonarqube information is expected to be rendered as expected.
👎 Actual Behavior with Screenshots
👟 Reproduction steps
app-config.yaml
:catalog-info.yaml
:EntityPage.tsx
📃 Provide the context for the Bug.
I suspect it may be something related to CORS, but before the plugin was "migrated" to "community-plugins" it worked perfectly in a local environment.
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Code of Conduct?
Are you willing to submit PR?
No, but I'm happy to collaborate on a PR with someone else
The text was updated successfully, but these errors were encountered: