-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix static champion by ID #65
Fix static champion by ID #65
Conversation
@hanscauwenbergh, I have some concerns about your proposed changes. The current implementation seems correct as we verify if the given ID matches any ID in the champions array. Then, we invoke the One potential improvement we might consider is to avoid redundant calls to |
@Nico-Mayer Mm, thanks for the reply. It looks to me the For Wukong (ID: MonkeyKing, name: Wukong, see link) Shall I update the argument's name and update the call sides? |
@hanscauwenbergh Ah, I now see what you mean, and I think you're right. While the current implementation works for most champions, it will fail in the case with Wukong that you mentioned. Therefore, we need to update the argument names and possibly some existing tests. @KnutZuidema might be able to provide more insight on this. |
@hanscauwenbergh does it always work with the Champion ID? I'm a bit fuzzy on the relationship between |
@KnutZuidema @hanscauwenbergh This change would be a breaking one, so it might be better to remove the From what I understand, the relationship between |
Thank you for the explanation @Nico-Mayer 🙏🏼 I think the bug here is that I assumed that the DDragon endpoint would use the champion name as a parameter, but it uses the ID instead. That means the implementations of
|
@KnutZuidema Appreciate the input, I've updated the code according to your suggestion but let me know if it'd need any further changes 🙂 |
Head branch was pushed to by a user without write access
Changes: