s2robertson / freelance-platform

0 stars 0 forks source link

Feature/login signup #59

Closed zaingova closed 1 year ago

zaingova commented 1 year ago

Reworked the whole backend basically. Everything works correctly as far as I know. I have some notes on some of the functions:

a) When we update users, the changes we make overwrite all old user data, so we may need to pull old data and let the user re-select old information, maybe with a checkbox or something. The alternative is to make the user re-enter everything. Now, when I say everything, I mean all data for that field. For example, if we try to update the user and dont specify the username, the old one will remain intact. The issue mentioned above happens when you try to add projects or services. Something to keep in mind.

b) Used a new package on the back end called 'moment' that works in a similar way to DayJS. I applied it to the 'sendMessage' function and it works correctly. The only place I'm not sure how to implement it is when youre creating a new project and you set a due date, since the user would technically be able to add any string, even if its not in a manageable date-format. A work around is to have a date picker on the front end when creating a project.

c) There are a lot of moving parts in the resolvers so during testing today/tomorrow its possible that we run into bugs. I don't think there are any but its possible. If you run into any could you write them down or send me a message on slack? then I can properly address any issues.

Thanks.