-
Notifications
You must be signed in to change notification settings - Fork 93
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
Feat: Update user personal background #61
Feat: Update user personal background #61
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 @mtreacy002 , I was able to login and go to the Personal Background
page.
However, it shows an error that The server is currently unavailable. Try again later
after successful login while running both MS & BIT locally.
Prior to this, I did populate the personal background for user bopogow
on Swagger UI (see below). So when I click on the Personal Background
page, I should expect the page should have the populated information. Hmm any fix on this?
Other: Remember to resolve the conflicting files below
af05496
to
227d1a1
Compare
Hi @foongminwong. I have resolved the merge conflict issue. Can you please try again by pulling the latest code change? Maybe that will fix the issue? Also, you don't need to create the personal background on backend bcoz the frontend should be able to create or update using the same |
add default value to is_organization_rep Fix if else and fetch bug Fix POST and PUT additional info Fix bug defaultChecked checkbox is_organization_rep fix bug timezone not selected Refactor api requests to PUT for both create and update additional info
@mtreacy002 Hmm I pulled the latest codes but I still have the error I created the personal bg for user |
Inside the Personal Background file, if you have already checked a is_public and the other value, then for any of the other fields, if !value then PreferNotToAnswer. |
227d1a1
to
14dc1a7
Compare
@foongminwong, that should be the case (if data already there). I'm not sure why you have this issue since I wasn't able to replicate the bug at my end. Do you have time sometime today to meet on hangout to troubleshoot this with me? Leet me know when you're available. |
@meenakshi-dhanani . The reason why I need to specify each enum fields since there are only 10 out 19 fields has default value "Prefer not to say". The other 8 default value is empty string. The is_public is the only boolean value. |
Add availabilities column add tba on Program completed and Current Availability columns Fix service unavailable constant
Refactor POST PUT call to PUT only
14dc1a7
to
63f8956
Compare
What is the case for the other fields, in case their value is not present? I'm trying to see if there's a different answer for other fields that we use if their value is not available. Or can we generalize saying, if value is not there, then it is "Prefer not to answer". In that case you won't have to mention all fields |
…background-fix-selected Set personal background options with Prefer Not to Say if they are empty
@meenakshi-dhanani , I've checked and merged the PR you raised for the update personal background. It looks good and make sense. Thanks for your help. 😉 |
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.
The changes made in this PR were tested locally. Following are the results:
Description
Allow user to update their personal background
Fixes #49
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
My Space
> 'Personal Details' >Personal Background
If user click
Save
button without selecting anything, the default value is saved "Prefeer not to say"Checklist:
Code/Quality Assurance Only