Skip to content

MPT-27624 Restore the original SonarCloud project key - #155

Merged
svazquezco merged 1 commit into
mainfrom
bugfix/MPT-27624/update-sonarcloud-project-key-mpt-extension-python-template
Nov 4, 2026
Merged

svazquezco merged 1 commit into
mainfrom
bugfix/MPT-27624/update-sonarcloud-project-key-mpt-extension-python-template

Conversation

@svazquezco

@svazquezco svazquezco commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 AI-generated PR — Please review carefully.

What

Set sonar.projectKey in backend/sonar-project.properties back to softwareone-platform_swo-extension-playground.

Why

The repo rename (#107) changed the key to softwareone-platform_mpt-extension-python-template, but the SonarCloud project was only renamed and kept its original key. Since then the scan has reported to a new, auto-created project with default settings:

  • PRs had no main-branch baseline, so "new code" in the quality gate was measured against nothing.
  • Results stopped being exported to GitHub code scanning, so PRs lost the SonarCloud check that the other mpt-* repos show.

With the original key, analyses go back to the existing project and its history.

Follow-up

After merge, a SonarCloud organization admin should delete the auto-created project softwareone-platform_mpt-extension-python-template.

Testing

  • make check scope=backend and make test scope=backend pass locally (40 tests).
  • This PR's own checks should show SonarCloud Code Analysis linking to softwareone-platform_swo-extension-playground.

Closes MPT-27624

  • Restore sonar.projectKey to softwareone-platform_swo-extension-playground so SonarCloud analyses use the existing project.

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Found Jira issue key in the title: MPT-27624

Generated by 🚫 dangerJS against beacfd5

@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 242ab39 and beacfd5.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The SonarQube project key changes from softwareone-platform_mpt-extension-python-template to softwareone-platform_swo-extension-playground. Other project settings remain unchanged.

Changes: SonarQube configuration

Layer / File(s) Summary
Project key update
backend/sonar-project.properties
The configured SonarQube project key changes to softwareone-platform_swo-extension-playground. Other settings remain unchanged.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: Minimal · previous review 242ab

The SonarQube project key is restored as intended and is ready to merge.

Pre-merge checks: Passed 2 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Documentation Up To Date Warning The PR changes the SonarCloud integration destination in backend/sonar-project.properties:1. The CI workflow runs the Sonar scan with projectBaseDir: backend in `.github/workflows/pr-build-merge.y… Add or update repository documentation in the same PR. Document the SonarCloud organization, project key, and CI integration destination in docs/external-integrations.md (or the repository’s designated integration document), and link it f…
Passed Passed checks: 2 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Documentation Up To Date

Explanation

The PR changes the SonarCloud integration destination in backend/sonar-project.properties:1. The CI workflow runs the Sonar scan with projectBaseDir: backend in .github/workflows/pr-build-merge.yml:67-73, so this change affects the external quality-gate integration. Existing docs/testing.md:45 documents the SonarCloud scan but does not document the project key or destination, and no documentation file changed in this PR. The shared documentation standard requires documentation for relevant external integrations (repository softwareone-platform/mpt-extension-skills, commit 9d8bcd7148e89c32545cf1ad5f80370036713e25, standards/documentation.md:30-31,77).

Resolution

Add or update repository documentation in the same PR. Document the SonarCloud organization, project key, and CI integration destination in docs/external-integrations.md (or the repository’s designated integration document), and link it from the documentation map if needed. Update docs/testing.md only if the SonarCloud quality-gate behavior requires additional workflow details.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 672d700 and 242ab39.

Files selected for processing: 1
  • backend/sonar-project.properties
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Recent review details
Context from checks skipped due to timeout: 2
  • GitHub Check: CodeRabbit
  • GitHub Check: build
Additional context used
Path-based instructions: 2
Review backend changes against `AGENTS.md`, `docs/architecture.md`, `docs/contributing.md`, and `docs/testing.md`.

CodeRabbit configuration file

Files:

  • backend/sonar-project.properties
For each subsequent commit in this PR, explicitly verify if previous review comments have been resolved

CodeRabbit configuration file

Files:

  • backend/sonar-project.properties
Additional comments: 1
backend/sonar-project.properties: 1

1-1: LGTM!

The repo rename changed sonar.projectKey to
softwareone-platform_mpt-extension-python-template, but the SonarCloud
project was only renamed and kept its original key. Analyses went to a
new, empty project with default settings: PRs had no main-branch
baseline and stopped exporting results to GitHub code scanning.

Point the scan back at softwareone-platform_swo-extension-playground so
it reports to the original project and its history again.
@svazquezco
svazquezco force-pushed the bugfix/MPT-27624/update-sonarcloud-project-key-mpt-extension-python-template branch from 242ab39 to beacfd5 Compare November 4, 2026 13:00
@svazquezco

Copy link
Copy Markdown
Collaborator Author

@coderabbitai approve

@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown
Action performed

Comments resolved. CodeRabbit has already approved this PR, so no new approval was submitted.

@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

@svazquezco
svazquezco merged commit 1d1c58b into main Nov 4, 2026
5 checks passed
@svazquezco
svazquezco deleted the bugfix/MPT-27624/update-sonarcloud-project-key-mpt-extension-python-template branch November 4, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants