Skip to content

Repo exact match - #293

Merged
ericmj merged 1 commit into
hexpm:mainfrom
praialabs:repo-exact-match
Aug 26, 2026
Merged

ericmj merged 1 commit into
hexpm:mainfrom
praialabs:repo-exact-match

Conversation

@rhcarvalho

@rhcarvalho rhcarvalho commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Docker tags query previously filtered repo using prefix matching (LIKE 'repo%'), which meant queries for hexpm/elixir also matched per-arch repositories like hexpm/elixir-amd64.

Switch the repository filter to an exact equality match (eq_filter(:repo, ...)), drop the docker_tags_repo_prefix_index index now that equality queries use existing composite indexes, and update documentation and API/LiveView tests.

Closes #289.

Builds on top of #291 (merged).

May change depending on feedback on #289 (comment), if we decide to bundle multiple API changes together:

Details
  • Exact match on os
  • Exact match on arch
  • Optional list of strings on arch (meaning multi-arch tag with all specified archs)
  • Version-aware prefix matching for elixir_version and erlang_version

Update: further API improvements extracted to separate issues: #294, #295, #296.

Testing

mix format --check-formatted
mix test

The Docker tags query previously filtered repo using prefix matching (LIKE 'repo%'),
which meant queries for hexpm/elixir also matched per-arch repositories like
hexpm/elixir-amd64.

Switch the repository filter to an exact equality match (eq_filter(:repo, ...)),
drop the docker_tags_repo_prefix_index index now that equality queries use
existing composite indexes, and update documentation and API/LiveView tests.
@rhcarvalho
rhcarvalho marked this pull request as ready for review August 26, 2026 08:30
@ericmj
ericmj merged commit a8e58d1 into hexpm:main Aug 26, 2026
2 checks passed
@ericmj

ericmj commented Aug 26, 2026

Copy link
Copy Markdown
Member

Thank you! 💜

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Bob Docker image LiveView and API no exact match on repo field

2 participants