{"action":"created","issue":{"url":"https://api.github.com/repos/specify/specify7/issues/209","repository_url":"https://api.github.com/repos/specify/specify7","labels_url":"https://api.github.com/repos/specify/specify7/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/specify/specify7/issues/209/comments","events_url":"https://api.github.com/repos/specify/specify7/issues/209/events","html_url":"https://github.com/specify/specify7/issues/209","id":130838423,"number":209,"title":"Can save dataset after deleting it","user":{"login":"garrettgirard","id":12533028,"avatar_url":"https://avatars.githubusercontent.com/u/12533028?v=3","gravatar_id":"","url":"https://api.github.com/users/garrettgirard","html_url":"https://github.com/garrettgirard","followers_url":"https://api.github.com/users/garrettgirard/followers","following_url":"https://api.github.com/users/garrettgirard/following{/other_user}","gists_url":"https://api.github.com/users/garrettgirard/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettgirard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettgirard/subscriptions","organizations_url":"https://api.github.com/users/garrettgirard/orgs","repos_url":"https://api.github.com/users/garrettgirard/repos","events_url":"https://api.github.com/users/garrettgirard/events{/privacy}","received_events_url":"https://api.github.com/users/garrettgirard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/specify/specify7/labels/pri:normal","name":"pri:normal","color":"fef2c0"},{"url":"https://api.github.com/repos/specify/specify7/labels/res:fixed","name":"res:fixed","color":"c7def8"},{"url":"https://api.github.com/repos/specify/specify7/labels/type:bug","name":"type:bug","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/specify/specify7/milestones/7","html_url":"https://github.com/specify/specify7/milestones/prerelease","labels_url":"https://api.github.com/repos/specify/specify7/milestones/7/labels","id":1202909,"number":7,"title":"prerelease","description":"","creator":{"login":"benanhalt","id":287254,"avatar_url":"https://avatars.githubusercontent.com/u/287254?v=3","gravatar_id":"","url":"https://api.github.com/users/benanhalt","html_url":"https://github.com/benanhalt","followers_url":"https://api.github.com/users/benanhalt/followers","following_url":"https://api.github.com/users/benanhalt/following{/other_user}","gists_url":"https://api.github.com/users/benanhalt/gists{/gist_id}","starred_url":"https://api.github.com/users/benanhalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benanhalt/subscriptions","organizations_url":"https://api.github.com/users/benanhalt/orgs","repos_url":"https://api.github.com/users/benanhalt/repos","events_url":"https://api.github.com/users/benanhalt/events{/privacy}","received_events_url":"https://api.github.com/users/benanhalt/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":13,"state":"open","created_at":"2015-07-10T18:54:16Z","updated_at":"2016-02-18T23:30:19Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-02-02T22:24:20Z","updated_at":"2016-02-18T23:33:04Z","closed_at":"2016-02-18T23:30:19Z","body":"I'm not completely sure what the problem is here, but it's likely related to the steps I took up until I got the error. First, I imported a spreadsheet successfully. Next, I deleted the newly created dataset, while still viewing this dataset in Workbench. Finally, I saved and then got the error. You can see how this is problematic, considering I just deleted the dataset before saving it. After reloading the page, you get a 404 error as this dataset no longer exists.\r\n\r\nError Message:\r\nAssertionError at /api/workbench/rows/15/\r\n([], [13884, u'Bu-0094c', u'Simone', u'Sheridan', u'00/00/2002', u'Asia', u'Myanmar', u'Kachin', u'Myitkyina', u'Amber mines, Hukawng Valley', u'Mesozoic', u'Cenomanian', u'', u'', u'Leeward Capitol Corp.', u'01/01/1999', u'31/12/1999', u'1999', u'Animalia', u'Arthropoda', u'Arachnida', u'', u'', u'Araneae', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'Amber', u'1'])\r\n\r\nRequest Method: PUT\r\nRequest URL: http://db3.biwebdbtest.nhm.ku.edu/api/workbench/rows/15/\r\nDjango Version: 1.5\r\nPython Executable: /usr/bin/python\r\nPython Version: 2.7.3\r\nPython Path: ['/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/home/anhalt/specify7-master']\r\nServer time: Tue, 2 Feb 2016 16:16:06 -0600\r\nInstalled Applications:\r\n('django.contrib.sessions',\r\n 'django.contrib.staticfiles',\r\n 'specifyweb.specify',\r\n 'specifyweb.stored_queries',\r\n 'specifyweb.businessrules',\r\n 'specifyweb.express_search',\r\n 'specifyweb.context',\r\n 'specifyweb.attachment_gw',\r\n 'specifyweb.frontend',\r\n 'specifyweb.barvis',\r\n 'specifyweb.report_runner',\r\n 'specifyweb.interactions',\r\n 'specifyweb.workbench',\r\n 'raven.contrib.django.raven_compat')\r\nInstalled Middleware:\r\n('django.middleware.gzip.GZipMiddleware',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'specifyweb.context.middleware.ContextMiddleware')"},"comment":{"url":"https://api.github.com/repos/specify/specify7/issues/comments/185979971","html_url":"https://github.com/specify/specify7/issues/209#issuecomment-185979971","issue_url":"https://api.github.com/repos/specify/specify7/issues/209","id":185979971,"user":{"login":"benanhalt","id":287254,"avatar_url":"https://avatars.githubusercontent.com/u/287254?v=3","gravatar_id":"","url":"https://api.github.com/users/benanhalt","html_url":"https://github.com/benanhalt","followers_url":"https://api.github.com/users/benanhalt/followers","following_url":"https://api.github.com/users/benanhalt/following{/other_user}","gists_url":"https://api.github.com/users/benanhalt/gists{/gist_id}","starred_url":"https://api.github.com/users/benanhalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benanhalt/subscriptions","organizations_url":"https://api.github.com/users/benanhalt/orgs","repos_url":"https://api.github.com/users/benanhalt/repos","events_url":"https://api.github.com/users/benanhalt/events{/privacy}","received_events_url":"https://api.github.com/users/benanhalt/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T23:33:04Z","updated_at":"2016-02-18T23:33:04Z","body":"If you open a dataset in multiple tabs or computers, delete it on one of them and try to save/upload/validate/delete it from a tab where it is still showing, then there will be a \"Dataset deleted by another session.\" message instead of errors."}}