Skip to content

fix: upload minutes, agenda, bluesheets fail if UTF-8 check fails - #11965

Merged
jennifer-richards merged 1 commit into
ietf-tools:mainfrom
rpcross:fix/minutes-encoding
Oct 28, 2026
Merged

jennifer-richards merged 1 commit into
ietf-tools:mainfrom
rpcross:fix/minutes-encoding

Conversation

@rpcross

@rpcross rpcross commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 89.05%. Comparing base (0ee9354) to head (032aaee).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11965   +/-   ##
=======================================
  Coverage   89.04%   89.05%           
=======================================
  Files         342      342           
  Lines       46590    46631   +41     
=======================================
+ Hits        41488    41529   +41     
  Misses       5102     5102           

β˜” View full report in Codecov by Harness.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jennifer-richards
jennifer-richards merged commit 49f1e1c into ietf-tools:main Oct 28, 2026
8 checks passed
rpcross added a commit to rpcross/datatracker that referenced this pull request Oct 28, 2026
Carry the require_field fix from ietf-tools#11965 into UploadOrEnterFormMixin, which
replaced the UploadOrEnterAgendaForm it was made in, so a failed UTF-8 check
no longer also reports "You must fill in this field".

Initialize file_encoding in FileUploadForm and record UTF-8 for entered text,
so the agenda and bluesheet views read the encoding the same way.

Claude-Session: https://claude.ai/code/session_01VCvCDMsamhx8uxq4JC2Eyt
jennifer-richards pushed a commit that referenced this pull request Oct 29, 2026
* fix: accept text/csv bluesheet uploads

Bluesheet .txt files with comma-separated attendee lines are sniffed
by libmagic as text/csv and were rejected as an unexpected mime type.
Allow text/csv for bluesheets and accept it when the browser uploads
the file as text/plain.

Relates to #7804

* feat: allow entering bluesheet text directly

Add an Upload/Enter choice to the bluesheet upload page, like the one
on the agenda page. Entered text is saved as a .txt revision. When
revising a .txt bluesheet, the text box starts with the current
text.

Move the upload-or-enter form logic into a shared mixin used by both
the agenda and bluesheet forms. Rename upload-session-agenda.js to
upload-or-enter-material.js, since both pages now use it.

Relates to #7804

* fix: replace jquery with vanilla js

* fix: include text/csv as valid

* fix: integrate UTF-8 upload validation with upload-or-enter forms

Carry the require_field fix from #11965 into UploadOrEnterFormMixin, which
replaced the UploadOrEnterAgendaForm it was made in, so a failed UTF-8 check
no longer also reports "You must fill in this field".

Initialize file_encoding in FileUploadForm and record UTF-8 for entered text,
so the agenda and bluesheet views read the encoding the same way.

Claude-Session: https://claude.ai/code/session_01VCvCDMsamhx8uxq4JC2Eyt
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants