Skip to content

Conversation

mrsaicharan1
Copy link
Member

@mrsaicharan1 mrsaicharan1 commented Aug 5, 2019

profile

Fixes #3360

Short description of what this resolves:

Fixes profile picture removal

Changes proposed in this pull request:

  • Update avatarUrl to None on the model level when the picture gets deleted.

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@auto-label auto-label bot added the fix label Aug 5, 2019
@mrsaicharan1 mrsaicharan1 changed the title fix: profile picture removal fix fix: profile picture patch when removed Aug 6, 2019
@mrsaicharan1
Copy link
Member Author

I’m attempting a patch request through the frontend to update the avatar_url. This gives me a 415 error but it works when I use an API client. What might be the problem? @cosmiccoder96 @uds5501 @shreyanshdwivedi

@mrsaicharan1 mrsaicharan1 force-pushed the fix-profile-pic branch 3 times, most recently from 24b903e to 1f0a58b Compare August 7, 2019 17:55
@mrsaicharan1 mrsaicharan1 changed the title fix: profile picture patch when removed fix: profile picture link to null when removed Aug 8, 2019
Copy link
Contributor

@uds5501 uds5501 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on local. Working fine

@abhinavk96 abhinavk96 merged commit 7cf7d45 into fossasia:development Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removing profile picture doesn't work

4 participants