Skip to content

plugin for viewing and applying RedHat Insights recommendations #837

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

Merged
merged 2 commits into from
Jun 19, 2025

Conversation

ydayagi
Copy link
Contributor

@ydayagi ydayagi commented May 23, 2025

Hey, I just made a Pull Request!

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

@rhdh-gh-app
Copy link

rhdh-gh-app bot commented May 23, 2025

Important

This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior.

Changed Packages

Package Name Package Path Changeset Bump Current Version
app workspaces/redhat-resource-optimization/packages/app none v0.0.5
backend workspaces/redhat-resource-optimization/packages/backend none v0.0.5
@red-hat-developer-hub/plugin-redhat-resource-optimization-backend workspaces/redhat-resource-optimization/plugins/redhat-resource-optimization-backend major v1.1.0
@red-hat-developer-hub/plugin-redhat-resource-optimization-common workspaces/redhat-resource-optimization/plugins/redhat-resource-optimization-common major v1.1.0
@red-hat-developer-hub/plugin-redhat-resource-optimization workspaces/redhat-resource-optimization/plugins/redhat-resource-optimization major v1.1.0

jkilzi
jkilzi previously requested changes May 23, 2025
Copy link
Contributor

@jkilzi jkilzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ydayagi it requires minor changes. I left some comments to help you address the issues.

@ydayagi ydayagi force-pushed the migrate-optimizations branch 4 times, most recently from f2763cc to c8811ed Compare May 25, 2025 12:13
@ydayagi ydayagi force-pushed the migrate-optimizations branch 2 times, most recently from 614ba76 to be4580d Compare May 26, 2025 12:36
Copy link
Member

@BethGriggs BethGriggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this creates a new redhat-resource-optimization workspace in this repository. How does this relate to the workspace (redhat-resource-optimization) in the Backstage Community Plugins repository?

Before merging I'd just like to understand what the plan is, and whether it needs to be removed from Backstage Community Plugins to avoid having two divergent versions of the same plugin?

@ydayagi
Copy link
Contributor Author

ydayagi commented May 28, 2025

I see this creates a new redhat-resource-optimization workspace in this repository. How does this relate to the workspace (redhat-resource-optimization) in the Backstage Community Plugins repository?

Before merging I'd just like to understand what the plan is, and whether it needs to be removed from Backstage Community Plugins to avoid having two divergent versions of the same plugin?

sorry for the late response. just finished preparing the workspace with links to redhat.
this workspace is just as the orchestrator. another project in rhdh for redhat customers.
we have not intention to use or maintain the community repos

@ydayagi ydayagi force-pushed the migrate-optimizations branch 2 times, most recently from 36faf88 to a059a29 Compare May 28, 2025 14:43
@BethGriggs
Copy link
Member

BethGriggs commented Jun 2, 2025

we have not intention to use or maintain the community repos

@ydayagi, the plugin already exists in the Backstage Community Plugins (workspace) with Red Hat codeowners listed as active maintainers.

If there is no intention to maintain the version published in the community, can we please ensure the workspace is removed from there? The risk is that things like shared dependency update PRs that touch this workspace may become stuck waiting on review from those codeowners (so it can impact other maintainers in the project).

@ydayagi
Copy link
Contributor Author

ydayagi commented Jun 3, 2025

we have not intention to use or maintain the community repos

@ydayagi, the plugin already exists in the Backstage Community Plugins (workspace) with Red Hat codeowners listed as active maintainers.

If there is no intention to maintain the version published in the community, can we please ensure the workspace is removed from there? The risk is that things like shared dependency update PRs that touch this workspace may become stuck waiting on review from those codeowners (so it can impact other maintainers in the project).

sure. i will work on it and update you since it is ready

@ydayagi
Copy link
Contributor Author

ydayagi commented Jun 3, 2025

@BethGriggs here is the PR for removing from community plugins backstage/community-plugins#4185

@ydayagi ydayagi force-pushed the migrate-optimizations branch from a059a29 to 773e03f Compare June 3, 2025 09:55
@ydayagi
Copy link
Contributor Author

ydayagi commented Jun 4, 2025

@BethGriggs sonarCloud complains about code duplicity. can we ignore/bypass it? I did not find any duplicate code in the files it reports

@BethGriggs BethGriggs dismissed their stale review June 4, 2025 15:30

Concern about the plugin living in two locations resolved

@BethGriggs
Copy link
Member

@ydayagi, thanks for following up with the removal in the other repository. Dismissed my review as I just wanted to ensure the plugin didn't continue to exist in two places.

I'm personally not familiar with SonarCloud setup here, so may need someone else to comment on that.

@ydayagi ydayagi force-pushed the migrate-optimizations branch 4 times, most recently from 7157afa to db1795f Compare June 9, 2025 08:37
@ydayagi ydayagi force-pushed the migrate-optimizations branch 2 times, most recently from 29a9010 to 6c7543b Compare June 10, 2025 05:04
@schultzp2020
Copy link
Contributor

Just make sure to resolve the SonarQube code duplication issues and this should be ready!

@ydayagi
Copy link
Contributor Author

ydayagi commented Jun 15, 2025

Just make sure to resolve the SonarQube code duplication issues and this should be ready!

I have no idea how to do that. it is not clear where is the duplication and why it thinks there is a duplication

@ydayagi ydayagi force-pushed the migrate-optimizations branch from 750774c to 0da863a Compare June 16, 2025 10:51
@ydayagi
Copy link
Contributor Author

ydayagi commented Jun 16, 2025

Just make sure to resolve the SonarQube code duplication issues and this should be ready!

@schultzp2020 Most of the duplicity is reported for files in the packages folder. Other plugins have the same file with similar content. I think that when the plugins were introduced for the first time, the SonarCloud report was ignored.

@ydayagi
Copy link
Contributor Author

ydayagi commented Jun 18, 2025

@nickboldt @davidfestal can u help me with sonarCloud?

@ydayagi ydayagi force-pushed the migrate-optimizations branch from c2e699f to 0da863a Compare June 19, 2025 15:53
@nickboldt nickboldt requested a review from jkilzi June 19, 2025 15:58
@nickboldt nickboldt dismissed jkilzi’s stale review June 19, 2025 15:58

seems like issues raised have been addressed.

@nickboldt
Copy link
Member

Assuming that Paul is cool to merge this despite the slightly high dupe report from sonarqube cloud; with followup work TBD in https://issues.redhat.com/browse/RHIDP-7881

Copy link
Member

@nickboldt nickboldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci openshift-ci bot removed the lgtm label Jun 19, 2025
Copy link

openshift-ci bot commented Jun 19, 2025

New changes are detected. LGTM label has been removed.

@nickboldt nickboldt merged commit 02bf923 into redhat-developer:main Jun 19, 2025
3 checks passed
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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.

6 participants