|
Ran
|
Jobs
1
|
Files
141
|
Run time
1min
|
Badge
README BADGES
|
push
IGVF-2056 Cache common objects (#646) * Add a class to use the Redis cache easily for any generic data. Use this new API for the home page. Don’t cache the files and samples — just the file sets. * Make a new `/api/profiles` endpoint to handle requests for `/profiles` while caching the results. Make a new module specifically to fetch and cache profiles. I might make it more generic in the next commit * Some small cleaning up. * Update the ServerCache class to specify the fetch configuration _after_ instantiating the class to work better when caching data with data *not* from the data provider. Add a convenience function to retrieve and cache entire objects from the data provider. All places that load the `/profiles` object now cache the profiles. * Cache the collection-titles endpoint. * Split getCacheClient() into its own file so we can skip Jest testing it. Add Jest tests for the cache.ts module. * Remove a couple unused variables. * Add documentation for the cache.ts module. * Add a `ttl` parameter to `retrieveCacheBackedData` and set it to 20 minutes for /profiles and /collection-titles. * Return the /profiles and /collection-titles `ttl` values back to one hours. I changed my mind. * Have the audit documentation page use the /profiles cache. * Add debugging code. * This reverts commit 327ca67a1.
1124 of 1124 branches covered (100.0%)
Branch coverage included in aggregate %.
43 of 43 new or added lines in 3 files covered. (100.0%)
2672 of 2672 relevant lines covered (100.0%)
16.83 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | #4695.1 | 0 |
100.0 |