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

Modify the problem that the group name cannot be obtained #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chuanyichuan
Copy link

In use, I found that the name of the group could not be obtained. After checking the source code, I found that in the class Groups#ListRequest, id was used to assign a value to name

@uwolfer
Copy link
Owner

uwolfer commented Sep 7, 2020

Can you please post some details about the bug? Does it lead in an exception? Or does it just not work as expected?

@chuanyichuan
Copy link
Author

chuanyichuan commented Sep 10, 2020

Can you please post some details about the bug? Does it lead in an exception? Or does it just not work as expected?

Hi, it's a great honor to receive your reply. It is not a bug, just dose not work as expected. When I get the list of group, id and name are the same value, like that:
dee1b4d89b90ba5a6bbee9de42ae829

The key of map is my group's name, but the instance's name is null.It not work as expected, and I don't think it is reasonable. So I modify it, and I would like to bring your attention to review it. the result is:
7ff88bf5036c07605f7cab8b19f882d

Thank you.

e.getValue().name = e.getKey();
result.add(e.getValue());
}
List<GroupInfo> result = new ArrayList<>(map.values());
Copy link
Owner

Choose a reason for hiding this comment

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

Files in the com.google package should not be touched as these are copied over from official Gerrit source from time to time. Does your "fix" also work without this change? Or do you see any alternatives to fix this issue?

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