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
As a Content Editor I want a "Push" button, to send push notification about specific contents I'm managing. #534
Comments
@mrabans @RudiThoeni I've created this issue and we need to start defining how should be the generic solution. Are there other open questions that should be taken into consideration for this issue? |
@sseppi probably we have to discuss this in detail to come up with a future proof solution. |
We discussed about the push functionality and the idea was to have one generic Push Endpoint where this informations has to be passed:
On Publisher Level the Push Functionality has to be activated. We thought about activating it on Dataset type. The information (Timestap when, PushId etc...) has to ba saved on data level and displayed to the user somewhere, so he knows that a push was already sent etc.... |
We had a discussion where we defined:
Some UX questions emerged
|
@RudiThoeni what do you mean with
Could you pls specify the usecase? |
Hi @pkritzinger in case we have two different "publishers" that allows to send push notification at two different apps (e.g. NOI App and suedtirol.info), we need to allow the user to choose where he wants to push the notification. We thought that one possible way would be to have a dropdown menu or a checkbox that allows the user to select the applications he wants to send the push to. Did I clarified better what we ment?
|
@sseppi now it's crystal clear, thanks :) |
Hi @gappc @sseppi
Databrowser Side: (#553)
When bot of this tasks are completed everything is ready to add the implementation for the push button |
Hey @RudiThoeni, I saw your PR. Although I didn't look into the details, it looks already very nice 👍 From the screenshot I think I know where you got stuck: Lets schedule a meeting and maybe do some pair programming, so we can exchange ideas and possible solutions. |
As you can see from the previous comment of Rudi, he prepared everything is needed to implement the "Push" button. He has only one question, he would like to discuss with you. From my point of view, the next steps are:
As agreed during the meeting, since the backend isn't still ready now, we implement only the logic to send the push, not the one to program it. I will create a dedicated issue to the Program Push functionality (#554 ). |
Hi @sseppi on test i added now for the publishers To perform the push the User must have the right permissions otherwise 403 is returned If all goes well the api call returns a http 200 with a public class PushResponse
{
public string Id { get; set; }
public string Publisher { get; set; }
public DateTime Date { get; set; }
public dynamic Result { get; set; }
} To be discussed: What we display when the push is done Will write here when everything is ready |
Hi @RudiThoeni and @gappc , thank you for the great work!
If we have it, I think that ID and timestamp of the push could be useful, to easily debug in case of problems. What do you think? |
I created a Table where all push infos are stored.... and an api where all pushinfo can be retrieved.... |
@gappc now everything is ready to implement the button The endpoint the button should finally reach is I added some mocks to the endpoint so we can test, it does provide this responses {
"idm-marketplace": {
"Id": "f8c691e7-ac2b-4c92-8ed6-9e5c9036fde7",
"Publisher": "idm-marketplace",
"Date": "2024-04-05T14:18:19.5313719+02:00",
"Result": {
"Response": "This is a mockup response",
"HttpStatusCode": "OK",
"Service": "idm-marketplace",
"Success": true
},
"PushObject": {
"Id": "smgpoifad01289740e1d2f58dc1aa29288bb33",
"Type": "odhactivitypoi"
}
}
}
{
"noi-communityapp": {
"Id": "69bad1f0-d9de-4b25-be5c-9484441e5021",
"Publisher": "noi-communityapp",
"Date": "2024-04-05T14:12:53.5357176+02:00",
"Result": {
"Messages": 1,
"Success": true,
"Response": "This is a mockup response",
"Error": ""
},
"PushObject": {
"Id": "smgpoifad01289740e1d2f58dc1aa29288bb33",
"Type": "odhactivitypoi"
}
}
} The Button should show only if the push was done (Result.Success true/false) and maybe provide the (Id) so that if something went wrong it could all be looked into the PushResults Api (i still have to create the view in the databrowser for this api). |
@sseppi can we close this issue? |
@gappc I will test the feature together with the client and, in case of positive feedback, close it. |
In the old Data Browser there was the possibility to send push notification about specific contents.
The first real use case we have is the Push of notification about NOI News to the NOI App.
In this issue we should define and implement a generic solution, to allows us to activate this push functionality without the need to riprogramm it every time there is a new app or content that should be pushd or notified.
Open Questions
Maybe it could be simply all users who have edit rights on the data);
published on
attribute?The text was updated successfully, but these errors were encountered: