-
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
Haoji fetch profile images from team page and sending email for selecting correct images #608
base: development
Are you sure you want to change the base?
Haoji fetch profile images from team page and sending email for selecting correct images #608
Conversation
…oji-alert-multiple-images-and-selection-for-individuals
…tion-for-individuals
…tion-for-individuals
Tested with FE PR 1471. The PR worked as expected. |
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 Haoji, I got the same issue here. The permission list can't be scrolled down.
Screen.Recording.2023-12-09.at.03.19.44.mov
Hi @ljrirene I did not update the permission list in Frontend. Did you checkout into a different branch in FE? Thank you |
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.
Hey! I tested this PR and left a comment in PR#1531. Please review.
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.
Hi, I tested this PR and commented at FE project: OneCommunityGlobal/HighestGoodNetworkApp#1531
…tion-for-individuals
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 made an inline comment in the userHelper.js file suggesting a code change to prevent non active users profile images being updated. Overall, great work!
screen-recording-2024-03-01-at-123007-pm_siO0U1qh.mp4
}); | ||
|
||
for (let profile of userProfiles) { | ||
const { firstName, lastName, profilePic, isActive, email } = profile; |
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.
Consider using the isActive property, as it's not being used anywhere to prevent assigning a picture to an existing user that is not active. Eg:
if (!isActive) continue
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 left my latest review here: OneCommunityGlobal/HighestGoodNetworkApp#1531 (review)
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.
Awesome job!
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 Haoji, I tested case 1&2 here. I used Ivan Manzurov's name for the test. I also changed this line here:
Is there any problem with the way I tested? I didn't get the crawler‘s information in the backend terminal. Please refer to this video:
https://drive.google.com/file/d/1seFbVWXZLhTlTAq4Yn23GcEBgUFdJhEF/view?usp=sharing
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 left a review on the frontend PR. It seems to fetch multiple images despite unique combination of first and last name.
Also, is the email sending part of the requirements for this PR? I don't see it anywhere in the code and wonder if reviewers should set it up ourselves.
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 tested frontend and backend PR and left a comment on frontend PR. Please review there.
Description
Related PRS (if any):
To test this backend PR you need to checkout the #1531 frontend PR.
The main changes are based on the previous PR: #591.
…
Main changes explained:
…
How to test
check into current branch
do
npm install
,npm run build
andnpm run start
to run this PR locallylog as owner user
Please change the cronjob interval in src/cronjobs/userProfileJobs.js, the following change allows cronjob to run every minute. You could make the interval longer appropriately for testing. If you forget to change this, cronjob would only run everyday 12:00am
git restore .
to undo the changesScreenshots or videos of changes:
Note:
See frontend