Skip to content
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

[Feature] Add image cropping and avatar to User #9

Merged
merged 15 commits into from
Aug 5, 2024

Conversation

Tanax-Xt
Copy link
Member

@Tanax-Xt Tanax-Xt commented Aug 4, 2024

Description

Added cropping of images to the square. The user model has been updated: the avatar url has been added

Changes

  • Add api/v1/users/me/image endpoint
  • Add update_avatar func
  • Update User model
  • Add image_cropping, check_file_size and delete_file funcs

Related Issues

@Tanax-Xt Tanax-Xt changed the title add image cropping and avatar to User [Feature] Add image cropping and avatar to User Aug 4, 2024
@Tanax-Xt Tanax-Xt added the enhancement New feature or request label Aug 4, 2024
@Tanax-Xt Tanax-Xt requested a review from zobweyt August 4, 2024 20:33
@Tanax-Xt Tanax-Xt self-assigned this Aug 4, 2024
backend/src/api/v1/users/service.py Outdated Show resolved Hide resolved
backend/src/api/v1/users/service.py Outdated Show resolved Hide resolved
backend/src/core/files.py Outdated Show resolved Hide resolved
backend/src/core/files.py Show resolved Hide resolved
backend/src/core/files.py Outdated Show resolved Hide resolved
backend/migrations/versions/afa95c2fb3f3_create_user.py Outdated Show resolved Hide resolved
backend/src/api/v1/users/me/routes.py Outdated Show resolved Hide resolved
backend/src/api/v1/users/me/routes.py Outdated Show resolved Hide resolved
backend/src/api/v1/users/me/routes.py Outdated Show resolved Hide resolved
Tanax-Xt and others added 14 commits August 5, 2024 09:59
Co-authored-by: zobweyt <98274273+zobweyt@users.noreply.github.com>
Co-authored-by: zobweyt <98274273+zobweyt@users.noreply.github.com>
Co-authored-by: zobweyt <98274273+zobweyt@users.noreply.github.com>
Co-authored-by: zobweyt <98274273+zobweyt@users.noreply.github.com>
Co-authored-by: zobweyt <98274273+zobweyt@users.noreply.github.com>
Co-authored-by: zobweyt <98274273+zobweyt@users.noreply.github.com>
Co-authored-by: zobweyt <98274273+zobweyt@users.noreply.github.com>
@Tanax-Xt Tanax-Xt requested a review from zobweyt August 5, 2024 09:45
@zobweyt zobweyt merged commit d6a6d4f into main Aug 5, 2024
1 check passed
@zobweyt zobweyt deleted the feature/image-cropping branch August 5, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants