-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Deleted events remain in list view until a full refresh #1143
Comments
Looking..... |
@blakeblackshear cc @paularmstrong Still learning this web code base. Can you help me under stand what this shouldFetch does? Ive tried debugging and reading the values in chrome debugger, but still a bit confused. My initial debugging of this bug shows that in Events.jsx , 'payload' is still holding on the the event in the array of which was deleted. So the ''APPEND_EVENTS' gets called, but the payload hasn't been updated/notified that it needs to be refreshed Trying to figure out where to do that. On the delete event route call back, I can pass a query param like ?refresh=true so that we can leverage that for payload refresh potentially.... Looking for thoughts here. Thanks! |
IIRC, for this, first I was going to rework the API a bit to fix the
In terms of |
@paularmstrong Do you want to take this bug? Im not super sure how to solve this. Here is what I noticed after several hours of debugging.
Do you have a flow chart of all methods in this class that are fired? |
@paularmstrong just following up on next steps... :) |
What if we slice the event out from the local memory without fetching new data from servere?
Could we utilize websocket, so UI gets a notification / banner that newer events is available? |
I believe the easiest/best way is to use Context API and update state. |
I found it pretty troublesome to find a good way to filter the event out from context as they are stored with url as a key, and mapping though all the url (key) to find the correct ID may not be the best option. However, i have made a fix that solves this issue, but if @paularmstrong is gonna rebuild the whole API then i wont bother a PR, and im not sure my solution would be the best either 😄 |
@sinamics I think this solution looks fine @paularmstrong @blakeblackshear think it would be a fine stop gap for release 9 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The delete functionality works to delete events, but the frontend doesn't remove the deleted event from the list view until I refresh the page. I am testing in development where I have only 5 events.
cc @mitchross
The text was updated successfully, but these errors were encountered: