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

Implementation CRUD for users model #24

Closed
radthenone opened this issue Jan 20, 2024 · 0 comments · Fixed by #109
Closed

Implementation CRUD for users model #24

radthenone opened this issue Jan 20, 2024 · 0 comments · Fixed by #109
Assignees
Labels
Backend Backend Ticket

Comments

@radthenone
Copy link
Collaborator

radthenone commented Jan 20, 2024

User Model Manifest

1. User Model Information

  • id: Auto Generated id as Integer with primary_key set to true
  • first_name: User's first name
  • last_name: User's last name
  • username: User's unique username
  • password: User's confidential password
  • email: User's email address
  • -attractions: User's favorite attractions related as O2M

2. User Create (Required)

  • email: User's email address (required)
  • username: User's unique username (required)
  • password: User's password (required)
  • second_password: Confirmation of user's password (required)

3. User Edit

  • All fields can be edited except for password and email.

4. User Password Edit

  • To change the password, a request must include:
    • old_password: User's current password
    • new_password: User's new password
    • second_new_password: Confirmation of the new password

5. User Email Change

  • Changing the email requires providing the correct password.
  • Additionally, the user can edit the password.

6. User Delete

  • Typical user deletion process.
@radthenone radthenone added the Backend Backend Ticket label Jan 20, 2024
@radthenone radthenone self-assigned this Jan 20, 2024
@radthenone radthenone changed the title Implementation CRUD for username model Implementation CRUD for users model Jan 20, 2024
radthenone added a commit that referenced this issue Jan 30, 2024
@kwiats kwiats linked a pull request Mar 8, 2024 that will close this issue
radthenone added a commit that referenced this issue Mar 18, 2024
…oved abs from init cache handler, router remove unused import
kwiats pushed a commit that referenced this issue Mar 22, 2024
* #24-backend: Put first fast-api crud

* #24-backend-imp-crud-24-backend-imp-crud-feature-auth-repo-changes: renamed auth to user repo and files

* 24-backend-imp-crud-for-users-model-feature-new-develop-docker-compose: add develop docker-compose to work out

* 24-backend-imp-crud-feature-create-profile: separate auth and user, correct names, structure, imports

* 24-backend-imp-crud-feature-create-profile: delete auth old files

* 24-backend-imp-crud-feature-create-profile: change some global exceptions and correct verify_jwt exceptions, get_current_user exceptions and change return

* 24-backend-imp-crud-feature-create-profile: add dev build extra

* 24-backend-imp-crud-feature-create-profile: rebuild all models

* 24-backend-imp-crud-feature-create-profile: push users image to storage

* 24-backend-imp-crud-feature-create-profile: technic push to refactor all models with new redis pub/sub communicator

* 24-backend-imp-24-backend-imp-crud-for-users-model: add develop docker and run app

* 24-backend-imp-24-backend-imp-crud-for-users-model: add redis cache pub/sub for models

* 24-backend-imp-crud-for-users-model: Recreate system to navigate pub/sub in classes

* 24-backend-imp-crud-for-users-model: Correct endpoints in user service for change_password_view

* 24-backend-imp-crud-for-users-model: Correct gh actions docker to dev docker-compose basic

* 24-backend-imp-crud-for-users-model: first code review corrections

* 24-backend-imp-crud-for-users-model: second code review corrections

* 24-backend-imp-crud-for-users-model: remove image from profile_service.py

* 224-backend-imp-crud-for-users-model: add schema to names

* 224-backend-imp-crud-for-users-model: removed all image from users/profiles this created in media urls

* 224-backend-imp-crud-for-users-model: remove delete profile because users do it with relations and profile image is not needed here

* 224-backend-imp-crud-for-users-model: cleanup

* 224-backend-imp-crud-for-users-model: returned read_version docs, removed abs from init cache handler, router remove unused import

* 24-backend-imp-crud-for-users-model: returned read_version docs, removed abs from init cache handler, router remove unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Backend Ticket
Projects
None yet
1 participant