{"action":"created","issue":{"url":"https://api.github.com/repos/vsivsi/meteor-job-collection/issues/109","labels_url":"https://api.github.com/repos/vsivsi/meteor-job-collection/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/vsivsi/meteor-job-collection/issues/109/comments","events_url":"https://api.github.com/repos/vsivsi/meteor-job-collection/issues/109/events","html_url":"https://github.com/vsivsi/meteor-job-collection/issues/109","id":104872966,"number":109,"title":"Recommended way to update/overwrite existing job options?","user":{"login":"voidale","id":4450730,"avatar_url":"https://avatars.githubusercontent.com/u/4450730?v=3","gravatar_id":"","url":"https://api.github.com/users/voidale","html_url":"https://github.com/voidale","followers_url":"https://api.github.com/users/voidale/followers","following_url":"https://api.github.com/users/voidale/following{/other_user}","gists_url":"https://api.github.com/users/voidale/gists{/gist_id}","starred_url":"https://api.github.com/users/voidale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voidale/subscriptions","organizations_url":"https://api.github.com/users/voidale/orgs","repos_url":"https://api.github.com/users/voidale/repos","events_url":"https://api.github.com/users/voidale/events{/privacy}","received_events_url":"https://api.github.com/users/voidale/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-04T11:26:29Z","updated_at":"2015-09-06T15:51:57Z","closed_at":"2015-09-04T16:49:57Z","body":"Hello Vaughn! \r\n\r\nIs it possible to overwrite Job.repeat or update for existing job in the collection? \r\n\r\nI'm trying to update the later js schedule but looking at the docs or trying to fetch the job using `j = new Job(jc, jobDoc)` and doing .save() has no effect and no new job either.\r\n\r\nMy use case is like this:\r\n1. user picks on client side a later js schedule (just one needs to be unique) something like: \r\n`later.parse.recur().on('12:15', '16:25').time().onWeekday()` \r\n2. we create a job for this schedule.\r\n3. user changed his schedule how we update job? \r\n\r\nThanks you for taking the time answering all my random questions"},"comment":{"url":"https://api.github.com/repos/vsivsi/meteor-job-collection/issues/comments/138094634","html_url":"https://github.com/vsivsi/meteor-job-collection/issues/109#issuecomment-138094634","issue_url":"https://api.github.com/repos/vsivsi/meteor-job-collection/issues/109","id":138094634,"user":{"login":"vsivsi","id":428642,"avatar_url":"https://avatars.githubusercontent.com/u/428642?v=3","gravatar_id":"","url":"https://api.github.com/users/vsivsi","html_url":"https://github.com/vsivsi","followers_url":"https://api.github.com/users/vsivsi/followers","following_url":"https://api.github.com/users/vsivsi/following{/other_user}","gists_url":"https://api.github.com/users/vsivsi/gists{/gist_id}","starred_url":"https://api.github.com/users/vsivsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsivsi/subscriptions","organizations_url":"https://api.github.com/users/vsivsi/orgs","repos_url":"https://api.github.com/users/vsivsi/repos","events_url":"https://api.github.com/users/vsivsi/events{/privacy}","received_events_url":"https://api.github.com/users/vsivsi/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T15:51:57Z","updated_at":"2015-09-06T15:51:57Z","body":"Hi, forking the project does seem the most straightforward, but has the issue of merging upstream changes back into you fork as you mention. \r\n\r\nUnfortunately when I added the later.js support, I didn't anticipate this case and make it more pluggable.  \r\n\r\nIs your timezome enhanced later.js otherwise compatible with vanilla later.js?  Specifically, do the schedule objects serialize to essentially the same schema?  Job collection isn't very thorough in validating these objects, so there may be enough wiggle room if you haven't made radical changes. \r\nSee the validation rule here: https://github.com/vsivsi/meteor-job-collection/blob/master/src/shared.coffee#L48\r\n\r\nAlso, is your timezome enhanced version backward compatible with schedules crated by the vanilla version?  If so, I would consider a PR using your new version instead of mrt:later. You are not the first nor the last to want TZ support in JC+later, so that would be a nice addition, but it would need to backwards compatible. "}}