Commit Graph

53 Commits

Author SHA1 Message Date
Natalia
36a61d064a Send emails when a news is posted (using notification preferences accordingly). 2023-06-22 19:23:16 -03:00
Natalia
06cd04f263 Expose view for user preferences (email notifications so far).
Added tests for the new form and view for updating user preferences.
2023-06-20 12:24:40 -03:00
Natalia
80eae90184 Initial model for User's preferences, specifically for email notifications.
Part of #343. The news' notifications module was also changed to the user
preferences is honored when sending news emails.

Also exclude migrations from the black check.
2023-06-16 13:00:16 -03:00
Natalia
01ad06e15f Revert import of user signals 2023-05-30 23:21:53 -03:00
Natalia
db1ad7983b Revert changes to files inside static/img and static/animations
Also revert changes to migrations
2023-05-30 23:21:53 -03:00
Natalia
e2d2dd9ed2 Revert removal of imports 2023-05-30 23:21:53 -03:00
Natalia
a8cd8f507a Ran pre-commit run -a
Completed runs of black and rest of pre-commit checks.
2023-05-30 23:21:53 -03:00
Lacey Williams Henschel
5de95a9a4f Test that email signup works 2023-04-28 16:11:47 -07:00
Lacey Williams Henschel
41c6366dd5 Merge branch 'main' of github.com:CPPAlliance/boost.org into 87-display-name 2023-04-26 12:02:58 -07:00
Lacey Williams Henschel
e658968b4e ⬆️ Upgrade to Django 4.2 and related changes 2023-04-14 13:36:28 -07:00
Lacey Williams Henschel
f1095f031a 🏦 Add display_name field and property to User model
- Add a display_name field to the User model
- Implement get_display_name property to return display_name, full name, or a single name, depending on the available information
- Add tests for the get_display_name property
2023-03-28 10:44:40 -07:00
Lacey Williams Henschel
37b56805b9 🔧 Improve catching duplicates 2023-03-27 13:32:00 -07:00
Lacey Williams Henschel
5801bc2cae 🔧 Add the user call to the GH client class 2023-03-24 11:02:50 -07:00
Lacey Williams Henschel
f64c2ad405 📝 Changes find_user method to find_contributor 2023-03-21 10:42:55 -07:00
Lacey Williams Henschel
f719893264 Merge branch 'main' of github.com:CPPAlliance/boost.org into 144-upload-contributors 2023-03-20 11:14:30 -07:00
Lacey Williams Henschel
9552ffc118 📝 Fix maintained library name, fix duplicates 2023-03-15 12:54:15 -07:00
Lacey Williams Henschel
6346497b04 📝 Match contributors by name when uploading
Reduces the duplicates by a lot. Some still remain, mostly related to differences in spelling (Jeff versus Jeffrey) or differences in diacritical marks.
2023-03-15 12:31:45 -07:00
Lacey Williams Henschel
0bbbfd708f 🔥 More dead code 2023-03-10 10:04:31 -08:00
Lacey Williams Henschel
d86cc4b51e Merge branch 'main' of github.com:CPPAlliance/boost.org into upload-authors-maintainers 2023-03-10 09:38:49 -08:00
Lacey Williams Henschel
f8d2910c1d 👕 Linter 2023-03-09 12:23:12 -08:00
Lacey Williams Henschel
37d6dbbb76 Add method to create stub user 2023-03-09 12:17:18 -08:00
Lacey Williams Henschel
3f2cceb764 🏦 Add claimed and valid_email 2023-03-09 12:00:32 -08:00
Lacey Williams Henschel
f8c6d2510d Add new fields 2023-03-03 13:12:41 -08:00
Lacey Williams Henschel
6e07a89462 📝 Change help text on new fields 2023-03-03 13:11:25 -08:00
Lacey Williams Henschel
7dea27d1d1 🏦 Add valid_email and claimed fields to User model
Default to `True` because the only conditions in which these would be False is on import of author/maintainer data for the Libraries from GitHub. After the initial launch, these fields won't be used with nearly the frequency.
2023-03-03 10:46:29 -08:00
Lacey Williams Henschel
8c4b10a50a 🔧 Call task on a delay 2023-03-02 10:03:53 -08:00
Lacey Williams Henschel
14f01f5444 🔈 Use structlog 2023-03-02 09:59:46 -08:00
Lacey Williams Henschel
5c7e39370c Allow user to update photo to their GH photo 2023-03-02 09:59:34 -08:00
Lacey Williams Henschel
85c2dfa650 Add task to update github photo 2023-03-02 09:19:25 -08:00
Lacey Williams Henschel
597253addb 🔧 👕 Light refactor 2023-03-02 09:12:34 -08:00
Lacey Williams Henschel
7791706ee5 User can upload their own profile photo 2023-02-22 12:58:18 -08:00
Lacey Williams Henschel
80720a21b7 👕 Linter 2023-02-17 15:05:52 -08:00
Lacey Williams Henschel
cb33d7a4fa 📝 Add comment to point to signals 2023-02-17 13:14:50 -08:00
Lacey Williams Henschel
f2a0da771e Add signal for saving profile data upon a new GH login
I did skip the tests -- my first tries with `patch` didn't work and I wanted to have this working for the demo, at least locally.
2023-02-16 15:22:06 -08:00
Lacey Williams Henschel
2a957910e9 Add method to save profile image from GitHub 2023-02-16 12:51:46 -08:00
Lacey Williams Henschel
59a72c9a9a 👕 Linter 2023-02-15 14:44:28 -08:00
Lacey Williams Henschel
0e452aaa5a 🏦 Add user profile image 2023-02-15 14:12:48 -08:00
Lacey Williams Henschel
80743c8a70 👚 Add tests and lint 2022-11-29 12:18:59 -08:00
Greg Newman
c6192f9537 🚧 hooks up libraries to profile
* Breaks library markup into a template
* Adds authored and maintained context objects
* Adds loops to include template for authored and maintained
2022-11-14 18:23:58 -05:00
Greg Newman
e47898e8bd 🚧 sets user in profile view
Sets the image, name and join date above subnav in the profile view.
2022-11-14 18:06:12 -05:00
Greg Newman
407f838b4c black 2022-11-13 14:21:03 -05:00
Greg Newman
1d62e449a3 🚧 stats view/template 2022-11-13 14:20:03 -05:00
Frank Wiles
29878c3f90 Rework versions models
- Added ListView and DetailView
- Move to pytest style tests
- Fix migrations to be clean to rebuild and throw away existing data
- Add model_bakery
2022-05-28 16:00:24 -05:00
Frank Wiles
80437ce06f Black 2022-04-01 10:18:02 -05:00
Frank Wiles
612ee5c441 Run black on migration 2022-02-23 16:46:24 -06:00
gabbyprecious
4300633274 badge model added 2022-02-09 16:46:59 +01:00
GabbyPrecious
4d46a3a6a5 black 2021-11-21 13:06:42 +01:00
GabbyPrecious
4a964f55d9 factory changes 2021-11-21 13:06:26 +01:00
GabbyPrecious
be1aa07a3a fixed RemovedInDjango40Warning error 2021-11-21 13:00:50 +01:00
GabbyPrecious
4bb4d30ec8 version app, test and black fixes 2021-11-21 12:54:59 +01:00