Skip to content
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

fix: add default labels to actions in plugin.xml (#957) #960

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

adietish
Copy link
Contributor

@adietish adietish commented Jan 28, 2025

fixes #957

@openshift-ci openshift-ci bot requested a review from sbouchet January 28, 2025 09:07
@adietish adietish marked this pull request as draft January 28, 2025 09:07
@adietish adietish marked this pull request as ready for review January 28, 2025 15:32
@adietish adietish self-assigned this Jan 28, 2025
@adietish adietish force-pushed the issue-957 branch 2 times, most recently from 0dde1e2 to d4fbc1a Compare January 31, 2025 09:56
@redhat-developer redhat-developer deleted a comment from openshift-ci bot Jan 31, 2025
@redhat-developer redhat-developer deleted a comment from openshift-ci bot Jan 31, 2025
@redhat-developer redhat-developer deleted a comment from openshift-ci bot Jan 31, 2025
@redhat-developer redhat-developer deleted a comment from openshift-ci bot Jan 31, 2025
@adietish
Copy link
Contributor Author

adietish commented Feb 3, 2025

@sbouchet can you please review this? thanks!

<action class="org.jboss.tools.intellij.openshift.actions.component.DeployComponentAction" id="org.jboss.tools.intellij.openshift.actions.component.DeployComponentAction"/>
<action class="org.jboss.tools.intellij.openshift.actions.component.DevComponentAction" id="org.jboss.tools.intellij.openshift.actions.component.DevComponentAction" text="Dev Component"/>
<action class="org.jboss.tools.intellij.openshift.actions.component.DevOnPodmanComponentAction" id="org.jboss.tools.intellij.openshift.actions.component.DevOnPodmanComponentAction" text="Dev Podman Component" />
<action class="org.jboss.tools.intellij.openshift.actions.component.DeployComponentAction" id="org.jboss.tools.intellij.openshift.actions.component.DeployComponentAction" text="Deploy Component" />
</group>
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpicking but those labels are already defined on the ComponentFeature class with :
"Dev on Cluster"
"Dev on Podman"
"Deploy on Cluster"

Copy link
Contributor Author

@adietish adietish Feb 4, 2025

Choose a reason for hiding this comment

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

@sbouchet yes, but IDEA seems to impose those as the error message implies:

The default action text must be specified in plugin.xml or its class constructor [Plugin: org.jboss.tools.intellij.openshift]

I dont see how we can reuse these with the plugin.xml or vice versa.

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes but my point was more to reuse the same texts for default labels

Copy link
Contributor Author

@adietish adietish Feb 4, 2025

Choose a reason for hiding this comment

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

finally grocked 😃, corrected the labels.

@adietish adietish requested a review from sbouchet February 4, 2025 15:57
Copy link
Collaborator

@sbouchet sbouchet left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

openshift-ci bot commented Feb 4, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbouchet

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Feb 4, 2025
@adietish
Copy link
Contributor Author

adietish commented Feb 4, 2025

/override "ci/prow/e2e-openshift"

Copy link

openshift-ci bot commented Feb 4, 2025

@adietish: Overrode contexts on behalf of adietish: ci/prow/e2e-openshift

In response to this:

/override "ci/prow/e2e-openshift"

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link

sonarqubecloud bot commented Feb 4, 2025

@openshift-merge-bot openshift-merge-bot bot merged commit ff97e67 into redhat-developer:main Feb 4, 2025
17 checks passed
@adietish adietish deleted the issue-957 branch February 4, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The default action text must be specified in plugin.xml or its class constructor
2 participants