hamedpro / freeflow-core

🩵⚡️next generation of decentralised collaboration
3 stars 1 forks source link

inline todos and notes #173

Open hamedpro opened 1 year ago

hamedpro commented 1 year ago

there are many inline todos and ... and may they get lost or be forgotten. move them inside github issues and make sure to always have a backup of github issues. there all also some routines that there must be a standard for them. for example a principle has a risk of being forgotten or something must be checked always before marking something "stable".

hamedpro commented 1 year ago

current inline TODOs and note txt files will be tracked here from now on (will be included in next comment), also new issues and todos must be tracked in github issues.

hamedpro commented 1 year ago

also take care about todos and notes of corp_webapp repository consider that you may save value of new Date().getTime() and in the future users's region change and date calculations go wrong so do something to cover all possible cases of utc and local changes related issues use utc timestamps everywhere saving or processing a date and just use local date in showing step and say it exactly take care about this in future cases : that if route change for ex from /users/:34234 to /users/:44444 the rendered component will not re render and this is handled by passing a timestamp as prop to the route element add env.json to gitignore when it starts to have personal important env vars currently there is an active account registered in my machine : username : 'hamedpro', password : "hamed"


todo : solve this problem : currently when user is not logged in but opens /dashboard when it wants to load data to show in primary side bar it gets user_id from localStorage but it returns null and when getting for example users it's filter will look like this : {user_id : null } and when it passes it to JSON.stringify before sending it to server all fields with value == null disapper and it leads it to load all_users or all data ...

todo just update keys of Route s when there is a change in url (it will avoid extra re-renders)

make sure everywhere we are saving or processing a percentage we must not round them but when showing them simply

custom delete of pack had a error : it was attempting to delete this : no such file or directory, stat './uploaded/resources/undefined'

env.json fields must not contain hypen or any invalid linux env var name character

_id fields in output of mongodb.collection(x).find().toArray() are not string take care about comparing that against strings solution : map them to something like this : JSON.parse(JSON.stringify(document)) this is also the same for other finds like findOne method

todo : make sure there will not be more than 1 things writing at once on discoverable transactinos or ... (i know it would happen once a thousand years or even may be impossible )

in unified handler server if auth is done twice nothing must go wrong

during JSON stringifying something to send it through http it loses properties = undef make sure it will not cause any problem when transfering or saving result of getDiff or ...

take care of lock and task orders when working with websockets.

when using start script in this commit on production server when reloading the page sometimes it says websocket isnt connected or something like that i didnt see that happening when using dev script

take care of these before each production build which is going to be used by end users: that problem of not rerendering comp when route chagnes from /foo/22 to /foo/33 async lock issue specially in UHServer

error : Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'e3.blocks') editorjs:2 when simply added a note (in webserver not local) after that : WebSocket connection to 'ws://ff-websocket.pishro-control.ir/socket.io/?EIO=4&transport=websocket&sid=QvJ9dG49vQnEX2tzAAAC' failed: There was a bad response from the server. add a new option to user prefrenses that save user time zone to show tasks and ...