This has happened to me twice now on 8.x. I am editing a view and leave the Views UI window open for quite a while. To my surprise, when I come back later the view has been deleted entirely and is no longer on the list. There are no watchdog entries to indicate this happened
Side issue in this case: To make matters more annoying, from my backup, I can't get Config to export a suitable view snippet that can be easily imported to the dev instance. It complains about weird things like modules being required that are not actually required for the view at all, but I think related to the UUID or some other aspect of the config system.
The correct behavior would be to make a confirmation page have to be approved before any view is removed entirely. I looked around the issue queues and could not find any issues corresponding to this. The workaround would be to paste an exported views config object from a backup. Somewhat related #2416109: Validate configuration dependencies before importing configuration
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedWhew. This makes no sense. Could you leave your browser's console open to the network tab and see if anything was posted if it happens again?
Comment #3
davidhernandezAre you editing an existing view or creating a new one?
Comment #4
dawehnerThis sounds a bit like an accidental removal when a field got removed, which was part of the view somehow. This could look like a related issue.
On a normal case we actually save the view already (unlike in D7) when the view got created the first time.
Comment #5
HongPong CreditAttribution: HongPong as a volunteer and at kor group commentedSure I'll try to watch for this to happen again, maybe bait it into happening on a test server. I know for a fact that I didn't delete the view (also this was an edit of an existing view, not an unsaved new view). Maybe related: my workstation has something wrong with its power supply and shut off upon sleep a few times lately. I think yesterday, the view UI was open, the computer shut off, I rebooted and restored my browser sessions. It also happened one previous time. Unlike D7 it seems like they are a little more slippery - I never had a view delete unexpectedly on D7 or D6.
I'd suggest also adding an option to log ( https://www.drupal.org/node/2595985 ) the deletion of views. If someone wants to clue me into how I could pull that off in a patch, might take a shot at it.
Comment #7
quietone CreditAttribution: quietone as a volunteer commentedAnyone else experienced this problem?
This needs complete steps to reproduce the issue (starting from "Install Drupal core") to move forward with this issue. Adding tag.
Comment #11
quietone CreditAttribution: quietone as a volunteer commentedIt has been over a year and there has been no response and no further comments that anyone is having this problem.
Therefore, closing as outdated. If this is incorrect reopen the issue, by setting the status to 'Active', and add a comment explaining what still needs to be done.
Thanks!