Skip to content

Explain blank and repeated CSV headers on judging upload - #230

Merged
pradhamk merged 1 commit into
mainfrom
judging-column-message
Oct 3, 2026
Merged

pradhamk merged 1 commit into
mainfrom
judging-column-message

Conversation

@pradhamk

@pradhamk pradhamk commented Oct 3, 2026

Copy link
Copy Markdown
Member

Summary

Uploading a Devpost export that had been re-saved in a spreadsheet app showed:

The CSV is missing columns from the Devpost projects export. Problem columns: , , , , .

MDredd lists each bad header name, and these were blank: the spreadsheet had padded the file with 5 unnamed columns. The message now:

  • says the columns don't match, instead of "missing" (the same code covers repeated and blank headers too)
  • lists only named problem columns, as "Missing or repeated: …"
  • counts blank headers and says to upload the file as downloaded from Devpost

mhacks/MDredd#32 makes MDredd drop blank-header columns, so a re-saved export uploads. After that, the blank-header message only appears when every header is blank.

Testing

  • tsc, eslint and prettier pass.

🤖 Generated with Claude Code

MDredd's INVALID_COLUMNS lists the bad header names, and blank headers
from a re-saved export came out as "Problem columns: , , , , .". Say
how many columns have no header and how to avoid it, and list only
named problem columns.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@pradhamk
pradhamk merged commit b1c3c80 into main Oct 3, 2026
1 check passed
@pradhamk
pradhamk deleted the judging-column-message branch October 3, 2026 21:17
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.

1 participant