PGXN::API has traditionally indexed only stable releases. This meant that a search returned no results for distributions that have no stable releases, even if the search query is relevant.
With this change, if a release's status is testing and there are no existing stable releases then add it to the index. If its status is unstable and there are no stable or testing releases then add it to the index.
This will make early releases easier to find via search queries.
Done by a bit of trickery with local and a field in the Indexer. add_distribution makes it local, and then merge_distmeta actually sets it once it has the relevant release history to make the assessment. That setting then sticks for the remaining methods add_distribution calls, but resets when it completes its work. This ensures it's set correctly for the specific release passed to each call to add_distribution.
Resolves #2.
While at it, update the Changes info about the removal of old deployment files and note the attention paid to docfile added in c13c746 (#32).
PGXN::API has traditionally indexed only stable releases. This meant that a search returned no results for distributions that have no stable releases, even if the search query is relevant.
With this change, if a release's status is
testing
and there are no existing stable releases then add it to the index. If its status isunstable
and there are no stable or testing releases then add it to the index.This will make early releases easier to find via search queries.
Done by a bit of trickery with
local
and a field in the Indexer.add_distribution
makes itlocal
, and thenmerge_distmeta
actually sets it once it has the relevant release history to make the assessment. That setting then sticks for the remaining methodsadd_distribution
calls, but resets when it completes its work. This ensures it's set correctly for the specific release passed to each call toadd_distribution
.Resolves #2.
While at it, update the
Changes
info about the removal of old deployment files and note the attention paid todocfile
added in c13c746 (#32).