From 67ecd56a0aaf977fa1a22aa6e2378c9317c72549 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 28 Nov 2023 14:56:21 +0000 Subject: www: load and use cindex join data This is a major step in solving the problem of having to manually associate hundreds/thousands of coderepos with hundreds/thousands of public-inboxes to power solver (and more). --- xt/solver.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xt') diff --git a/xt/solver.t b/xt/solver.t index 51b4144c..372d003b 100644 --- a/xt/solver.t +++ b/xt/solver.t @@ -10,6 +10,7 @@ use_ok($_) for @psgi; use_ok 'PublicInbox::WWW'; my $cfg = PublicInbox::Config->new; my $www = PublicInbox::WWW->new($cfg); +$www->preload; my $app = sub { my $env = shift; $env->{'psgi.errors'} = \*STDERR; @@ -63,7 +64,7 @@ while (my ($ibx_name, $urls) = each %$todo) { skip(qq{[publicinbox "$ibx_name"] not configured}, scalar(@$urls)); } - if (!defined($ibx->{coderepo})) { + if (!defined($ibx->{-repo_objs})) { push @gone, $ibx_name; skip(qq{publicinbox.$ibx_name.coderepo not configured}, scalar(@$urls)); -- cgit v1.2.3-24-ge0c7