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

Fix a bug where all groups/campaigns are returned from case insensitive search of get_group_by_alias/get_campaign_by_alias #80

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

thelok
Copy link
Contributor

@thelok thelok commented Apr 1, 2024

Bug is caused by the local variable alias clashing with the method parameter name (also alias) when performing a case insensitive search of get_group_by_alias/get_campaign_by_alias

In the 0.4.0 release I would get 1 result from the get_group_by_alias call but then I end up getting 400+ results in 0.4.1

@thelok thelok changed the title Fix a bug where all groups are returned from the group_group_by_alias() Fix a bug where all groups are returned from the get_group_by_alias() Apr 1, 2024
@thelok
Copy link
Contributor Author

thelok commented Apr 1, 2024

Upon further looking at the code... this particular bug exists in other spots as well.

@thelok thelok changed the title Fix a bug where all groups are returned from the get_group_by_alias() Fix a bug where all groups/campaigns are returned from get_group_by_alias/get_campaign_by_alias Apr 1, 2024
@thelok thelok changed the title Fix a bug where all groups/campaigns are returned from get_group_by_alias/get_campaign_by_alias Fix a bug where all groups/campaigns are returned from case insensitive search of get_group_by_alias/get_campaign_by_alias Apr 1, 2024
@Cyb3rWard0g
Copy link
Collaborator

Nice catch!! Thank you for all the contributions @thelok !!

@Cyb3rWard0g Cyb3rWard0g merged commit 9aaee7e into OTRF:master Apr 9, 2024
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.

2 participants