Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Fix workflow in 'Find User to Add Dialog' in language team : https://bugzilla.redhat.com/show_bug.cgi?id=998825 #138

Merged
merged 5 commits into from Aug 22, 2013

Conversation

alex-sl-eng
Copy link
Member

As described in https://bugzilla.redhat.com/show_bug.cgi?id=998825

when a person is selected, "Translator" role is enabled by default
when a role is selected, that entry (first column) will be selected as well.

public boolean isCoordinator()
{
return isCoordinator;
this.selected = true; //user needs to be selected when a role is selected
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like it will also select the user when the role is un-selected. I think each role would need to call a method like:

private void refreshSelected()
{
    selected = isReviewer || isTranslator || isCoordinator;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Good one.

@davidmason
Copy link
Contributor

The xml looks like it has a mix of 2 and 4 space indentation, might be good to keep it consistent.

@huangp
Copy link
Collaborator

huangp commented Aug 21, 2013

just asking. Do we need a selected checkbox if any role checked will trigger the selection? Until we enable language observer type of member(not translator, not reviewer, not coordinator), there seems to be no need to have a selected checkbox there which just confuses user.

@davidmason
Copy link
Contributor

@huangp Good point. I think it is good to show that a user is selected, but maybe the role checkboxes are sufficient for that. I would prefer to just have a subtle highlight on the row when selected == true

@davidmason
Copy link
Contributor

Logic looks good. Please format the java code, and fix the mixed tabs & spaces in the xml.

<rich:dataTable id="threads" value="#{languageTeamAction.localeMembers}"
var="member" rendered="#{not empty languageTeamAction.locale.members}"
sortMode="single">
<rich:column id="usernameCol" width="auto" sortBy="#{member.person.account.username}" sortOrder="ascending">
Copy link
Contributor

Choose a reason for hiding this comment

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

The formatting in this file seems all messed up now, maybe due to mixed spaces and tabs? For this file I think it would be best to roll bask the formatting changes and just manually convert the spaces to tabs in the few parts that were edited.

@davidmason
Copy link
Contributor

👍

davidmason added a commit that referenced this pull request Aug 22, 2013
Fix workflow in 'Find User to Add Dialog' in language team : https://bugzilla.redhat.com/show_bug.cgi?id=998825
@davidmason davidmason merged commit dc28f93 into integration/master Aug 22, 2013
@davidmason davidmason deleted the rhbz998825 branch August 22, 2013 05:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants