Skip to content

Commit

Permalink
removing timestamp references (not supported in ES2.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Aug 3, 2016
1 parent 1ab4491 commit bd79747
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 bd79747

Please sign in to comment.