{"action":"opened","number":404,"pull_request":{"url":"https://api.github.com/repos/Midburn/Spark/pulls/404","id":121141967,"html_url":"https://github.com/Midburn/Spark/pull/404","diff_url":"https://github.com/Midburn/Spark/pull/404.diff","patch_url":"https://github.com/Midburn/Spark/pull/404.patch","issue_url":"https://api.github.com/repos/Midburn/Spark/issues/404","number":404,"state":"open","locked":false,"title":"added cache to drupal search","user":{"login":"ArtyomKa","id":595596,"avatar_url":"https://avatars0.githubusercontent.com/u/595596?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtyomKa","html_url":"https://github.com/ArtyomKa","followers_url":"https://api.github.com/users/ArtyomKa/followers","following_url":"https://api.github.com/users/ArtyomKa/following{/other_user}","gists_url":"https://api.github.com/users/ArtyomKa/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtyomKa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtyomKa/subscriptions","organizations_url":"https://api.github.com/users/ArtyomKa/orgs","repos_url":"https://api.github.com/users/ArtyomKa/repos","events_url":"https://api.github.com/users/ArtyomKa/events{/privacy}","received_events_url":"https://api.github.com/users/ArtyomKa/received_events","type":"User","site_admin":false},"body":"<!-- PLEASE READ THE FOLLOWING INSTRUCTIONS -->\r\nDrupal cannot handle the search request that come from volunteers module through spark. \r\nIt was decided to cache drupal searches in spark.\r\n### Proposed solution\r\n<!-- Which specific problem does this PR solve and how?  -->\r\n<!-- If it fixes a particular Issue, add \"Fixes #ISSUE_NUMBER\" in your title -->\r\nuserdata is stored in memory with TTL of one day.\r\n\r\n`USE_DRUPAL_CACHE=true` env vairable enables the cache usage.\r\n\r\nnode-cache package is used.\r\n### Tradeoffs\r\n<!-- What are the drawbacks of this solution? Are there alternative ones? -->\r\n<!-- Think of performance, build time, usability, complexity, coupling…) -->\r\n\r\ndrupal changes will be reflected only after cache invalidation\r\n### Testing Done\r\n<!-- How have you confirmed this feature works? -->\r\n\r\n<!-- BEFORE SUBMITTING YOUR PR, MAKE SURE TO FOLLOW THESE STEPS: -->\r\n<!-- 1. Pull the latest `master` branch -->\r\n<!-- 2. Run `npm install` to install all Spark dependencies -->\r\n<!-- 3. Make sure your code is compliant with the [Spark styleguide](CONTRIBUTING.md) -->\r\n<!-- 4. If your PR fixes an issue, reference that issue -->\r\n<!-- 5. If your PR has lots of commits, **rebase** first -->\r\n<!-- 6. Run `npm test` before submitting your PR -->\r\n","created_at":"2017-05-17T20:11:01Z","updated_at":"2017-05-17T20:11:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Midburn/Spark/pulls/404/commits","review_comments_url":"https://api.github.com/repos/Midburn/Spark/pulls/404/comments","review_comment_url":"https://api.github.com/repos/Midburn/Spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Midburn/Spark/issues/404/comments","statuses_url":"https://api.github.com/repos/Midburn/Spark/statuses/40ad018ed6954b458eee98f4f102a244a346c62b","head":{"label":"ArtyomKa:add_cache_for_drupal","ref":"add_cache_for_drupal","sha":"40ad018ed6954b458eee98f4f102a244a346c62b","user":{"login":"ArtyomKa","id":595596,"avatar_url":"https://avatars0.githubusercontent.com/u/595596?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtyomKa","html_url":"https://github.com/ArtyomKa","followers_url":"https://api.github.com/users/ArtyomKa/followers","following_url":"https://api.github.com/users/ArtyomKa/following{/other_user}","gists_url":"https://api.github.com/users/ArtyomKa/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtyomKa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtyomKa/subscriptions","organizations_url":"https://api.github.com/users/ArtyomKa/orgs","repos_url":"https://api.github.com/users/ArtyomKa/repos","events_url":"https://api.github.com/users/ArtyomKa/events{/privacy}","received_events_url":"https://api.github.com/users/ArtyomKa/received_events","type":"User","site_admin":false},"repo":{"id":78201666,"name":"Spark","full_name":"ArtyomKa/Spark","owner":{"login":"ArtyomKa","id":595596,"avatar_url":"https://avatars0.githubusercontent.com/u/595596?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtyomKa","html_url":"https://github.com/ArtyomKa","followers_url":"https://api.github.com/users/ArtyomKa/followers","following_url":"https://api.github.com/users/ArtyomKa/following{/other_user}","gists_url":"https://api.github.com/users/ArtyomKa/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtyomKa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtyomKa/subscriptions","organizations_url":"https://api.github.com/users/ArtyomKa/orgs","repos_url":"https://api.github.com/users/ArtyomKa/repos","events_url":"https://api.github.com/users/ArtyomKa/events{/privacy}","received_events_url":"https://api.github.com/users/ArtyomKa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArtyomKa/Spark","description":null,"fork":true,"url":"https://api.github.com/repos/ArtyomKa/Spark","forks_url":"https://api.github.com/repos/ArtyomKa/Spark/forks","keys_url":"https://api.github.com/repos/ArtyomKa/Spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArtyomKa/Spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArtyomKa/Spark/teams","hooks_url":"https://api.github.com/repos/ArtyomKa/Spark/hooks","issue_events_url":"https://api.github.com/repos/ArtyomKa/Spark/issues/events{/number}","events_url":"https://api.github.com/repos/ArtyomKa/Spark/events","assignees_url":"https://api.github.com/repos/ArtyomKa/Spark/assignees{/user}","branches_url":"https://api.github.com/repos/ArtyomKa/Spark/branches{/branch}","tags_url":"https://api.github.com/repos/ArtyomKa/Spark/tags","blobs_url":"https://api.github.com/repos/ArtyomKa/Spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArtyomKa/Spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArtyomKa/Spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArtyomKa/Spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArtyomKa/Spark/statuses/{sha}","languages_url":"https://api.github.com/repos/ArtyomKa/Spark/languages","stargazers_url":"https://api.github.com/repos/ArtyomKa/Spark/stargazers","contributors_url":"https://api.github.com/repos/ArtyomKa/Spark/contributors","subscribers_url":"https://api.github.com/repos/ArtyomKa/Spark/subscribers","subscription_url":"https://api.github.com/repos/ArtyomKa/Spark/subscription","commits_url":"https://api.github.com/repos/ArtyomKa/Spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArtyomKa/Spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArtyomKa/Spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArtyomKa/Spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArtyomKa/Spark/contents/{+path}","compare_url":"https://api.github.com/repos/ArtyomKa/Spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArtyomKa/Spark/merges","archive_url":"https://api.github.com/repos/ArtyomKa/Spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArtyomKa/Spark/downloads","issues_url":"https://api.github.com/repos/ArtyomKa/Spark/issues{/number}","pulls_url":"https://api.github.com/repos/ArtyomKa/Spark/pulls{/number}","milestones_url":"https://api.github.com/repos/ArtyomKa/Spark/milestones{/number}","notifications_url":"https://api.github.com/repos/ArtyomKa/Spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArtyomKa/Spark/labels{/name}","releases_url":"https://api.github.com/repos/ArtyomKa/Spark/releases{/id}","deployments_url":"https://api.github.com/repos/ArtyomKa/Spark/deployments","created_at":"2017-01-06T11:38:56Z","updated_at":"2017-03-08T20:19:24Z","pushed_at":"2017-05-17T20:03:07Z","git_url":"git://github.com/ArtyomKa/Spark.git","ssh_url":"git@github.com:ArtyomKa/Spark.git","clone_url":"https://github.com/ArtyomKa/Spark.git","svn_url":"https://github.com/ArtyomKa/Spark","homepage":null,"size":12933,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":true,"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":1,"default_branch":"master"}},"base":{"label":"Midburn:master","ref":"master","sha":"10043b6d442478c04972f87376e211d460bfaa21","user":{"login":"Midburn","id":13777462,"avatar_url":"https://avatars2.githubusercontent.com/u/13777462?v=3","gravatar_id":"","url":"https://api.github.com/users/Midburn","html_url":"https://github.com/Midburn","followers_url":"https://api.github.com/users/Midburn/followers","following_url":"https://api.github.com/users/Midburn/following{/other_user}","gists_url":"https://api.github.com/users/Midburn/gists{/gist_id}","starred_url":"https://api.github.com/users/Midburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Midburn/subscriptions","organizations_url":"https://api.github.com/users/Midburn/orgs","repos_url":"https://api.github.com/users/Midburn/repos","events_url":"https://api.github.com/users/Midburn/events{/privacy}","received_events_url":"https://api.github.com/users/Midburn/received_events","type":"Organization","site_admin":false},"repo":{"id":78048635,"name":"Spark","full_name":"Midburn/Spark","owner":{"login":"Midburn","id":13777462,"avatar_url":"https://avatars2.githubusercontent.com/u/13777462?v=3","gravatar_id":"","url":"https://api.github.com/users/Midburn","html_url":"https://github.com/Midburn","followers_url":"https://api.github.com/users/Midburn/followers","following_url":"https://api.github.com/users/Midburn/following{/other_user}","gists_url":"https://api.github.com/users/Midburn/gists{/gist_id}","starred_url":"https://api.github.com/users/Midburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Midburn/subscriptions","organizations_url":"https://api.github.com/users/Midburn/orgs","repos_url":"https://api.github.com/users/Midburn/repos","events_url":"https://api.github.com/users/Midburn/events{/privacy}","received_events_url":"https://api.github.com/users/Midburn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Midburn/Spark","description":"\"burn in a box\" suite of services that composes everything required to run a burn event throughout the year","fork":false,"url":"https://api.github.com/repos/Midburn/Spark","forks_url":"https://api.github.com/repos/Midburn/Spark/forks","keys_url":"https://api.github.com/repos/Midburn/Spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Midburn/Spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Midburn/Spark/teams","hooks_url":"https://api.github.com/repos/Midburn/Spark/hooks","issue_events_url":"https://api.github.com/repos/Midburn/Spark/issues/events{/number}","events_url":"https://api.github.com/repos/Midburn/Spark/events","assignees_url":"https://api.github.com/repos/Midburn/Spark/assignees{/user}","branches_url":"https://api.github.com/repos/Midburn/Spark/branches{/branch}","tags_url":"https://api.github.com/repos/Midburn/Spark/tags","blobs_url":"https://api.github.com/repos/Midburn/Spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Midburn/Spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Midburn/Spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/Midburn/Spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Midburn/Spark/statuses/{sha}","languages_url":"https://api.github.com/repos/Midburn/Spark/languages","stargazers_url":"https://api.github.com/repos/Midburn/Spark/stargazers","contributors_url":"https://api.github.com/repos/Midburn/Spark/contributors","subscribers_url":"https://api.github.com/repos/Midburn/Spark/subscribers","subscription_url":"https://api.github.com/repos/Midburn/Spark/subscription","commits_url":"https://api.github.com/repos/Midburn/Spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/Midburn/Spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/Midburn/Spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/Midburn/Spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/Midburn/Spark/contents/{+path}","compare_url":"https://api.github.com/repos/Midburn/Spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Midburn/Spark/merges","archive_url":"https://api.github.com/repos/Midburn/Spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Midburn/Spark/downloads","issues_url":"https://api.github.com/repos/Midburn/Spark/issues{/number}","pulls_url":"https://api.github.com/repos/Midburn/Spark/pulls{/number}","milestones_url":"https://api.github.com/repos/Midburn/Spark/milestones{/number}","notifications_url":"https://api.github.com/repos/Midburn/Spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Midburn/Spark/labels{/name}","releases_url":"https://api.github.com/repos/Midburn/Spark/releases{/id}","deployments_url":"https://api.github.com/repos/Midburn/Spark/deployments","created_at":"2017-01-04T20:04:12Z","updated_at":"2017-04-23T16:27:24Z","pushed_at":"2017-05-17T20:06:07Z","git_url":"git://github.com/Midburn/Spark.git","ssh_url":"git@github.com:Midburn/Spark.git","clone_url":"https://github.com/Midburn/Spark.git","svn_url":"https://github.com/Midburn/Spark","homepage":"","size":13112,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":71,"forks":18,"open_issues":71,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Midburn/Spark/pulls/404"},"html":{"href":"https://github.com/Midburn/Spark/pull/404"},"issue":{"href":"https://api.github.com/repos/Midburn/Spark/issues/404"},"comments":{"href":"https://api.github.com/repos/Midburn/Spark/issues/404/comments"},"review_comments":{"href":"https://api.github.com/repos/Midburn/Spark/pulls/404/comments"},"review_comment":{"href":"https://api.github.com/repos/Midburn/Spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Midburn/Spark/pulls/404/commits"},"statuses":{"href":"https://api.github.com/repos/Midburn/Spark/statuses/40ad018ed6954b458eee98f4f102a244a346c62b"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":19,"deletions":7,"changed_files":3}}
{"actor":{"display_login":"ArtyomKa"}}