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

User profile page #14

Open
0x213F opened this issue Jan 19, 2021 · 1 comment
Open

User profile page #14

0x213F opened this issue Jan 19, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@0x213F
Copy link
Owner

0x213F commented Jan 19, 2021

Summary

Each user must have a profile page, just like any social network.

Implementation

Step by step guide on implementation approach.

Preliminary groundwork

It would be nice if this were completed first: #13

Functional groundwork

Schema

New model UserProfile. That model should have fields:

  • 'user' - OneToOne relationship
  • profile_image - File field
  • personal_website - URL field
  • description - Text field
  • is_private - Boolean field

The model should be tracked using pghistory.

New API endpoints

User GET profile API endpoint should allow getting the user's profile information. A user's profile may be public or private, and the API endpoint should allow access accordingly.

User POST update profile should allow updating a user's profile. A user may only update their profile when properly authenticated.

GET API endpoint which lists all sessions belonging to a user. The user is queried by the request parameter username. If no user is found, nothing is returned.

Functional implementation

The rest of the implementation needs to happen on the front-end. More on that in a JR React issue: 0x213F/jukebox-radio-react#6

@0x213F
Copy link
Owner Author

0x213F commented Feb 20, 2021

@op1346 do not worry about #13

@0x213F 0x213F added the enhancement New feature or request label Feb 25, 2021
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

No branches or pull requests

2 participants