frankcollins3 / fill_container

codecamp team project updated with new icon screen menu + puppeteer icon search, GraphQL, redux, relational psql !mongo, and accuweatherAPI
1 stars 0 forks source link

data discrepancy b/w DEV && PROD [12:23am] #271

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

well not DEV mode but testing local data routes using heroku provided DB instead of localhost:5000 DB. attempting to do: deploy. Test app data routes. Blue bars get clicked and once they all have been, data gets saved.

error: problem is the data gets saved and can be seen with data object. The only key with problem is status[] which gets populated: ["check, check, check, check, check"] [or "check, "no", check, etc] based on missing water cycle or not. The user profile icon which is a shark I selected as test from user signup, indicating npx prisma db push works and allows psql.

Screen Shot 2023-07-05 at 12 21 49 AM

explained below for localhost.. The blue bars are clicked. The data is created but with status[] instead of [check, check,....] Screen Shot 2023-07-05 at 12 21 39 AM

localhost:5000 data. Note the "check, check, check, check, check" which happens everytime a reminder bar is clicked. Screen Shot 2023-07-05 at 12 23 14 AM

first proposed approach: it looks like "check" is attempted to be saved as "check%22" indicating whitespace?

frankcollins3 commented 1 year ago

I think the discrepancy is between the signup and login not DEV | PROD signup function might be: localStorage.setItem("currentuser") incorrectly. But when the user logs out, clears local Storage and logs in the data works.

issue looks to be solved might reopen. [10:23pm]