ahoskins / Winston

an AngularJS schedule builder for UAlberta students
GNU Affero General Public License v3.0
21 stars 1 forks source link

Decouple localstorage from the all the rest #30

Closed ahoskins closed 8 years ago

ahoskins commented 9 years ago

We both know that localstorage can really fuck with you sometime and makes many parts of the app less readable, less stable, and harder to debug.

Ideally it should be decoupled to the point where:

This is something either of us can do at some time if we feel inspiration to do some useful refactoring.

ahoskins commented 9 years ago

I write this issue right now because I'm having the hardest time switching over addedCourses to support electives. This'll probably be something I do first before attempting any further non-UI stuff for electives.

rosshamish commented 9 years ago

Yeah I 100% agree here. We really rushed localStorage support out the door for the launch, it's really shaky.

rosshamish commented 9 years ago

We could refactor terms at the same time. At the very least we could replace all the courses[currentTerm.term] && courses[currentTerm.term][course] type things with a method that does the error check internally.

rosshamish commented 9 years ago

What's the status on this? I remember hearing something about progress on this

ahoskins commented 9 years ago

I believe this is done. I know that as part of the electives feature I made some really tidy refactors to all things localstorage. When I commit the localstorage stuff I'll close this