{"action":"opened","issue":{"url":"https://api.github.com/repos/Esri/offline-editor-js/issues/305","labels_url":"https://api.github.com/repos/Esri/offline-editor-js/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/Esri/offline-editor-js/issues/305/comments","events_url":"https://api.github.com/repos/Esri/offline-editor-js/issues/305/events","html_url":"https://github.com/Esri/offline-editor-js/issues/305","id":67380899,"number":305,"title":"Support both ADD and UPDATE attachment","user":{"login":"andygup","id":510440,"avatar_url":"https://avatars.githubusercontent.com/u/510440?v=3","gravatar_id":"","url":"https://api.github.com/users/andygup","html_url":"https://github.com/andygup","followers_url":"https://api.github.com/users/andygup/followers","following_url":"https://api.github.com/users/andygup/following{/other_user}","gists_url":"https://api.github.com/users/andygup/gists{/gist_id}","starred_url":"https://api.github.com/users/andygup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygup/subscriptions","organizations_url":"https://api.github.com/users/andygup/orgs","repos_url":"https://api.github.com/users/andygup/repos","events_url":"https://api.github.com/users/andygup/events{/privacy}","received_events_url":"https://api.github.com/users/andygup/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Esri/offline-editor-js/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Esri/offline-editor-js/milestones/8","html_url":"https://github.com/Esri/offline-editor-js/milestones/v2.6","labels_url":"https://api.github.com/repos/Esri/offline-editor-js/milestones/8/labels","id":1004184,"number":8,"title":"v2.6","description":"","creator":{"login":"andygup","id":510440,"avatar_url":"https://avatars.githubusercontent.com/u/510440?v=3","gravatar_id":"","url":"https://api.github.com/users/andygup","html_url":"https://github.com/andygup","followers_url":"https://api.github.com/users/andygup/followers","following_url":"https://api.github.com/users/andygup/following{/other_user}","gists_url":"https://api.github.com/users/andygup/gists{/gist_id}","starred_url":"https://api.github.com/users/andygup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygup/subscriptions","organizations_url":"https://api.github.com/users/andygup/orgs","repos_url":"https://api.github.com/users/andygup/repos","events_url":"https://api.github.com/users/andygup/events{/privacy}","received_events_url":"https://api.github.com/users/andygup/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2015-03-03T15:33:44Z","updated_at":"2015-04-09T15:01:44Z","due_on":"2015-04-15T06:00:00Z","closed_at":null},"comments":0,"created_at":"2015-04-09T15:01:44Z","updated_at":"2015-04-09T15:01:44Z","closed_at":null,"body":"Need to make a distinction between an ADD and UPDATE. \r\n\r\nUse cases:\r\n- ADD new attachment\r\n- UPDATE new attachment > convert to an ADD operation\r\n- UPDATE existing attachment (uses existing ObjectId and AttachmentId)\r\n\r\nThis enhancement includes adding `attachmentId` property to `newAttachment` in `O.esri.Edit.AttachmentsStore`. Reference: https://github.com/Esri/offline-editor-js/blob/master/lib/edit/attachmentsStore.js#L22"}}