Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Changelog

All notable changes to this project will be documented in this file.

## [v1.0] - 2026-06-03

### Added
- HS code fuzzy search via PostgreSQL trigram similarity (`GET /api/v1/hs-codes/?q=`)
- Weighted scoring — description ranked 2× higher than HS code
- Configurable similarity threshold via `HS_CODE_SEARCH_THRESHOLD` env variable
- CSV bulk upload with duplicate detection and blank row skipping
- Health check endpoint (`GET /api/v1/health/`)
- Role-based permission class (`IsAdminOrStaff`) for internal endpoints
- Multi-stage Dockerfile with non-root user
- Docker Compose setup with PostgreSQL 16 and healthcheck
- CI workflow — 40 tests against a live PostgreSQL service container
- CD workflow — auto-deploys to VPS on CI success via SSH
- Black code formatting enforced via pre-commit hook
- Loguru structured logging on all views
- Throttling — 100 req/min (anon), 1000 req/min (authenticated) in production

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 DigitalTouch

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading