Skip to content

Fix media files & HBS format validation#529

Merged
yinanazhou merged 21 commits intomainfrom
develop
Mar 13, 2026
Merged

Fix media files & HBS format validation#529
yinanazhou merged 21 commits intomainfrom
develop

Conversation

@yinanazhou
Copy link
Copy Markdown
Member

No description provided.

PouyaMohseni and others added 21 commits January 9, 2026 12:35
feat: add instrument CSV dump command
Added a link to the Wiki guideline below the "Add another row" button to help users with instrument name conventions.
Related to #512.
- Update download_imgs to detect and preserve source format (JPEG, PNG,
  WebP, GIF, SVG) instead of converting all images to PNG
- Add format-aware thumbnail generation that matches original format
- Add validate_image_extension() for import/download path validation
- Centralize format constants in instruments/constants.py
- Constrain AVResource.format field with choices and max_length
- Add ALLOWED_IMAGE_EXTENSIONS setting for extension validation

refs: #490
- Use requests.Session with exponential backoff retry on 429/5xx errors
- Add 1-second delay between downloads to respect Wikimedia rate limits
- Enable connection pooling via session for reduced overhead

refs: #488
feat: add 12 noto sans families & self-hosted Gentium font
Preserve image formats and improve download handling
add guideline link to AddName.html
feat: add instrument resource metadata with restricted Google Drive links
fix: update nginx build context and add production Dockerfile
- Added normalize() function to strip accents and lowercase text
- Append normalized version in the datalist label if different from the original

resolves #502
feat: add normalized version of language autonyms for input matching
fix: validate HBS format when adding an instrument
@yinanazhou yinanazhou requested a review from PouyaMohseni March 13, 2026 17:35
@yinanazhou yinanazhou merged commit 9884583 into main Mar 13, 2026
9 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants