Skip to content

Add UPC prefix filter for mobile barcode scanning#563

Merged
bpepple merged 1 commit into
masterfrom
API-UPC-filtering
Jul 19, 2026
Merged

Add UPC prefix filter for mobile barcode scanning#563
bpepple merged 1 commit into
masterfrom
API-UPC-filtering

Conversation

@bpepple

@bpepple bpepple commented Jul 19, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a upc_starts_with filter to IssueFilter for the /api/issue/ endpoint, matching issues whose upc field starts with the given value
  • Mobile camera barcode-scanning frameworks (Google ML Kit on Android, AVFoundation on iOS) read the 12-digit UPC-A but strip the 5-digit EAN supplemental, so exact upc matches fail for scanned codes — this lets clients search with just the 12 digits they have
  • Document the new filter parameter and add a usage example in api/README.md

Closes #562

Mobile camera frameworks (Google ML Kit, AVFoundation) strip the 5-digit EAN supplemental from scanned UPC barcodes. Add upc_starts_with to IssueFilter so clients can get an issue list using just the 12-digit UPC-A.
@bpepple bpepple self-assigned this Jul 19, 2026
@bpepple bpepple added enhancement New feature or request non-breaking An API non-breaking change api An API bug/feature labels Jul 19, 2026
@bpepple
bpepple merged commit 942cd31 into master Jul 19, 2026
2 checks passed
@bpepple
bpepple deleted the API-UPC-filtering branch July 19, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api An API bug/feature enhancement New feature or request non-breaking An API non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add UPC prefix filter for mobile barcode scanning

1 participant