{"action":"created","issue":{"url":"https://api.github.com/repos/internetee/registry/issues/260","repository_url":"https://api.github.com/repos/internetee/registry","labels_url":"https://api.github.com/repos/internetee/registry/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/internetee/registry/issues/260/comments","events_url":"https://api.github.com/repos/internetee/registry/issues/260/events","html_url":"https://github.com/internetee/registry/issues/260","id":191724416,"number":260,"title":"remove 90 days limit on Days To Renew Domain Before Expire","user":{"login":"vohmar","id":7734747,"avatar_url":"https://avatars.githubusercontent.com/u/7734747?v=3","gravatar_id":"","url":"https://api.github.com/users/vohmar","html_url":"https://github.com/vohmar","followers_url":"https://api.github.com/users/vohmar/followers","following_url":"https://api.github.com/users/vohmar/following{/other_user}","gists_url":"https://api.github.com/users/vohmar/gists{/gist_id}","starred_url":"https://api.github.com/users/vohmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vohmar/subscriptions","organizations_url":"https://api.github.com/users/vohmar/orgs","repos_url":"https://api.github.com/users/vohmar/repos","events_url":"https://api.github.com/users/vohmar/events{/privacy}","received_events_url":"https://api.github.com/users/vohmar/received_events","type":"User","site_admin":false},"labels":[{"id":103122573,"url":"https://api.github.com/repos/internetee/registry/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"vohmar","id":7734747,"avatar_url":"https://avatars.githubusercontent.com/u/7734747?v=3","gravatar_id":"","url":"https://api.github.com/users/vohmar","html_url":"https://github.com/vohmar","followers_url":"https://api.github.com/users/vohmar/followers","following_url":"https://api.github.com/users/vohmar/following{/other_user}","gists_url":"https://api.github.com/users/vohmar/gists{/gist_id}","starred_url":"https://api.github.com/users/vohmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vohmar/subscriptions","organizations_url":"https://api.github.com/users/vohmar/orgs","repos_url":"https://api.github.com/users/vohmar/repos","events_url":"https://api.github.com/users/vohmar/events{/privacy}","received_events_url":"https://api.github.com/users/vohmar/received_events","type":"User","site_admin":false},"assignees":[{"login":"vohmar","id":7734747,"avatar_url":"https://avatars.githubusercontent.com/u/7734747?v=3","gravatar_id":"","url":"https://api.github.com/users/vohmar","html_url":"https://github.com/vohmar","followers_url":"https://api.github.com/users/vohmar/followers","following_url":"https://api.github.com/users/vohmar/following{/other_user}","gists_url":"https://api.github.com/users/vohmar/gists{/gist_id}","starred_url":"https://api.github.com/users/vohmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vohmar/subscriptions","organizations_url":"https://api.github.com/users/vohmar/orgs","repos_url":"https://api.github.com/users/vohmar/repos","events_url":"https://api.github.com/users/vohmar/events{/privacy}","received_events_url":"https://api.github.com/users/vohmar/received_events","type":"User","site_admin":false}],"milestone":null,"comments":15,"created_at":"2016-11-25T15:28:02Z","updated_at":"2016-12-19T08:51:01Z","closed_at":null,"body":"Current .ee domain regulations set a limit that a domain can be renewd when there is 90 days or less left until the expiration date (valid to). From 1st of January 2017 there is no such requirement.\r\n\r\nThere is a setting in admin interface called Days To Renew Domain Before Expire, setting this to 0 enables to renew domain indefinitely.\r\n\r\nTo enforce the limits on supported registration periods we need to limit the max value of valid_to in comparison to current time so the valid_to must always be less than today + max registration period (currently 3 years) + 1 year.\r\n\r\nvalidation must be added to epp domain:renew \r\n\r\nie\r\nit is now 25.11.2016\r\nso the max valid_to value of any domain must be < 25.11.2020\r\ndatetime example: now 19.12.2016 8:36 (Tallinn TZ)\r\nmax valid_to value must be less than 19.12.2020 6:36 (UTC) - datetime values in db must be in UTC\r\n\r\nIf the validation fails the operation must fail by returning result code \r\n2105    \"Object is not eligible for renewal; Expiration date must be less than [ max registration period + 1 year]\"\r\n\r\nMax and min periods for any zone is currently set in pricelist."},"comment":{"url":"https://api.github.com/repos/internetee/registry/issues/comments/267911857","html_url":"https://github.com/internetee/registry/issues/260#issuecomment-267911857","issue_url":"https://api.github.com/repos/internetee/registry/issues/260","id":267911857,"user":{"login":"vohmar","id":7734747,"avatar_url":"https://avatars.githubusercontent.com/u/7734747?v=3","gravatar_id":"","url":"https://api.github.com/users/vohmar","html_url":"https://github.com/vohmar","followers_url":"https://api.github.com/users/vohmar/followers","following_url":"https://api.github.com/users/vohmar/following{/other_user}","gists_url":"https://api.github.com/users/vohmar/gists{/gist_id}","starred_url":"https://api.github.com/users/vohmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vohmar/subscriptions","organizations_url":"https://api.github.com/users/vohmar/orgs","repos_url":"https://api.github.com/users/vohmar/repos","events_url":"https://api.github.com/users/vohmar/events{/privacy}","received_events_url":"https://api.github.com/users/vohmar/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T08:51:01Z","updated_at":"2016-12-19T08:51:01Z","body":"tests failed: https://travis-ci.org/internetee/registry/builds/185087426\r\nhttps://github.com/internetee/registry/pull/301"}}
{"actor":{"display_login":"vohmar"}}