Skip to content

Commit

Permalink
Merge pull request #509 from metacpan/mickey/GH446
Browse files Browse the repository at this point in the history
removing timestamp references (not supported in ES2.x)
  • Loading branch information
ranguard committed Aug 11, 2016
2 parents 0f04a62 + bd79747 commit 754782c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 35 deletions.
12 changes: 1 addition & 11 deletions lib/MetaCPAN/Document/Favorite.pm
Expand Up @@ -33,15 +33,5 @@ has date => (
default => sub { DateTime->now },
);

=head2 timestamp
Sets the C<_timestamp> field to the value of L</date>.
=cut

has timestamp => (
is => 'ro',
timestamp => {}, # { path => 'date', store => 1 },
);

__PACKAGE__->meta->make_immutable;
1;
11 changes: 0 additions & 11 deletions lib/MetaCPAN/Model/User/Account.pm
Expand Up @@ -103,17 +103,6 @@ sub _build_looks_human {
return $self->has_identity('pause') || ( $self->passed_captcha ? 1 : 0 );
}

=head2 timestamp
Sets the C<_timestamp> field.
=cut

has timestamp => (
is => 'ro',
timestamp => {},
);

=head1 METHODS
=head2 add_identity
Expand Down
11 changes: 0 additions & 11 deletions lib/MetaCPAN/Model/User/Session.pm
Expand Up @@ -6,16 +6,5 @@ use warnings;
use Moose;
use ElasticSearchX::Model::Document;

=head2 timestamp
Sets the C<_timestamp> field.
=cut

has timestamp => (
is => 'ro',
timestamp => {}, # { store => 1 },
);

__PACKAGE__->meta->make_immutable;
1;
3 changes: 1 addition & 2 deletions lib/MetaCPAN/Script/Session.pm
Expand Up @@ -45,8 +45,7 @@ __PACKAGE__->meta->make_immutable;

=pod
Purges user sessions. The timestamp field doesn't appear to get populated in
the session type, so we just iterate over the sessions for the time being and
Purges user sessions. we iterate over the sessions for the time being and
perform bulk delete.
=cut

0 comments on commit 754782c

Please sign in to comment.