Loading screen to wait for corpus replication on creation
https://redmine.teklia.com/issues/9134
A new view at /corpus/:corpusId/wait
requires authentication, a verified user and the enterprise
feature flag. It shows a loading screen, with Please wait while your project is being created above a large loading spinner.
On mount, it tries to list all corpora. If the corpus with the corpusId
is available, it redirects to the elements navigation page for this corpus immediately. If it isn't, a setTimeout
should make the view wait for one second and try again.
ListCorpus
call, which is normally unnecessary. Set corpora.loaded
to false
before listing, and make sure that the view causes an actual API request and an update of the store on every attempt.
After five consecutive attempts, not counting the initial list call (which did not require the user to wait for a second), the loading screen is replaced by a red notification:
An error occured while creating your project, or it is taking too long to be created. Please contact your instance administrator.
The EditionForm.vue
component should redirect to this new wait page, but only when the enterprise
feature flag is set. This page is not necessary in CE where replication is not supported.