apache / incubator-devlake

Apache DevLake is an open-source dev data platform to ingest, analyze, and visualize the fragmented data from DevOps tools, extracting insights for engineering excellence, developer experience, and community growth.
https://devlake.apache.org/
Apache License 2.0
2.55k stars 508 forks source link

[Bug][Sonarqube] No option to add scope config even though documentation suggests #7931

Open sanjchhoker opened 3 weeks ago

sanjchhoker commented 3 weeks ago

Search before asking

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 IMG_6953

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?

Code of Conduct

dosubot[bot] commented 3 weeks ago

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].

To continue talking to Dosu, mention @dosu.

sanjchhoker commented 3 weeks ago

fyi I am using Sonarqube enterprise v10.6

klesh commented 1 week ago

What document were you referring to? I can clearly see that Sonarqube data source doesn't have any scope config: https://devlake.apache.org/docs/Configuration/SonarQube#step-3---adding-transformation-rules-optional

sanjchhoker commented 1 week ago

Step 2 Data entities https://devlake.apache.org/docs/Configuration/SonarQube/

klesh commented 4 days ago

@sanjchhoker I see. Sorry for missing the point, my brain somehow filtered the section completely for me. 😂 Will update the doc soon.