Bugzilla – Attachment 89515 Details for
Bug 22879
Cannot reindex elastic if missing metadata
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22879: Add a test-like
Bug-22879-Add-a-test-like.patch (text/plain), 996 bytes, created by
Jonathan Druart
on 2019-05-09 15:45:55 UTC
(
hide
)
Description:
Bug 22879: Add a test-like
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-05-09 15:45:55 UTC
Size:
996 bytes
patch
obsolete
>From b231ed167eaa8c337c110a5a841db33041e25861 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 9 May 2019 10:44:53 -0500 >Subject: [PATCH] Bug 22879: Add a test-like > >--- > t/db_dependent/Koha/BiblioUtils/Iterator.t | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/t/db_dependent/Koha/BiblioUtils/Iterator.t b/t/db_dependent/Koha/BiblioUtils/Iterator.t >index c2c5a39f28..05d3a25629 100644 >--- a/t/db_dependent/Koha/BiblioUtils/Iterator.t >+++ b/t/db_dependent/Koha/BiblioUtils/Iterator.t >@@ -60,4 +60,9 @@ my @result_tags = map { $_->tag() } $record->field('...'); > my @sorted_tags = sort @result_tags; > is_deeply(\@sorted_tags,$expected_tags, "Got the same tags as expected"); > >+Koha::Biblio::Metadatas->find({ biblionumber => $biblio->biblionumber })->delete; >+my $records = Koha::BiblioUtils->get_all_biblios_iterator(); >+my $next = sub { $records->next }; >+while ( my $r = $next->() ) {} >+ > $schema->storage->txn_rollback(); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22879
: 89515