ajorgensen89 / project-5

1 stars 1 forks source link

Delete conversations. #17

Open ajorgensen89 opened 1 year ago

ajorgensen89 commented 1 year ago

As a Site User I want to be able to delete comments to blurbs so users can remove their own comments.

tusharkc commented 1 year ago

let me fork, and let me see if I can resolve this issue.

ajorgensen89 commented 1 year ago

Ah, thanks for your help but I have managed it. I am just posting the user stories late.

tusharkc commented 1 year ago

Alright

On Mon, Nov 20, 2023, 12:55 AM Ava Jorgensen @.***> wrote:

Ah, thanks for your help but I have managed it. I am just posting the user stories late.

— Reply to this email directly, view it on GitHub https://github.com/ajorgensen89/project-5/issues/17#issuecomment-1817953030, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT7OONMTQ4I4FAQBZUOBYQDYFJMJNAVCNFSM6AAAAAA7R34PJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXHE2TGMBTGA . You are receiving this because you commented.Message ID: @.***>

ajorgensen89 commented 1 year ago

Any chance your avaliable to help with a different issue I am facing on my project?

tusharkc commented 1 year ago

Yes, I can help you.

On Thu, Nov 23, 2023, 7:13 PM Ava Jorgensen @.***> wrote:

Any chance your avaliable to help with a different issue I am facing on my project?

— Reply to this email directly, view it on GitHub https://github.com/ajorgensen89/project-5/issues/17#issuecomment-1824462020, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT7OONIX5XS4THRSDWKABSDYF5HJJAVCNFSM6AAAAAA7R34PJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGQ3DEMBSGA . You are receiving this because you commented.Message ID: @.***>

ajorgensen89 commented 1 year ago

Thanks. How can I get your help. Sorry i am a student still.. I have a project were I have mixed up my get_is_owner component and I am struggling look through my code for the error it is causing when trying to POST to API. I am getting an error about my owner_id but cant find it.

ajorgensen89 commented 1 year ago

Hi all. I really hope someone if freee to help for abit. Can Anyone help with an issue that I feel I have not got wrong but it isnt working.. so it must be wrong somewhere. I am trying to create a 'blurb' for my page and I am getting a POST 500 error. I have checked my API and i have noticed my ' is_owner' for editing/creating posts may be giving me the wrong boolean value. Both the profiles for twofishes id=1 and EllaB 1=2 Own the profiles but im getting 'false' in is_owner boolean value. I have def get_is_owner set to return if requesting user and object.user is the same. Which it is. Even on posting a 'blurb' (created in the API - not via React as I get POST error)- EllaB has created a blurb with a title EllaB but the is_owner field is false again. This seems backwards.... Can anyone suggest what I am over looking. I feel like I have checked my code and understand it but I am missing something! If I change get_is_owner to 'request.user != obj.owner' I get a TRUE boolean. but that isnt very helpfull on the React end when trying to create new blurbs. The error throw here in my code. I thought it might of been because of the API is_owner error.. Im stuck trying to debug myself (no tutor support left this week).

ajorgensen89 commented 1 year ago

image1 image2

ajorgensen89 commented 1 year ago

image

I can not fork my REPO though

ajorgensen89 commented 1 year ago

https://github.com/ajorgensen89/drf-api/tree/main

This issue is in my other repo 'api_5' as i combined them.

tusharkc commented 1 year ago

@ajorgensen89 predominantly I am a javascript developer. but I will try to fix this issue.

ajorgensen89 commented 1 year ago

I appreciate your time just to take a look at it, thank you.

On Thu, 23 Nov 2023, 18:42 Tushar Karamchandani, @.***> wrote:

@ajorgensen89 https://github.com/ajorgensen89 predominantly I am a javascript developer. but I will try to fix this issue.

— Reply to this email directly, view it on GitHub https://github.com/ajorgensen89/project-5/issues/17#issuecomment-1824814521, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3U567YDFF3WC6RNJLQHIUDYF6KIPAVCNFSM6AAAAAA7R34PJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUHAYTINJSGE . You are receiving this because you were mentioned.Message ID: @.***>

ajorgensen89 commented 1 year ago

Attached: Copy of Untitled spreadsheet.pdf Sent using Google Docs https://docs.google.com/