Hi. We have a timeline where admins can see scheduled users during a time period. Admins can do usual crud operations.
A feature that has been requested is to be able, as an admin, to click on an event for a certain user and say "delete all events for this user after this event".
Everything is finished insofar as we perform a delete operation on the event, passing an operationid to indicate whether to delete the single event, all events, or all future events for that user, depending on what the user wants to do.
Everything works, except for the timeline itself. Naturally, only the event that was clicked on in the timeline disappears. All the other events that are now deleted (since i have done multi-delete on the server) are still showing in the timeline in the client.
My question is: Is there a way for me to perform logic in the timeline client-side, i.e. manually remove the events, so that i don't have to re-fetch them, or is a data-reload of the timeline my only option?
Thankful for pointers.
A feature that has been requested is to be able, as an admin, to click on an event for a certain user and say "delete all events for this user after this event".
Everything is finished insofar as we perform a delete operation on the event, passing an operationid to indicate whether to delete the single event, all events, or all future events for that user, depending on what the user wants to do.
Everything works, except for the timeline itself. Naturally, only the event that was clicked on in the timeline disappears. All the other events that are now deleted (since i have done multi-delete on the server) are still showing in the timeline in the client.
My question is: Is there a way for me to perform logic in the timeline client-side, i.e. manually remove the events, so that i don't have to re-fetch them, or is a data-reload of the timeline my only option?
Thankful for pointers.
Comment