nasa / earthdata-download

Download your Earth science data with only one click
https://nasa.github.io/earthdata-download/
Other
22 stars 6 forks source link

EDD-6: Switch from electron-store to sqlite3 #5

Closed macrouch closed 1 year ago

macrouch commented 1 year ago

Overview

What is the feature?

Switching the local storage from electron-store (flat json file) to a sqlite3 database.

What areas of the application does this impact?

Pretty much everything. Any downloads or preferences storage

Checklist

codecov-commenter commented 1 year ago

Codecov Report

Merging #5 (6cbf3a1) into main (944a32d) will increase coverage by 1.22%. The diff coverage is 81.19%.

@@            Coverage Diff             @@
##             main       #5      +/-   ##
==========================================
+ Coverage   73.64%   74.87%   +1.22%     
==========================================
  Files          42       43       +1     
  Lines         736      776      +40     
  Branches      193      194       +1     
==========================================
+ Hits          542      581      +39     
- Misses        194      195       +1     
Impacted Files Coverage Δ
src/app/components/DownloadItem/DownloadItem.jsx 93.75% <0.00%> (-3.03%) :arrow_down:
src/app/constants/downloadStates.js 100.00% <ø> (ø)
src/main/main.ts 0.00% <0.00%> (ø)
src/main/utils/initializeDownload.ts 0.00% <0.00%> (ø)
src/main/utils/database/getDatabaseConnection.ts 20.00% <20.00%> (ø)
src/main/eventHandlers/willDownload.ts 76.00% <72.72%> (-1.78%) :arrow_down:
src/main/utils/windowStateKeeper.ts 52.63% <87.50%> (+5.57%) :arrow_up:
src/main/eventHandlers/beginDownload.ts 100.00% <100.00%> (ø)
src/main/eventHandlers/cancelDownloadItem.ts 100.00% <100.00%> (ø)
src/main/eventHandlers/clearDefaultDownload.ts 100.00% <100.00%> (ø)
... and 11 more