-
Notifications
You must be signed in to change notification settings - Fork 42
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
[0.2.1-deb] Deleted source briefly re-appears as ghost #858
Comments
Can you check if you can still reproduce now that #866 has been merged (also I haven't been able to repro this issue yet)? UpdateI just saw this issue |
I've not tested with #866 yet but I saw it again in the original 0.2.1-deb release build today. |
ah good to know, i'll keep trying to repro today |
I just want to add my notes to this issue: Why does deleting the source from the local db before we see the source gone in the next sync cause the ghost issue?
This is an issue because we assume in the client code that a source from a server sync response (which could be outdated) that we don't have stored in our local db is a new source that we need to add locally. If instead of deleting the source locally we just updated its status to When should we remove the source from the local sources table?
|
Agree with your 1. So recapping a convo between @creviera @eloquence @ninavizz and I, we can:
And we could separate this into two changes:
|
Agreed, just want to note (already shared off-github with @redshiftzero) that we can achieve the above without a |
To explain this another way, there's no reason we would ever need to check the db to see if we need if we need to show a source as pending deletion before creating a source widget. Also, removing the |
I follow this reasoning; in that model, a |
Following up on our earlier conversation, I was looking at the |
#893 modifies that behavior. Once it's merged we will only delete SourceWidget when the source is deleted, which resolves the issue you pointed out. |
I agree - since we do not need to persist the pending status between sessions (the journalist will need to attempt to delete the source again manually in that scenario), we do not need to store it in the database after #893 |
Encountered during QA.
After deleting a source just before a sync, I saw the source briefly re-appear for a few seconds. The ghost of the source did not have any messages or replies, and communicating with the ghost led to reply failures. The ghost source vanished after a few more seconds.
For cases like this, a pending deletion state (#534) would come in handy.
The text was updated successfully, but these errors were encountered: