-
Notifications
You must be signed in to change notification settings - Fork 70
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(infobox): return false instead of nil for custom Publisherpremier #4911
Conversation
components/infobox/wikis/mobilelegends/infobox_league_custom.lua
Outdated
Show resolved
Hide resolved
can I just remove the '1' here? is it for app reasons? (Compared to wildrift for example)
cc hjp: you may want to double check on this if this is all the fixes I needed to do or not given Warcraft code is a bit different
added all the wikis I could find, please check on the fixes for LoL and Warcraft if possible since they seem different from the rest by the original setup and I'm not sure if theres further fixes needed (the current fix revision already solves the problem) Some wikis do return nil like Dota2, but the issue isnt popping over there so I didnt touch it |
Tournaments list shows highlight unintentionally, this seems to be the fix for the case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on several wikis you just slap Logic.readBool on it
there we need to check what values are stored there currently
like it could be that some wikis have string inputs there
- brawlstars
- cod
- crossfire
- fortnite
- halo
- naraka
- pkmn
- pubg
- pubgm
i will write you a small module on commons for it
but you will have to do the leg work (previewing stuff per the above listed wikis and reporting on the results)
for warcraft it might be better to use or ''
preview |
you have 3 options:
|
maybe make sure that no module/template/... conditions on that |
warcraft has several values there too fwiw |
for warcraft i'm trying the first options but surely I didnt do it correctly (since WC and CS had a very unique setup that I would be clueless at, so pasting this function is the only way I know) https://liquipedia.net/warcraft/index.php?title=Module%3AInfobox%2FLeague%2FCustom%2Fdev%2Fh2&type=revision&diff=943825&oldid=943818 (This would likely required different approach on CS given CS has even more complicated setup with Valve Tiers) |
"1" seems to be existed since 2022 so it looks like a primitive code
Summary
Several wikis uses a different param for highlighted tiers (e.g.
riotpremier
valve-sponsored
) which means a local implementationthese wikis apparently returns nil if its unset, in #4852 after the TeamCard Storage changes publishertier storage to false which meant now if it returns nil = it causes the highlight to triggered anyway
Side Note
There are wikis that still returns nil but the issue does not occured (e.g. Dota2) I will leave those untouched