-
Notifications
You must be signed in to change notification settings - Fork 2
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
Notification: support new notifications through API #259
Comments
Regarding template rendering vs. API driven, there are a few things to consider IMO:
With that in mind, I would start with template rendering because it's easier to implement. We can keep thinking about this and change the approach if we find a more dynamic UX is required. We need to create the PATCH endpoint to mark them as read / dismissed either way (see readthedocs/readthedocs.org#10983)
This is already implemented and it's working.
Since we will mark the notification as read dynamically here, we need to add the
I still don't have a great answer. I'm happy to discuss more these approaches and figure it out while working on this or after implementing the initial version of the front-end. I think that will give us some valuable input to make a better decision here. |
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
Cool, those are all my exact thoughts too, we're on the same page 👍
Sorry, I wasn't super clear here. I was trying to refer to the notification listing UI elements in the build detail page, created from the Notification API. Your first pass in #254 on that UI will be close, but we need to add styling for the message levels, custom icons, etc, and feed it API data.
Same. I think I need to see it in aciton. When I get to theme pieces, I'll try to mock something up -- I've had a hard time making time to do this so far |
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
Render notifications attached to these objects. This is the first pass of this work and there are some things we need to make decisions and improve. - Where (what pages) these notifications should render? - How "global" they should be considered? Note we are rendering these notifications in the template for now, but in the future they will be rendered using the APIv3: #259
Render notifications attached to these objects. This is the first pass of this work and there are some things we need to make decisions and improve. - Where (what pages) these notifications should render? - How "global" they should be considered? Note we are rendering these notifications in the template for now, but in the future they will be rendered using the APIv3: #259 Closes #260
…261) * Notifications: show attached to `User`, `Project` and `Organization` Render notifications attached to these objects. This is the first pass of this work and there are some things we need to make decisions and improve. - Where (what pages) these notifications should render? - How "global" they should be considered? Note we are rendering these notifications in the template for now, but in the future they will be rendered using the APIv3: #259 Closes #260 * Render notifications before project/organization header * Apply suggestions from code review Co-authored-by: Anthony <[email protected]> --------- Co-authored-by: Anthony <[email protected]>
@humitos Can this be closed? |
Nevermind, this is still a valid issue. I thought we got rid of this hack but we do need to return to it: ext-theme/src/js/build/detail.js Lines 447 to 455 in e063afa
The other notifications are fine to drive with template logic however, I don't feel we need to adjust those yet. We can focus this issue on the build detail notifications instead. So the question instead is: can we finish this work now, or are we still blocked? |
This work is about "rendering all the notifications via APIv3". This requires creating all the KO structure/pattern to consume the APIv3 endpoints --which is not implemented already and think you are the best one to do this work here. Besides, there are some other work here missing as well:
Note that rending the notifications by using template logic was only just a temporal workaround to allow us to move forward with the implementation of the new notification system. |
From our chat on this:
|
I started poking this on the build detail view and found that we can't use the APIv3 build endpoint still. This view uses the build v2 API for access to BuildCommands. I opened up I didn't realize we implemented the Notifications in v2 API, so can at least start there. |
This can be closed since it was implemented in #300 |
Edit: in discussion below we narrowed the focus of this for right now. Currently, everything is template driven, but the build detail page needs to be API driven still. We'll punt on the rest of the items as there isn't a huge amount of value in API driven user/organization notifications yet.
Decisions
Work
cc @humitos, you might have some input on what is needed here
The text was updated successfully, but these errors were encountered: