Sonar Code quality widget shows only part of projects

We use SonarQubeCloud with our Bitbucket Cloud repositories…
Plugin works fine, but as part of integration we have widget that shows code quality for projects on Pull request page,

Problem: We have 14 projects, but widget shows only 6. Even if there were changes in other projects.
However in Buildssection we have 14 build running in SonarQbe and in Sonar itself we can see all projects.

Expecting: Widget will show all projects we have.

Hey there.

It’s not clear to me what widget you’re talking about – can you share a screenshot?


Uploaded screenshot. You can see in last line 14 of 14 shown. But actually, I see only 6 projects

Thanks!

To clarify – the goal of this widget is not to show all projects in your organization, but to show all the projects bound to a specific repository (multiple projects can be bound to a repository when configured as a monorepo)

What I think is happening is that these 6 projects are all configured as a monorepo – maybe the other 8 are not? That would still beg the question as to why the widget thinks there should be 14…

Could you open up your browser’s Dev Tools and find the call that’s being made to https://sonarcloud.io/integration/bitbucketcloud/repo_widget_data and paste its response here?

1 Like

Thank you. Sorry for delay. THis is the requested Response:

{
    "projects": [
        {
            "organization": "DealHub",
            "key": "dealhub_prod_metrics_core",
            "name": "lib-metrics-core",
            "analysisDate": "2023-12-19T09:31:49+0100",
            "leakPeriodDate": "2023-11-19T12:57:28+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "0",
                "code_smells": "17",
                "coverage": "51.0",
                "duplicated_lines_density": "0.0",
                "ncloc": "776",
                "ncloc_language_distribution": "java\u003d776",
                "reliability_rating": "1.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "17"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_billing",
            "name": "billing",
            "analysisDate": "2023-12-19T09:34:44+0100",
            "leakPeriodDate": "2023-11-19T12:57:30+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "0",
                "code_smells": "166",
                "coverage": "62.7",
                "duplicated_lines_density": "0.8",
                "ncloc": "4133",
                "ncloc_language_distribution": "java\u003d4133",
                "reliability_rating": "1.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "166"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_storage",
            "name": "storage",
            "analysisDate": "2023-12-19T09:32:21+0100",
            "leakPeriodDate": "2023-12-05T14:34:02+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "0",
                "code_smells": "5",
                "coverage": "42.6",
                "duplicated_lines_density": "0.0",
                "ncloc": "768",
                "ncloc_language_distribution": "java\u003d768",
                "reliability_rating": "1.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "5"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_webcommons",
            "name": "webcommons",
            "analysisDate": "2023-12-19T09:35:10+0100",
            "leakPeriodDate": "2023-11-19T12:57:39+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "8",
                "code_smells": "407",
                "coverage": "25.6",
                "duplicated_lines_density": "0.0",
                "ncloc": "8377",
                "ncloc_language_distribution": "java\u003d8346;web\u003d31",
                "reliability_rating": "3.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "415"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_commons",
            "name": "commons",
            "analysisDate": "2023-12-19T09:34:44+0100",
            "leakPeriodDate": "2023-11-19T12:57:27+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "0",
                "code_smells": "138",
                "coverage": "20.2",
                "duplicated_lines_density": "0.0",
                "ncloc": "3227",
                "ncloc_language_distribution": "java\u003d3227",
                "reliability_rating": "1.0",
                "security_rating": "4.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "5",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "143"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_portar",
            "name": "portar",
            "analysisDate": "2023-12-19T09:33:31+0100",
            "leakPeriodDate": "2023-11-19T12:58:18+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "1",
                "code_smells": "99",
                "coverage": "33.5",
                "duplicated_lines_density": "1.4",
                "ncloc": "4547",
                "ncloc_language_distribution": "java\u003d4547",
                "reliability_rating": "3.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "100"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_webserver",
            "name": "webserver",
            "analysisDate": "2023-12-19T09:35:07+0100",
            "leakPeriodDate": "2023-12-07T09:46:11+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "139",
                "code_smells": "18535",
                "coverage": "29.3",
                "duplicated_lines_density": "1.8",
                "ncloc": "270094",
                "ncloc_language_distribution": "java\u003d270094",
                "reliability_rating": "5.0",
                "security_rating": "5.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "8",
                "security_hotspots": "28",
                "security_hotspots_reviewed": "24.3",
                "security_review_rating": "5.0",
                "issues": "18682"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_webserverjs",
            "name": "webserverjs",
            "analysisDate": "2023-01-29T11:22:11+0100",
            "leakPeriodDate": "2022-12-26T10:00:59+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "75",
                "code_smells": "4085",
                "duplicated_lines_density": "9.6",
                "ncloc": "88601",
                "ncloc_language_distribution": "js\u003d88197;web\u003d404",
                "reliability_rating": "4.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "41",
                "security_hotspots_reviewed": "2.4",
                "security_review_rating": "5.0",
                "issues": "4160"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealroom-ui",
            "name": "dealroom-ui",
            "analysisDate": "2023-06-14T09:32:59+0200",
            "leakPeriodDate": "2023-06-13T13:16:30+0200",
            "measures": {
                "alert_status": "OK",
                "bugs": "207",
                "code_smells": "4971",
                "coverage": "12.6",
                "duplicated_lines_density": "15.6",
                "ncloc": "100558",
                "ncloc_language_distribution": "css\u003d29340;js\u003d41023;php\u003d30;ts\u003d8961;web\u003d21204",
                "reliability_rating": "4.0",
                "security_rating": "5.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "2",
                "security_hotspots": "64",
                "security_hotspots_reviewed": "0.0",
                "security_review_rating": "5.0",
                "issues": "5180"
            }
        },
        {
            "organization": "DealHub",
            "key": "sales-ui",
            "name": "sales-ui",
            "analysisDate": "2023-06-13T19:51:42+0200",
            "leakPeriodDate": "2023-06-13T19:49:40+0200",
            "measures": {
                "alert_status": "OK",
                "bugs": "3",
                "code_smells": "2",
                "coverage": "0.0",
                "duplicated_lines_density": "0.0",
                "ncloc": "1925",
                "ncloc_language_distribution": "css\u003d271;js\u003d41;ts\u003d1326;web\u003d287",
                "reliability_rating": "3.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "5"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_webhookmanager",
            "name": "webhookmanager",
            "analysisDate": "2023-12-19T09:35:02+0100",
            "leakPeriodDate": "2023-11-19T12:57:29+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "0",
                "code_smells": "6",
                "coverage": "35.7",
                "duplicated_lines_density": "0.0",
                "ncloc": "202",
                "ncloc_language_distribution": "java\u003d202",
                "reliability_rating": "1.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "6"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_webhookconsumer",
            "name": "webhookconsumer",
            "analysisDate": "2023-12-19T09:32:05+0100",
            "leakPeriodDate": "2023-11-19T12:57:30+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "0",
                "code_smells": "15",
                "coverage": "28.6",
                "duplicated_lines_density": "0.0",
                "ncloc": "518",
                "ncloc_language_distribution": "java\u003d518",
                "reliability_rating": "1.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "15"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_configuration",
            "name": "configuration",
            "analysisDate": "2023-12-19T09:29:28+0100",
            "leakPeriodDate": "2023-11-19T12:57:24+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "0",
                "code_smells": "38",
                "coverage": "39.7",
                "duplicated_lines_density": "0.0",
                "ncloc": "3919",
                "ncloc_language_distribution": "java\u003d3919",
                "reliability_rating": "1.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "38"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_configuration_client",
            "name": "dealhub_prod_configuration_client",
            "measures": {}
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_configuration_common",
            "name": "dealhub_prod_configuration_common",
            "measures": {}
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_subscription_client",
            "name": "dealhub_prod_subscription_client",
            "measures": {}
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_subscription_common",
            "name": "dealhub_prod_subscription_common",
            "measures": {}
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_collaboration",
            "name": "dhcollaboration",
            "analysisDate": "2023-12-19T09:32:30+0100",
            "leakPeriodDate": "2023-11-19T12:57:29+0100",
            "measures": {
                "alert_status": "ERROR",
                "bugs": "9",
                "code_smells": "222",
                "coverage": "43.8",
                "duplicated_lines_density": "0.4",
                "ncloc": "8164",
                "ncloc_language_distribution": "java\u003d8164",
                "reliability_rating": "3.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "231"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_dhdbcommon",
            "name": "dhdbcommon",
            "analysisDate": "2023-12-19T09:34:44+0100",
            "leakPeriodDate": "2023-11-19T12:57:41+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "0",
                "code_smells": "103",
                "coverage": "0.0",
                "duplicated_lines_density": "0.0",
                "ncloc": "2432",
                "ncloc_language_distribution": "java\u003d2432",
                "reliability_rating": "1.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "103"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_request-router",
            "name": "request-router",
            "analysisDate": "2023-12-19T09:32:01+0100",
            "leakPeriodDate": "2023-11-19T12:57:45+0100",
            "measures": {
                "alert_status": "OK",
                "bugs": "0",
                "code_smells": "9",
                "coverage": "20.5",
                "duplicated_lines_density": "1.1",
                "ncloc": "1789",
                "ncloc_language_distribution": "java\u003d1789",
                "reliability_rating": "1.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "9"
            }
        },
        {
            "organization": "DealHub",
            "key": "dealhub_prod_dc_data_access",
            "name": "lib-dc-data-access",
            "analysisDate": "2023-12-19T09:32:14+0100",
            "leakPeriodDate": "2023-11-19T12:57:25+0100",
            "measures": {
                "alert_status": "ERROR",
                "bugs": "1",
                "code_smells": "13",
                "coverage": "0.0",
                "duplicated_lines_density": "0.0",
                "ncloc": "1357",
                "ncloc_language_distribution": "java\u003d1357",
                "reliability_rating": "3.0",
                "security_rating": "1.0",
                "sqale_rating": "1.0",
                "vulnerabilities": "0",
                "security_hotspots": "0",
                "security_hotspots_reviewed": "100.0",
                "security_review_rating": "1.0",
                "issues": "14"
            }
        }
    ]
}

I says “14 out of 14 shown”, but I see only 6 projects in widget:

lib-metrics-core

billing

storage

webcommons

commons

portar

Hey @Maxim_Nikolaev

Thank you for the Response data you provided. It helped us identify an issue in our front end.
Due to our End of Year code freeze, we anticipate implementing the fix after mid-January.

Please don’t hesitate to reach out if you encounter any further issues.

Many thanks,
Tommy

2 Likes

Hello @Maxim_Nikolaev

We’ve implemented the fix for the issue. Could you please verify if it’s now resolved on your end?

Thanks.