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

new: [website] Add new fields to User model #73

Merged
merged 21 commits into from
Sep 16, 2024

Conversation

cedricbonhomme
Copy link
Member

@cedricbonhomme cedricbonhomme commented Sep 11, 2024

new: [website] Add new fields to User model: country_code, bio, webpage, mastodon, github, and linkedin

  • The country_code (Alpha-3) is automatically detected during user sign-up using the CIRCL MMDB service: ip.circl.lu.
  • Users can manually update their country code via the profile edit page.
  • The new bio field supports Markdown format, with a Markdown editor available on the profile edit page.
  • For the web profiles of the user, the property rel="me" is used on the profile view page.
  • Added more validation to the various attributes of the User model.

Or course, there is a database migration.

Examples

image

image

…ge, mastodon, github, and linkedin

- The country_code (Alpha-3) is automatically detected during user sign-up using the CIRCL MMDB service: ip.circl.lu.
- Users can manually update their country code via the profile edit page.
- The new bio field supports Markdown format, with a Markdown editor available on the profile edit page.
- Added more valisation to the various attributes of the User model.
@cedricbonhomme
Copy link
Member Author

New version of the profile page with badge for Top contributors

image

@cedricbonhomme cedricbonhomme marked this pull request as ready for review September 13, 2024 06:53
@cedricbonhomme cedricbonhomme self-assigned this Sep 13, 2024
@cedricbonhomme cedricbonhomme added the enhancement New feature or request label Sep 13, 2024
@cedricbonhomme
Copy link
Member Author

75ee913 adds a function to back up the database using pg_dump. This function is automatically triggered by the
project's update command, ensuring a backup is created before any database upgrades take place. Consequently the update command has been slightly updated (you will have to restart it when updating).

@cedricbonhomme cedricbonhomme merged commit 46efb11 into main Sep 16, 2024
11 checks passed
@cedricbonhomme cedricbonhomme deleted the improved-user-profile branch September 16, 2024 12:29
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.

1 participant