Skip to content

Commit

Permalink
Revert "cleanup a TODO related to indexing a first release"
Browse files Browse the repository at this point in the history
This reverts commit e0362f2.

breaks some tests.
  • Loading branch information
mickeyn committed Apr 24, 2016
1 parent e0362f2 commit 38380e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/MetaCPAN/Document/Release.pm
Expand Up @@ -255,13 +255,18 @@ sub _build_first {
$self->index->type('release')->filter(
{
and => [
{ term => { first => 1 } },
{ term => { distribution => $self->distribution } },
{
range => {
version_numified =>
{ 'lt' => $self->version_numified }
}
},

# REINDEX: after a full reindex, the above line is to replaced with:
# { term => { first => \1 } },
# currently, the "first" property is not computed on all releases
# since this feature has not been around when last reindexed
]
}
)->count
Expand Down

0 comments on commit 38380e6

Please sign in to comment.