{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/23087414","id":23087414,"diff_hunk":"@@ -0,0 +1,49 @@\n+# -*- coding: utf-8 -*-\n+## This file is part of INSPIRE.\n+## Copyright (C) 2014, 2015 CERN.\n+##\n+## Invenio is free software; you can redistribute it and/or\n+## modify it under the terms of the GNU General Public License as\n+## published by the Free Software Foundation; either version 2 of the\n+## License, or (at your option) any later version.\n+##\n+## Invenio is distributed in the hope that it will be useful, but\n+## WITHOUT ANY WARRANTY; without even the implied warranty of\n+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+## General Public License for more details.\n+##\n+## You should have received a copy of the GNU General Public License\n+## along with Invenio; if not, write to the Free Software Foundation, Inc.,\n+## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.\n+\n+AUTHORS_IDENTIFIERS_TYPES = ['authorid', 'orcid', 'arxiv']\n+\n+INSPIRE_EMAIL_REGEX = \"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$\"\n+INSPIRE_URL_REGEX = \"^(?:http(?:s)?:\\/\\/)?(?:www\\.)?(?:[\\w-]*)\\.\\w{2,}$\"\n+\n+INSPIRE_AFFILIATION_RANKS = ['senior', 'junior', 'staff', 'visitor', 'postdoc',\n+                             'phd', 'masters', 'undergrad']\n+\n+# year - month (2 digits) -day (2 digits)\n+INSPIRE_DATE_REGEX = \"^[1|2][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0|1])$\"\n+\n+INSPIRE_AFFILIATION_STATUS = ['current']\n+INSPIRE_EXPERIMENT_STATUS = ['current']\n+INSPIRE_EMAIL_STATUS = ['current']\n+\n+INSPIRE_NAME_NUMERATIONS = \"^Jr\\.|Sr\\.|III|IV|VI{0,3}$\"\n+INSPIRE_NAME_STATUSES = ['active', 'deceased', 'departed', 'retired']\n+INSPIRE_NAME_TITLES = ['Sir']\n+\n+\n+INSPIRE_YEAR_MIN = 1900","path":"inspire/modules/authors/config.py","position":39,"original_position":39,"commit_id":"703e41ebb95450ab4c8deeb13d1487593825cc95","original_commit_id":"703e41ebb95450ab4c8deeb13d1487593825cc95","user":{"login":"kaplun","id":119349,"avatar_url":"https://avatars.githubusercontent.com/u/119349?v=3","gravatar_id":"","url":"https://api.github.com/users/kaplun","html_url":"https://github.com/kaplun","followers_url":"https://api.github.com/users/kaplun/followers","following_url":"https://api.github.com/users/kaplun/following{/other_user}","gists_url":"https://api.github.com/users/kaplun/gists{/gist_id}","starred_url":"https://api.github.com/users/kaplun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaplun/subscriptions","organizations_url":"https://api.github.com/users/kaplun/orgs","repos_url":"https://api.github.com/users/kaplun/repos","events_url":"https://api.github.com/users/kaplun/events{/privacy}","received_events_url":"https://api.github.com/users/kaplun/received_events","type":"User","site_admin":false},"body":"Ahem... we do.\r\nhttps://inspirehep.net/search?ln=en&ln=en&p=&of=hb&action_search=Search&sf=earliestdate&so=a&rm=&rg=25&sc=0\r\n\r\nFor date handling we should you the internal dateutils module (at least it existed on master) that was solving Python issues related to dates earlier than the Epoch or 1900.","created_at":"2015-01-16T15:44:46Z","updated_at":"2015-01-16T15:44:46Z","html_url":"https://github.com/inspirehep/inspire-next/pull/170#discussion_r23087414","pull_request_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/170","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/23087414"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/170#discussion_r23087414"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/170"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/170","id":25141758,"html_url":"https://github.com/inspirehep/inspire-next/pull/170","diff_url":"https://github.com/inspirehep/inspire-next/pull/170.diff","patch_url":"https://github.com/inspirehep/inspire-next/pull/170.patch","issue_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/170","number":170,"state":"open","locked":false,"title":"authors: inital release","user":{"login":"MSusik","id":6649290,"avatar_url":"https://avatars.githubusercontent.com/u/6649290?v=3","gravatar_id":"","url":"https://api.github.com/users/MSusik","html_url":"https://github.com/MSusik","followers_url":"https://api.github.com/users/MSusik/followers","following_url":"https://api.github.com/users/MSusik/following{/other_user}","gists_url":"https://api.github.com/users/MSusik/gists{/gist_id}","starred_url":"https://api.github.com/users/MSusik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSusik/subscriptions","organizations_url":"https://api.github.com/users/MSusik/orgs","repos_url":"https://api.github.com/users/MSusik/repos","events_url":"https://api.github.com/users/MSusik/events{/privacy}","received_events_url":"https://api.github.com/users/MSusik/received_events","type":"User","site_admin":false},"body":"* Introduces models and fields for author records.\r\n\r\n* Updates config file with new module name.\r\n\r\nSigned-off-by: Mateusz Susik <mateusz.susik@cern.ch>\r\n\r\nTO DO:\r\n+ tests\r\n+ discuss name -> previous_name field\r\n+ discuss where should config variables go (there are more general than only for authors usage)\r\n+ change config variables names\r\n","created_at":"2014-11-27T10:27:30Z","updated_at":"2015-01-16T15:44:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55258cd6f545ecaa6fe9d3e4784861c09e2231d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/170/commits","review_comments_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/170/comments","review_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/{number}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/170/comments","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/703e41ebb95450ab4c8deeb13d1487593825cc95","head":{"label":"MSusik:A1_authorrecords","ref":"A1_authorrecords","sha":"703e41ebb95450ab4c8deeb13d1487593825cc95","user":{"login":"MSusik","id":6649290,"avatar_url":"https://avatars.githubusercontent.com/u/6649290?v=3","gravatar_id":"","url":"https://api.github.com/users/MSusik","html_url":"https://github.com/MSusik","followers_url":"https://api.github.com/users/MSusik/followers","following_url":"https://api.github.com/users/MSusik/following{/other_user}","gists_url":"https://api.github.com/users/MSusik/gists{/gist_id}","starred_url":"https://api.github.com/users/MSusik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSusik/subscriptions","organizations_url":"https://api.github.com/users/MSusik/orgs","repos_url":"https://api.github.com/users/MSusik/repos","events_url":"https://api.github.com/users/MSusik/events{/privacy}","received_events_url":"https://api.github.com/users/MSusik/received_events","type":"User","site_admin":false},"repo":{"id":26327626,"name":"inspire-next","full_name":"MSusik/inspire-next","owner":{"login":"MSusik","id":6649290,"avatar_url":"https://avatars.githubusercontent.com/u/6649290?v=3","gravatar_id":"","url":"https://api.github.com/users/MSusik","html_url":"https://github.com/MSusik","followers_url":"https://api.github.com/users/MSusik/followers","following_url":"https://api.github.com/users/MSusik/following{/other_user}","gists_url":"https://api.github.com/users/MSusik/gists{/gist_id}","starred_url":"https://api.github.com/users/MSusik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSusik/subscriptions","organizations_url":"https://api.github.com/users/MSusik/orgs","repos_url":"https://api.github.com/users/MSusik/repos","events_url":"https://api.github.com/users/MSusik/events{/privacy}","received_events_url":"https://api.github.com/users/MSusik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MSusik/inspire-next","description":"INSPIRE overlay repository to be used with Invenio's NEXT branch","fork":true,"url":"https://api.github.com/repos/MSusik/inspire-next","forks_url":"https://api.github.com/repos/MSusik/inspire-next/forks","keys_url":"https://api.github.com/repos/MSusik/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MSusik/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MSusik/inspire-next/teams","hooks_url":"https://api.github.com/repos/MSusik/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/MSusik/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/MSusik/inspire-next/events","assignees_url":"https://api.github.com/repos/MSusik/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/MSusik/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/MSusik/inspire-next/tags","blobs_url":"https://api.github.com/repos/MSusik/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MSusik/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MSusik/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/MSusik/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MSusik/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/MSusik/inspire-next/languages","stargazers_url":"https://api.github.com/repos/MSusik/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/MSusik/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/MSusik/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/MSusik/inspire-next/subscription","commits_url":"https://api.github.com/repos/MSusik/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/MSusik/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/MSusik/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/MSusik/inspire-next/issues/comments/{number}","contents_url":"https://api.github.com/repos/MSusik/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/MSusik/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MSusik/inspire-next/merges","archive_url":"https://api.github.com/repos/MSusik/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MSusik/inspire-next/downloads","issues_url":"https://api.github.com/repos/MSusik/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/MSusik/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/MSusik/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/MSusik/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MSusik/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/MSusik/inspire-next/releases{/id}","created_at":"2014-11-07T16:24:24Z","updated_at":"2014-11-04T16:57:54Z","pushed_at":"2015-01-15T14:12:59Z","git_url":"git://github.com/MSusik/inspire-next.git","ssh_url":"git@github.com:MSusik/inspire-next.git","clone_url":"https://github.com/MSusik/inspire-next.git","svn_url":"https://github.com/MSusik/inspire-next","homepage":null,"size":4948,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inspirehep:master","ref":"master","sha":"8ce93922824d93b08a830a6f282da01355262853","user":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"repo":{"id":15221515,"name":"inspire-next","full_name":"inspirehep/inspire-next","owner":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspirehep/inspire-next","description":"INSPIRE overlay repository to be used with Invenio's NEXT branch","fork":false,"url":"https://api.github.com/repos/inspirehep/inspire-next","forks_url":"https://api.github.com/repos/inspirehep/inspire-next/forks","keys_url":"https://api.github.com/repos/inspirehep/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspirehep/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspirehep/inspire-next/teams","hooks_url":"https://api.github.com/repos/inspirehep/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/inspirehep/inspire-next/events","assignees_url":"https://api.github.com/repos/inspirehep/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/inspirehep/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/inspirehep/inspire-next/tags","blobs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspirehep/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspirehep/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/inspirehep/inspire-next/languages","stargazers_url":"https://api.github.com/repos/inspirehep/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/inspirehep/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/inspirehep/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/inspirehep/inspire-next/subscription","commits_url":"https://api.github.com/repos/inspirehep/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspirehep/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/comments/{number}","contents_url":"https://api.github.com/repos/inspirehep/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/inspirehep/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspirehep/inspire-next/merges","archive_url":"https://api.github.com/repos/inspirehep/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspirehep/inspire-next/downloads","issues_url":"https://api.github.com/repos/inspirehep/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/inspirehep/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/inspirehep/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspirehep/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/inspirehep/inspire-next/releases{/id}","created_at":"2013-12-16T09:11:58Z","updated_at":"2015-01-15T13:18:17Z","pushed_at":"2015-01-15T13:18:17Z","git_url":"git://github.com/inspirehep/inspire-next.git","ssh_url":"git@github.com:inspirehep/inspire-next.git","clone_url":"https://github.com/inspirehep/inspire-next.git","svn_url":"https://github.com/inspirehep/inspire-next","homepage":null,"size":7955,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":14,"forks":10,"open_issues":14,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/170"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/170"},"issue":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/170"},"comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/170/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/170/comments"},"review_comment":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/170/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/inspire-next/statuses/703e41ebb95450ab4c8deeb13d1487593825cc95"}}}}