Skip to content

Commit

Permalink
cleanup a TODO related to indexing a first release
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Apr 24, 2016
1 parent e0f09d6 commit e0362f2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/MetaCPAN/Document/Release.pm
Expand Up @@ -255,18 +255,13 @@ sub _build_first {
$self->index->type('release')->filter(
{
and => [
{ term => { distribution => $self->distribution } },
{ term => { first => 1 } },
{
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 e0362f2

Please sign in to comment.