{"action":"created","issue":{"url":"https://api.github.com/repos/isetbio/RemoteDataToolbox/issues/36","labels_url":"https://api.github.com/repos/isetbio/RemoteDataToolbox/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/isetbio/RemoteDataToolbox/issues/36/comments","events_url":"https://api.github.com/repos/isetbio/RemoteDataToolbox/issues/36/events","html_url":"https://github.com/isetbio/RemoteDataToolbox/issues/36","id":124243661,"number":36,"title":"Deleting not actually deleting","user":{"login":"DavidBrainard","id":1158757,"avatar_url":"https://avatars.githubusercontent.com/u/1158757?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBrainard","html_url":"https://github.com/DavidBrainard","followers_url":"https://api.github.com/users/DavidBrainard/followers","following_url":"https://api.github.com/users/DavidBrainard/following{/other_user}","gists_url":"https://api.github.com/users/DavidBrainard/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBrainard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBrainard/subscriptions","organizations_url":"https://api.github.com/users/DavidBrainard/orgs","repos_url":"https://api.github.com/users/DavidBrainard/repos","events_url":"https://api.github.com/users/DavidBrainard/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBrainard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-29T17:38:44Z","updated_at":"2015-12-29T18:53:05Z","closed_at":null,"body":"I deleted an artifact from the isetbio validation repository (validation/full/scene/sceneFromRGB).  It looked  like it went away from the dot user interface, and also looked gone from the slash user interface.\r\n\r\nHere are screenshots to show I'm not making it up.\r\n\r\n![screen shot 2015-12-29 at 12 32 11 pm](https://cloud.githubusercontent.com/assets/1158757/12038718/66aa8e66-ae28-11e5-8f73-f68956afb8e6.png)\r\n\r\n<img width=\"532\" alt=\"screen shot 2015-12-29 at 12 31 11 pm\" src=\"https://cloud.githubusercontent.com/assets/1158757/12038725/6bbda672-ae28-11e5-8052-89220e25bcf6.png\">\r\n\r\nThen I ran a validation of that script.  This happily found the file and validated against it.\r\n\r\n<img width=\"1169\" alt=\"screen shot 2015-12-29 at 12 35 15 pm\" src=\"https://cloud.githubusercontent.com/assets/1158757/12038747/a2f07d18-ae28-11e5-9d32-3ffa4b74aa58.png\">\\\r\n\r\nI don't know if it is still finding it in my cache and not detecting that it has been deleted from the server, or whether the server is still serving it.\r\n\r\nEven more confusing, if I open a new browser window with the dot interface, it comes back.  Here is a screen shot of that.\r\n\r\n![screen shot 2015-12-29 at 12 36 40 pm](https://cloud.githubusercontent.com/assets/1158757/12038779/d553c314-ae28-11e5-912d-1f84b64593e4.png)\r\n\r\nAt the same time, the slash interface shows it as gone.\r\n\r\nHmmm.  Something is not working the way we expect it to.\r\n\r\n(Note that deleting a validation file is how we update it -- we wanted to make this hard to do by accident.)\r\n"},"comment":{"url":"https://api.github.com/repos/isetbio/RemoteDataToolbox/issues/comments/167852414","html_url":"https://github.com/isetbio/RemoteDataToolbox/issues/36#issuecomment-167852414","issue_url":"https://api.github.com/repos/isetbio/RemoteDataToolbox/issues/36","id":167852414,"user":{"login":"benjamin-heasly","id":1950775,"avatar_url":"https://avatars.githubusercontent.com/u/1950775?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamin-heasly","html_url":"https://github.com/benjamin-heasly","followers_url":"https://api.github.com/users/benjamin-heasly/followers","following_url":"https://api.github.com/users/benjamin-heasly/following{/other_user}","gists_url":"https://api.github.com/users/benjamin-heasly/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamin-heasly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamin-heasly/subscriptions","organizations_url":"https://api.github.com/users/benjamin-heasly/orgs","repos_url":"https://api.github.com/users/benjamin-heasly/repos","events_url":"https://api.github.com/users/benjamin-heasly/events{/privacy}","received_events_url":"https://api.github.com/users/benjamin-heasly/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T18:53:05Z","updated_at":"2015-12-29T18:53:05Z","body":"I think one problem is that the web UI (aka dot interface) is slow to update, which stinks.\r\n\r\nOther than that, I think Gradle views it as correct to return the locally cached artifact even when the same artifact has been deleted from the server.  I think Gradle's mindset is more like \"stockpiling goodies\" rather than \"syncing a remote folder\".\r\n\r\nAnother way to handle updates instead of deleting existing artifacts could be to publish a new artifact with a new version number.  In that case, we would not have to worry about stale artifacts in the local cache because they would be old-but-correct-as-of-that-version.  And newer versions would be returned if/when available.\r\n\r\nThe update would still be explicit and hard to do by accident because the updater would have to supply the new version number.\r\n\r\nBut maybe using versions in this way is a different mindset that we have not talked about as a group."}}