diff --git a/bin/refresh_matviews.pl b/bin/refresh_matviews.pl index 0398a38406..26b222a1f1 100644 --- a/bin/refresh_matviews.pl +++ b/bin/refresh_matviews.pl @@ -78,7 +78,7 @@ =head1 AUTHOR @mv_names = ('materialized_stockprop'); } if ($mode eq 'phenotypes') { - @mv_names = ("materialized_phenotype_jsonb_table"); + @mv_names = ("materialized_phenoview", "materialized_phenotype_jsonb_table"); } my $status = refresh_mvs($dbh, \@mv_names, $concurrent); diff --git a/lib/CXGN/BrAPI/v1/Observations.pm b/lib/CXGN/BrAPI/v1/Observations.pm index 52e2757633..b32ceaa6c2 100644 --- a/lib/CXGN/BrAPI/v1/Observations.pm +++ b/lib/CXGN/BrAPI/v1/Observations.pm @@ -150,7 +150,7 @@ sub observations_store { ## Will need to initiate refresh matviews in controller instead my $bs = CXGN::BreederSearch->new( { dbh=>$c->dbc->dbh, dbname=>$c->config->{dbname}, } ); - my $refresh = $bs->refresh_matviews($c->config->{dbhost}, $c->config->{dbname}, $c->config->{dbuser}, $c->config->{dbpass}, 'fullview', 'concurrent', $c->config->{basepath}); + my $refresh = $bs->refresh_matviews($c->config->{dbhost}, $c->config->{dbname}, $c->config->{dbuser}, $c->config->{dbpass}, 'phenotypes', 'concurrent', $c->config->{basepath}); return CXGN::BrAPI::JSONResponse->return_success(\%result, $pagination, \@data_files, $status, $stored_observation_success); diff --git a/lib/SGN/Controller/AJAX/PhenotypesUpload.pm b/lib/SGN/Controller/AJAX/PhenotypesUpload.pm index 977bc89383..a81860e45e 100644 --- a/lib/SGN/Controller/AJAX/PhenotypesUpload.pm +++ b/lib/SGN/Controller/AJAX/PhenotypesUpload.pm @@ -168,7 +168,7 @@ sub upload_phenotype_store_POST : Args(1) { push @$success_status, "Metadata saved for archived file."; my $bs = CXGN::BreederSearch->new( { dbh=>$c->dbc->dbh, dbname=>$c->config->{dbname}, } ); - my $refresh = $bs->refresh_matviews($c->config->{dbhost}, $c->config->{dbname}, $c->config->{dbuser}, $c->config->{dbpass}, 'fullview', 'concurrent', $c->config->{basepath}); + my $refresh = $bs->refresh_matviews($c->config->{dbhost}, $c->config->{dbname}, $c->config->{dbuser}, $c->config->{dbpass}, 'phenotypes', 'concurrent', $c->config->{basepath}); $c->stash->{rest} = {success => $success_status, error => $error_status}; }