Fix media files & HBS format validation#529
Merged
yinanazhou merged 21 commits intomainfrom Mar 13, 2026
Merged
Conversation
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
PouyaMohseni
approved these changes
Mar 13, 2026
|
🎉 This PR is included in version 1.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
No description provided.