Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 381735 - Checking out a tag results in undescriptive Dialog Box
Summary: Checking out a tag results in undescriptive Dialog Box
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.0 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 12:02 EDT by Ken Walker CLA
Modified: 2012-07-17 07:49 EDT (History)
1 user (show)

See Also:
maciej.bendkowski: review? (Szymon.Brandys)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Walker CLA 2012-06-05 12:02:26 EDT
If you open up all the tags for, say, the orion client you will see many.

If you click on the checkout icon you get a dialog with the tag name and then a text entry field.  There should be more descriptive text as to what you are entering.  I think it's the local branch name but not sure.  If it is, the text entry field could be populated with the tag name perhaps.
Comment 1 Maciej Bendkowski CLA 2012-07-10 06:25:45 EDT
Patch may be found on:
https://github.com/maciej-bendkowski/orion.client/commit/c98bbbb9ef362c19832549f3b338ccffea5d7e93

I(In reply to comment #0)
> I think it's the local branch name but not sure.  If it is, the text
> entry field could be populated with the tag name perhaps.

Done as requested. Now the input field has a description "Local Branch Name:",
and is prompted with the tag name (with an appropriate "tag_" prefix).

Formal Note:
I wrote all this code and have the rights to contribute it to Eclipse under the
eclipse.org web site terms of use.
Comment 2 Szymon Brandys CLA 2012-07-11 09:59:35 EDT
I think we should use command prompter aka ParametersDescription. See gitCommands.js#addTagCommand around line 1559.
Comment 3 Maciej Bendkowski CLA 2012-07-17 05:40:19 EDT
(In reply to comment #2)
> I think we should use command prompter aka ParametersDescription. See
> gitCommands.js#addTagCommand around line 1559.

Fix: https://github.com/maciej-bendkowski/orion.client/commit/e6a1651cf9c17ea2a37bd80ca4973056bb3e5c50

Now the checkoutTagCommand is using ParametersDescription as well as the 
previous getNewItemNameWithPrompt. This is almost the same solution as in
the addTagCommand.

Formal Note:
I wrote all this code and have the rights to contribute it to Eclipse under the
eclipse.org web site terms of use.
Comment 4 Szymon Brandys CLA 2012-07-17 06:18:30 EDT
I would remove the prompt (getNewItemNameWithPrompt) from the code. If the branch name is empty. clicking 'Submit' should do nothing. When we have validators added (see bug 380512), we could mark the field somehow to indicate that something should be entered.
Comment 5 Maciej Bendkowski CLA 2012-07-17 06:50:24 EDT
(In reply to comment #4)
> I would remove the prompt (getNewItemNameWithPrompt) from the code. If the
> branch name is empty. clicking 'Submit' should do nothing. When we have
> validators added (see bug 380512), we could mark the field somehow to indicate
> that something should be entered.

Fix: https://github.com/maciej-bendkowski/orion.client/commit/a426a09176d4d73b12f544b64f73f2b00c9251c3

Done as requested.
Comment 6 Szymon Brandys CLA 2012-07-17 07:26:30 EDT
Please merge commits and push to the branch on github again.
Comment 7 Szymon Brandys CLA 2012-07-17 07:49:55 EDT
(In reply to comment #6)
> Please merge commits and push to the branch on github again.
Done. Fixed with e1dec40449882d8dee90023de0cdff50ff64ce12.