Avoid parallel table.close() on the same table #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For tables on Projects or Datasets, we try 2 queries
image=1
(lowercase) andImage=1
on the same Table at the same time, which leads to errors. See #6This changes the webclient right panel to make each pair of queries run in series instead of parallel.
Screenshot shows calls in Chrome dev-tools before this PR, where we try to load table data on a parent Screen, Plate, Project (x2) and Dataset (x2) all at once.
With this PR, we wait for the first queries on Project and Dataset to return, and if they have no data then we make another call with the alternative query:
To test, check that table data is shown as expected with no error dialogs.
This can be tested at https://merge-ci.openmicroscopy.org/web/webclient/?show=dataset-4919 (user-3), which was the sample data originally used to replicate the error.
NB: In this data, the first call to get table data from Dataset is successful, so a second call is never made.