-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Luis fix user profile projects delay #596
Luis fix user profile projects delay #596
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @luisarevalo21, checkout my detailed review on FE PR #1496.
Hi @luisarevalo21, I left a detailed review on the FE PR. |
Hello @Shuhua-L and @malikjahanzaib Thanks |
Thanks for letting me know! Happy to review. However, there are a lot of formatting changes, making it a bit challenging for me to identify the actual modifications. Could you help by reducing some of those changes? |
Hello @Shuhua-L |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luisarevalo21 tested with the mentioned steps. The project shows up in the project list. Verified on current dev branch
Screencast from 02-20-2024 09:02:19 AM.webm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I attempted to test this PR using an admin account but encountered an issue when trying to assign a project to my account. After accessing the members section, I was unable to search for users, and a "404 not found" error was displayed. Please see the reference video.
PR596_error.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Luis, can we change the 2nd step where the commands are mentioned. After checking out into the current branch, it should be npm install first, then build and then run. As this might confuse the new developers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
projects_delay.mp4
Hi, the project works as expected.
However, when I added my name from the list of users in a particular project, I could add it twice (once directly from the list and the next time from the search result of my name)
This happened without reloading the page.
(first I searched my name, as it took time to show the search result, I clicked "+" directly from the list, and my name got added. Then the search result appeared and I could click on "+" again. And my name got added twice.
I feel this is a React state issue that can be looked into.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error when fetching members userId.
- cleared cache
- logged in using owner account
- went to view-profile -> projects -> checked how many projects were there (3)
- went to other links -> projects -> selected a project -> attempted to add user, unable to fetch user
I took a look at the code and most of the changes seemed to be changes in formatting for readability. I noticed that there were quite a few problems related to the eslint formatting in src/helpers/userHelper.js, src/controllers/projectController.js and many more. However, these problems are unrelated to the issue with fetching the data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed this PR as mentioned here, and it is working as expected. Here is the reference video.
PR.596.mp4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with owner account. Described features are working. Good work
The only thing is that during adding my current user to a project, I used the search bar at the top to search for my username. But it wouldn't return any search results (shown in video). I need to display all users and use ctrl+F to find my username. Not sure if this is within the scope of the PR but would like to point that out.
pr4.mov
Luis said suggestions have been addressed
Description
Related PRS (if any):
To test this backend PR you need to checkout development branch
…
Main changes explained:
On the backend I added a check to remove cache.
The issue was the backend was sending back old cache instead of clearing it when a project was added.
Hence it was sending old data.
The change occurs in ProjectController.js inside of the assignProjectToUsers() when mapping over each element cache is checked if so it removes it and adds the user.
How to test:
npm install
npm run install
, then build and run the servernpm run build && npm run start
Screenshots or videos of changes:
Screen.Recording.2023-11-05.at.7.09.11.PM.mov
Screen.Recording.2023-11-05.at.7.25.40.PM.mov
Updated video
Screen.Recording.2024-04-11.at.7.49.31.PM.mov
Note:
There was a front end branch but for some reason, it removed the projects.
Upon testing the development branch worked just fine. So, I may have adjusted the frontend which caused the issue.
However, checking ino the development branch then pull this backend, fixes everything.
There are a few errors that pop up on the frontend please disregard them as they are irrelevant to this PR.