Refactor the structure of the local storage
Cryolite opened this issue · 0 comments
Cryolite commented
From the very beginning stage of development, this Chrome extension records the URL of reblogged images directly under the local storage. However, as more functions have been added to this extension, additional data other than the URLs of reblogged images are stored in the local storage. As a result, the structure of the local storage has become somewhat complicated, and this is particularly evident in the complexity of the type of data structure in the local storage (cf.
Lines 17 to 22 in 78dac85
This issue proposes to refactor the data structure of the local storage based on the following migration plan.
- Create the
reblogHistory
property in the local storage, and move the URLs of reblogged images recorded directly under the local storage under thereblogHistory
property. After that, the URLs of newly reblogged images are also recorded under thereblogHistory
property. - After an appropriate migration period, change the local storage type and complete the migration.