fix: Improve CSV badge awarding with validation and error reporting#875
Open
Marvinrose wants to merge 1 commit intofedora-infra:swatantryafrom
Open
Conversation
This was referenced Mar 28, 2026
0804616 to
fb9f0ee
Compare
Assisted-by: Claude (Anthropic) - used for reference on bytes decoding. Signed-off-by: Chibuezem Marvinrose <rozzeymarvin32@gmail.com>
fb9f0ee to
75c0780
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix: CSV badge awarding with validation and error reporting
Fixes #348
Problem
The
award_from_csvendpoint existed to allow admins to award badges in bulk via CSV upload, but had a TODO requesting validation and feedback that was never implemented.The original code had file validation issues, bytes read as strings, silent failures with no admin feedback..
Fix
To fix this issue, all i did was:
email,badge_idandbadge_id,emailare accepted