Developer Profiles #19
timmyichen
started this conversation in
Technical Specification Review
Replies: 1 comment
-
|
For posterity: #3 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary:
Developers should be able to put up information about themselves. This tech spec represents a basic UI for displaying a user's profile, and providing that user the ability to edit it.
Scope:
Data model:
New tables: N/A
Modified tables: the
userstable:discord_namerepresenting their discord username + discriminator, e.g.chimten#3819(string, max 100 chars)biorepresenting their bio (string, max 1000 chars)twitter(string, max 200 chars)linkedin(string, max 200 chars)github(string, max 200 chars)website(also used for their portfolio) (string, max 500 chars)New columns should be validated and checked for a maximum length before saving to the database.
User Stories:
Features:
Two new pages/views:
APIs:
A new
usersrouter will be created to handle the following endpoints:GET /api/users/:id- gets a user's public profile details + socialsdiscord_namePATCH /api/users/:id- updates a subset of user profile columns. Should only be allowed for the currently-logged-in user.Security:
discord_nameif the caller is not authedTesting:
For now, just acceptance tests on the server via jest to test the endpoints. End-to-end tests can wait until we have a more fleshed out design.
Open Questions
How should the profile path be structured? e.g.
domain.com/profile/:userId? ordomain.com/profile/:discordId? Open to suggestions here.Deployment:
Migrations will need to run prior to release. Existing data will not be impacted.
Beta Was this translation helpful? Give feedback.
All reactions