-
-
Notifications
You must be signed in to change notification settings - Fork 105
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: Email notifications for new likes, matches and messages #356
Conversation
You need to remove the apache-maven folder |
Removed apache-maven folder. |
|
Latest changes updated. Added mysql dependency to run using mysql in my machine. Removed it now. |
Please do not change .gitignore, place maven outside of the project instead. Looking good otherwise. |
Latest changes updated. Please have a look and approve. |
In UserController, please separate all 3 mail settings into individual endpoints. Also, please use PostMapping instead of PutMapping, something like @PostMapping(value="/settings/update/emailLike/{value}") (see updateUnits()). Also consider creating a separate Controller class for the UserSettings alone. |
Member variables of UserSettings should all be private and should be used with a getter/setter. |
After some thought, the emailMatch should be scrapped. |
My thought process behind the unified endpoint was that we might want to have the user settings page as a form. The form will have all the three values set as false when initialised. Whenever a user makes a change to one or more of these settings, we can once again create a UserSettings object with the new values and make the request. If you insist on changing it, I can go ahead and do it. |
It's better to separate them. |
…ds to private 3.Seperated endpoints for each usersettings field 4. Altered logic to prevent simultaneous match and like mails
I've made the changes as discussed above. Kindly take a look at the UserSettings controller and let me know if its okay to directly update the email settings as I've done. Or do I need to create a seperate UserSettingsService and create a new method to do this? |
Spotted a few more issues:
I just made a new commit for adding UserPrompt, you can use it as reference: 4f0ca1c |
Hopefully the changes are fine now. Sorry to keep this going back and forth. |
@Nonononoki I had a query that I was hoping you could answer. Why do you insist on using @PostMapping instead of @PutMapping even when the api requests is specifiically an update operation? This seems to be pretty consistent across the codebase. |
It's just semantics. I feel like there should be only 2 types of requests, you want something from the server (get) and you want the server to do something for you. In which case I opted for post. Might not be right, but cleaner imo. |
Sure. Thanks for clarifying.
…On Fri, 16 Feb 2024 at 5:53 PM, Nho Quy Dinh ***@***.***> wrote:
It's just semantics. I feel like there should be only 2 types of requests,
you want something from the server (get) and you want the server to do
something for you. In which case I opted for post. Might not be right, but
cleaner imo.
—
Reply to this email directly, view it on GitHub
<#356 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN5QGCDZYPNRWAETJ4VJEETYT5FUJAVCNFSM6AAAAABDBOIEROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYGI4TENJRG4>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Addresses #342
Opened a ticket in alovoa-expo to handle necessary front end changes.