Importing of experiments was failing during QA because the volume of data (for example, ~100,00 germplasm) was causing the time to refresh the phenotype materialized view after obs. unit creation to exceed the limit set in bi-api (10 minutes) when a timeout exception is thrown if it hasn't received a response from the brapi service.
The call to refresh the mat. view was changed from asynchronous to synchronous to avoid potential race conditions.
Checklist
[ ] Refactoring only
[ ] Documentation only
[ ] Fixture update only
[x] Bug fix
[ ] The relevant issue has been closed.
[x] Further work is required.
[ ] New feature
[ ] Relevant tests have been created and run.
[ ] Data was added to the fixture
[ ] Data was added via a patch in /t/data/fixture/patches/.
[ ] User-Facing Change
[ ] The user manual in /docs has been updated.
[ ] Any new Perl has been documented using perldoc.
[ ] Any new JavaScript has been documented using JSDoc.
[ ] Any new legacy JavaScript has been moved from /js to /js/source/legacy.
Description
Importing of experiments was failing during QA because the volume of data (for example, ~100,00 germplasm) was causing the time to refresh the phenotype materialized view after obs. unit creation to exceed the limit set in bi-api (10 minutes) when a timeout exception is thrown if it hasn't received a response from the brapi service.
The call to refresh the mat. view was changed from asynchronous to synchronous to avoid potential race conditions.
Checklist
/t/data/fixture/patches/
./docs
has been updated./js
to/js/source/legacy
.