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

CHE-4516: Check command goal name uniqueness ignoring string case considerations on new goal creation #4656

Merged
merged 2 commits into from
Mar 31, 2017

Conversation

azatsarynnyy
Copy link
Member

@azatsarynnyy azatsarynnyy commented Mar 31, 2017

What does this PR do?

Since Commands Explorer displays all goals names in uppercase we need to check newly created goal name for uniqueness ignoring string case considerations in order to avoid situations like on this screenshot:
image

So this PR adds checking goal name uniqueness ignoring string case considerations on new goal creation.

Now user will be proposed to enter another goal's name:
goal

What issues does this PR fix or reference?

#4516

Changelog

Now all command goals names must be unique ignoring string case considerations.

Release Notes

N/A

Docs PR

N/A

final CommandGoal goal = goalRegistry.getGoalForId(goalId);

goalInitial = goal.getId();
goalInitial = editedCommand.getGoal();

Choose a reason for hiding this comment

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

Shouldn't it be initialGoal? I'm a bit off the context, but this name seems quite odd to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, thx. Fixed

@codenvy-ci
Copy link

@azatsarynnyy azatsarynnyy merged commit 1f4666c into master Mar 31, 2017
@azatsarynnyy azatsarynnyy deleted the CHE-4516 branch March 31, 2017 13:22
@JamesDrummond JamesDrummond added this to the 5.7.0 milestone Apr 9, 2017
@JamesDrummond JamesDrummond mentioned this pull request Apr 9, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
…siderations on new goal creation (eclipse-che#4656)

CHE-4516: Check command goal name uniqueness ignoring string case considerations on new goal creation
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.

5 participants