-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New dashboard: notification to point users there (#11161)
* New dashboard: notification to point users there We can add the notifications to all the users by running the following code: ```python from readthedocs.core.notifications import MESSAGE_BETA_DASHBOARD_AVAILABLE for user in User.objects.all(): Notification.objects.add( message_id=MESSAGE_BETA_DASHBOARD_AVAILABLE, attached_to=user, dismissable=True, ) ``` This will show a one-time dismissable notification to these users. In the future (weeks, months) if we can show them another notification like this one as a reminder, we can run the same code again. Related readthedocs/ext-theme#183 * Update readthedocs/core/notifications.py Co-authored-by: Anthony <[email protected]> * Change the content of the notification based on old/new dashboard * Test fixed * Update readthedocs/core/notifications.py Co-authored-by: Anthony <[email protected]> --------- Co-authored-by: Anthony <[email protected]>
- Loading branch information
Showing
5 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ class TestNotification(EmailNotification): | |
"PRODUCTION_DOMAIN": "readthedocs.org", | ||
"PUBLIC_DOMAIN": mock.ANY, | ||
"PUBLIC_API_URL": mock.ANY, | ||
"RTD_EXT_THEME_ENABLED": mock.ANY, | ||
"SITE_ROOT": mock.ANY, | ||
"SUPPORT_EMAIL": "[email protected]", | ||
"TEMPLATE_ROOT": mock.ANY, | ||
|