{"action":"created","issue":{"url":"https://api.github.com/repos/u01jmg3/ics-parser/issues/149","repository_url":"https://api.github.com/repos/u01jmg3/ics-parser","labels_url":"https://api.github.com/repos/u01jmg3/ics-parser/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/u01jmg3/ics-parser/issues/149/comments","events_url":"https://api.github.com/repos/u01jmg3/ics-parser/issues/149/events","html_url":"https://github.com/u01jmg3/ics-parser/issues/149","id":239706812,"number":149,"title":"Limit the number of events that are parsed","user":{"login":"munkex","id":2952180,"avatar_url":"https://avatars3.githubusercontent.com/u/2952180?v=4","gravatar_id":"","url":"https://api.github.com/users/munkex","html_url":"https://github.com/munkex","followers_url":"https://api.github.com/users/munkex/followers","following_url":"https://api.github.com/users/munkex/following{/other_user}","gists_url":"https://api.github.com/users/munkex/gists{/gist_id}","starred_url":"https://api.github.com/users/munkex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munkex/subscriptions","organizations_url":"https://api.github.com/users/munkex/orgs","repos_url":"https://api.github.com/users/munkex/repos","events_url":"https://api.github.com/users/munkex/events{/privacy}","received_events_url":"https://api.github.com/users/munkex/received_events","type":"User","site_admin":false},"labels":[{"id":200381161,"url":"https://api.github.com/repos/u01jmg3/ics-parser/labels/change","name":"change","color":"009800","default":false},{"id":47283505,"url":"https://api.github.com/repos/u01jmg3/ics-parser/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":665914984,"url":"https://api.github.com/repos/u01jmg3/ics-parser/labels/on-hold","name":"on-hold","color":"000000","default":false},{"id":915958861,"url":"https://api.github.com/repos/u01jmg3/ics-parser/labels/pull-request-welcome","name":"pull-request-welcome","color":"ba27d1","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-30T08:09:14Z","updated_at":"2018-05-21T14:26:15Z","closed_at":null,"author_association":"NONE","body":"We had some files which contained 70k+ events, which made the progress timeout when running through the parser.\r\n\r\nSo in the function `initLines` we added a counter which broke the progress if we hit that limit.\r\nAfter the foreach loop we added:\r\n\r\nWhat we thought would be a nice feature if you were able to add so the limit (30 in our case) where able to be changed when initializing the ical function (default should be unlimited: 0)\r\n\r\nExample of use could be something like this:\r\n\r\nI attached screenshot of what I were thinking. (im not sure if the things are added at the correct places in the file, but it was to give you an example).\r\n\r\n![function_initlines](https://user-images.githubusercontent.com/2952180/27726473-efb60192-5d7a-11e7-8089-3c8301c8aab2.png)\r\n![option](https://user-images.githubusercontent.com/2952180/27726474-efb9007c-5d7a-11e7-8617-9da7409dd927.png)"},"comment":{"url":"https://api.github.com/repos/u01jmg3/ics-parser/issues/comments/390670057","html_url":"https://github.com/u01jmg3/ics-parser/issues/149#issuecomment-390670057","issue_url":"https://api.github.com/repos/u01jmg3/ics-parser/issues/149","id":390670057,"user":{"login":"u01jmg3","id":1266205,"avatar_url":"https://avatars2.githubusercontent.com/u/1266205?v=4","gravatar_id":"","url":"https://api.github.com/users/u01jmg3","html_url":"https://github.com/u01jmg3","followers_url":"https://api.github.com/users/u01jmg3/followers","following_url":"https://api.github.com/users/u01jmg3/following{/other_user}","gists_url":"https://api.github.com/users/u01jmg3/gists{/gist_id}","starred_url":"https://api.github.com/users/u01jmg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u01jmg3/subscriptions","organizations_url":"https://api.github.com/users/u01jmg3/orgs","repos_url":"https://api.github.com/users/u01jmg3/repos","events_url":"https://api.github.com/users/u01jmg3/events{/privacy}","received_events_url":"https://api.github.com/users/u01jmg3/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T14:26:15Z","updated_at":"2018-05-21T14:26:15Z","author_association":"OWNER","body":"Apologies for the delay - happy to receive the file. Can you share via a private repo?"}}
{"actor":{"display_login":"u01jmg3"}}