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

WIP - cast GitHub usernames to lowercase #99

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

Conversation

mjlshen
Copy link

@mjlshen mjlshen commented Sep 12, 2023

This PR attempts to make elekto's voting processes case insensitive with respect to GitHub usernames by casting eligible_voters and the current user's username to lowercase.

Closes #84

@mjlshen mjlshen changed the title cast GitHub voter usernames to lowercase WIP - cast GitHub usernames to lowercase Sep 12, 2023
@mjlshen
Copy link
Author

mjlshen commented Sep 12, 2023

I still need to figure out how to test this following https://elekto.dev/docs/setup/devinstall/

@jberkus
Copy link
Member

jberkus commented Aug 26, 2024

Any luck on testing this? Your code is pretty similar to what I did as a trial earlier, and didn't actually work, due to breaking the URLs.

@mjlshen
Copy link
Author

mjlshen commented Aug 28, 2024

Sorry, I haven't. I think I'll be able to by the end of next week, but I don't mind if someone beats me to it :D

@jberkus
Copy link
Member

jberkus commented Aug 28, 2024

If you end up putting more code work into this, it would be better to write a utility function that does the case-insensitive list comprehension and make the various references use that. If you get something that functionally works, though, I'll merge it whether or not you did that.

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.

GitHub handles should not be case sensitive in voters.yaml for eligibility
2 participants