Review & optimize API calls made during study start
@kimberscott is already working on this.
Since Apr 3, 2020.
- Dominant language
- Python
- Stars
- 12
- Forks
- 21
- Avg merge
- 5d 19h
- Merged PRs (30d)
- 5
Description
Currently (a) the frameplayer makes a bunch of perhaps unnecessary API calls when starting a study session and (b) those calls are inefficient, leading to long load times esp. if there are previous sessions.
How to replicate:
1. Create a study on local lookit-api instance; make active & public (need to set 'active' state through admin interface to avoid requiring the study be properly "built" , or set "built" flag via admin interface)
2. Participate in study by going to localhost:4200/studies// - make about 10-20 responses just by refreshing page. See https://lookit.readthedocs.io/en/develop/frame-dev-setup.html for setup instructions to get ember-lookit-frameplayer & lookit-api to talk with each other.
3. Observe loading of page (e.g. using Django debug toolbar) & see if API calls & their load times make sense - this has been taking ~10-20s for Kim
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.