Improve performance of collection lab journal display

Refactoring Task

🗻 Summary

In the collection detail page in the Nuxtend, users can see a list of all lab journal entries in a collection. Right now they are fetched by fetching the lab journal entries of each data object in the collection. For big collections this leads to a linear increase of the number of requests with more data objects in the collection.

💣 Why is the current state bad?

The lab journal list in the collection is very slow for big collections due to the number of requests.

🥅 How could that be improved?

Use a query param for the collection id to fetch all lab journal entries of a collection in one request.

💡 Hints

🤔 Risks & Open Questions

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information