[Bug][Sonarqube] No option to add scope config even though documentation suggests
sanjchhoker opened this issue · comments
Search before asking
- I had searched in the issues and found no similar issues.
What happened
Add sonarqube connection and add data scope to the connection - I can see data scopes coming through but cannot see scope config option.
It’s all just N/A
What do you expect to happen
Expect to see option to add scope config and only then we can get DORA metrics
How to reproduce
Add sonarqube connection and the add data scope.
Anything else
No response
Version
v1.0.0
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Hey @sanjchhoker! I'm here to help you out with any bugs, questions, or contributions you have in mind. I'm a bot, but don't worry, I'll do my best to assist you while we wait for a human maintainer to join the conversation.
The issue you're encountering is likely due to the ScopeConfig
method returning nil
, which means there is no scope configuration available for SonarQube. This is a known limitation mentioned in the documentation:
func (p Sonarqube) ScopeConfig() dal.Tabler {
return nil
}
To resolve this, you would need to ensure that the pluginConfig.scopeConfig
setting is enabled in the code. This setting controls whether the scope config option appears in the UI:
{pluginConfig.scopeConfig && (
<IconButton
icon={<LinkOutlined />}
helptip="Associate Scope Config"
size="small"
type="link"
onClick={() => {
setType('associate');
}}
/>
)}
If pluginConfig.scopeConfig
is not enabled, the scope config option will not be displayed [1][2].
fyi I am using Sonarqube enterprise v10.6