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

JBIDE-22371 Allow users easily manage environment variables of OpenShift application #1200

Closed
wants to merge 1 commit into from

Conversation

scabanovich
Copy link
Contributor

No description provided.

@scabanovich
Copy link
Contributor Author

@adietish , @fbricon , please review.

@adietish
Copy link
Member

adietish commented Jun 1, 2016

looks good code-wise, testing it

@@ -1280,6 +1316,10 @@
optional="true">
</commandParameter>
</command>
<command
id="org.jboss.tools.openshift.ui.command.deployment.envvar"
name="Manage Environment Variables">
Copy link
Member

@adietish adietish Jun 1, 2016

Choose a reason for hiding this comment

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

the label should be "Manage Environment Variables..." as it opens up a dialog.

@adietish
Copy link
Member

adietish commented Jun 1, 2016

The (preexisting - not provided by this PR) dialog to provide env vars is not following our general approach for required values. It displays an error marker if there's no value for the key:
image
In EnvironmentVarKeyValidator I would change #validate to the following:

        if(!(paramObject instanceof String))
            return ValidationStatus.cancel("Value is not an instance of a string");
        String value= (String) paramObject;
        if (StringUtils.isBlank(value)) {
            return ValidationStatus.cancel("Please provide a key name.");
        }

@adietish
Copy link
Member

adietish commented Jun 1, 2016

I also see that the wizard (not a new issue, the issue already exists) wont allow you to edit the name of a key, nor remove entries.

  1. EXEC: In Explorer: pick "Manage Environment Variables" in the context menu of a service
  2. EXEC: hit "Add" and provide a new key/value pair
  3. EXEC: select the new key/value
  4. ASSERT: "Remove" button is enabled, you can remove it
  5. EXEC: "Finish" the wizard
  6. EXEC: In Explorer: pick "Manage Environment Variables" in the context menu of the (same) service
  7. EXEC: select the key/value pair that you just added

Result:
"Remove" button is disabled, you cannot remove it

  1. EXEC: hit "Edit" (assuming that your key/value is still selected)
  2. EXEC: place cursor in the variable name

Result:
You cannot change the variable name. You can change the value though

I created https://issues.jboss.org/browse/JBIDE-22429 for this.

@adietish
Copy link
Member

adietish commented Jun 1, 2016

superseeded by #1203

@adietish adietish closed this Jun 1, 2016
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.

None yet

2 participants