se701g2 / Doto

Todo application for Group 2
https://doto.azurewebsites.net/
MIT License
12 stars 42 forks source link

issue/197 - Removed magic numbers in back-end and replaced with constants #222

Closed arangace closed 4 years ago

arangace commented 4 years ago

-Removed magic numbers and replaced with more appropriate named constants. -resolves #197

arangace commented 4 years ago

As the PR is only meant to refactor magic numbers in the backend, it shouldn't be updating the frontend snapshot.

Non-blocking question: why shorten names and keep others? "successful" vs "forbid", for instance?

I'm not sure why the front end is changed. I didn't edit it either. As for shortening names its just my personal preference, didn't think much about it. I'll update them to full names

arangace commented 4 years ago

Nice work @arangace.

Just a small request, we should not be recommitting package-lock.json as it was removed when migrating to yarn - #214. We are now relying on yarn.lock for this purpose.

yarn install --frozen-lockfile should be used for installations.

Got it! I'll remove it.