Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Refactor load-cache/index.js.#232

Open
jzohrab wants to merge 1 commit intomasterfrom
refactor-load-cache
Open

Refactor load-cache/index.js.#232
jzohrab wants to merge 1 commit intomasterfrom
refactor-load-cache

Conversation

@jzohrab
Copy link
Contributor

@jzohrab jzohrab commented Jun 12, 2020

Summary

Simplify logic.

  • quick exit load any time it returns no files
  • try local first, then s3
  • remove boolean that determines behaviour
  • extract date bound validation

Notes

This was some work I'd started a while back. I'd like to merge it as it is clearer than the current code, and the clarity will hopefully let us more quickly add "download cache to local" capability, which speeds up local development.

Simplify logic.

* quick exit load any time it returns no files
* try local first, then s3
* remove boolean that determines behaviour
* extract date bound validation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant