-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Notifications: migrate old custom Django message notifications #10988
Comments
If I understand correctly, our plan on the old dashboard should be:
The new dashboard handles standard Django messages separately from sticky messages: That logic will need to be changed to:
|
Yes, I understand the summary of the plan you wrote is 👍🏼 The code will be simplified since Those sticky/permanent messages are now |
Keep rendering regular one-time Django messages attached to the request, but remove the logic used for sticky/permanent messages from `django-messages-extends`. Closes #10988 Related readthedocs/ext-theme#259
Keep rendering regular one-time Django messages attached to the request, but remove the logic used for sticky/permanent messages from `django-messages-extends`. Closes #10988 Related readthedocs/ext-theme#259
I kept the rendering for the default Django messages in the base template. However, we need to take a deeper look at it since it used to use
django-messages-extends
for extra and custom notifications (those that can be dismissed, etc) that we are not using anymore. That means the "Mark as read" URL and others won't work anymore.Those messages have to be split into two groups:
readthedocs.org/readthedocs/templates/base.html
Lines 121 to 139 in 7d1daee
We talked about this on the PR while working on this: #10922 (comment)
The text was updated successfully, but these errors were encountered: