2022-11-30 01:35:38 +00:00
# Backend Storage Structure
2022-12-03 02:02:52 +00:00
- Status: Accept
- Deciders: Rhea Bhutada, Kara Hoagland, Gavyn Ezell, George Dubinin, Henry Feng
- Date: 11/29/2022
2022-11-30 01:35:38 +00:00
## Decision Drivers
2022-12-03 02:02:52 +00:00
- Needed more efficient way of storing reviews that are created, for more efficient testing, updating, accessing, and deleting.
2022-11-30 01:35:38 +00:00
## Considered Options
2022-12-03 02:02:52 +00:00
- localStorage
2022-11-30 01:35:38 +00:00
## Decision Outcome
2022-12-03 02:02:52 +00:00
2022-11-30 01:35:38 +00:00
Using local storage to maintain the "local first" requirement.
2022-12-03 02:02:52 +00:00
Moved away from array of objects for storing reviews, reviews are stored individually as keys in localStorage, under the "review{id}" format. Each key
2022-11-30 01:35:38 +00:00
corresponds to object containing review data. We also have an array stored in local storage, named "activeIDs" which keeps track of id numbers that are attached
to created reviews.