-
-
Notifications
You must be signed in to change notification settings - Fork 97
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: Like feature is not implemented properly. #92
Comments
Congratulations, @Sanchitbajaj02! 🎉 Thank you for creating the issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work! 'We will promptly review your changes and offer feedback. Keep up the excellent work! |
I would like to take on this issue |
Sure, please go ahead. If you need anything, just let me know. Also, we need to discuss about its performance. So, before implementing anything, just ask here or in discord |
I want to work on this issue. |
@sumanjeet0012 assigned to you |
Can you assign me this issue under IWOC? |
@Jenis07 sure. Assigned this to you. Make sure to update your progress and if you have any doubt, just let me know. |
Can I look into it ...@Sanchitbajaj02 |
is there any steps to setup the project in the localhost? |
Yes checkout the readme - it explained everything |
And you have to setup appwrite instance too .. if you follow the readme doc , you shouldn't have any issues with seting up.. |
@Jenis07 have you started working on this ? |
@Jenis07 If you don't respond within 24 hours, I will unassign the issue |
Yes sir I have started working on this and I have made some logic for
that.I will look this by today.
…On Mon, Jan 29, 2024, 23:24 Sanchit Bajaj ***@***.***> wrote:
@Jenis07 <https://github.com/Jenis07> If you don't respond within 24
hours, I will unassign the issue
—
Reply to this email directly, view it on GitHub
<#92 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX5QX7C74RBMWKJNTSLSANLYQ7O6DAVCNFSM6AAAAABBCJ4HLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJVGI3DOOBQGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Jenis07 any updates? |
So, there are User, Post, and like collections. When the user clicks on the like button, => if like is already enabled (checking whether post id with user id is present in the Like collections), it will delete that entry from the like collection and decrease the count of post ids in Post collection. Else will increase the count of post IDs in Post Collection and add entry in Like collection with post IDs and user IDs. |
Yes, that's the aim of this functionality |
I will try to do it. |
whats the timelimit for the assignment? |
There is no as such time limit, if you need time, you can take it. Just keep me updated with the progress. As for the login issue, what you can do is peek into the appwrite and see whether in the auth you are verified or not. If yes, go to db and see whether an entry is created with your username. Let me know here or on discord about your findings... |
For login, I am registering and deleting accounts daily, as I have appwriteDB in my appwrite console. Through registration, I am able to get a login automatically and can view the posts and work on them. |
Actually, you don't need to delete daily. What you can do is find out what part is giving the error in the component. |
I will try to find it. |
Resolved you registeration and login problem. |
Can you address the issue and your findings in #300 |
as the appwrite version is fixed in the project, I cannot use upgrade version methods? bz they will not work. |
Does your implementation require it to be on an upgraded version? |
For performing like and dislike, I need to check whether the user has liked the post or not. To check that entry, their is a query.and() method that checks multiple queries together. But Query.and() is in the upgraded version of AppWrite. The assignment is not yet complete, but bugs are there. That's why I am asking; I will change that and use a different method to do it. |
There will be multiple changes like that login issue? if you want we can switch to higher variant but its just that we need to cater those changes |
Login issue is resolved now? |
That's not the issue. If it was working fine on version 13 then it isn't a bug. Since it is not recommended to upgrade the version when I provided the lock functionality |
I will complete the like functionality first, which was assigned to me. Then we will pull upstream and check the error for login and registration. |
Check whether the proper type is declared for onLikeClick. If you face any issue, please reach out to me on discord |
@Sanchitbajaj02 may I work on this issue? |
yeah sure |
@Sanchitbajaj02 the posts collection has a likesCount attribute of integer type which would only tell the number of likes.
Please suggest which approach to implement, or if you'd like to suggest any other approach. |
@Sanchitbajaj02 I've implemented the like feature, but it requires some changes in the structure of likes collection. So, I need to discuss a few things related to this. Please reply when you are available. palettegram-like.mp4 |
My availability is and will be a bit low. I know it needs to be structured. You can DM me on discord about your idea and we can discuss over there |
What feature?
The code for like feature is implemented but it is not working properly on the server. A PoC is required before going further.
Add screenshots
No response
Record
The text was updated successfully, but these errors were encountered: