{"action":"created","comment":{"url":"https://api.github.com/repos/rsim/mondrian-olap/pulls/comments/68029184","id":68029184,"diff_hunk":"@@ -400,7 +415,22 @@ def cell_formatter_name\n           end\n         end\n       end\n+    end\n \n+    class CacheControl\n+      def initialize(connection, raw_cube)\n+        @connection = connection\n+        @mondrian_cube = raw_cube.unwrap(Java::MondrianOlap::Cube.java_class)\n+        @cache_control = @connection.cache_control","path":"lib/mondrian/olap/cube.rb","position":46,"original_position":46,"commit_id":"21d92f5c7990ec588371249c795e9e64c65ad269","original_commit_id":"21d92f5c7990ec588371249c795e9e64c65ad269","user":{"login":"rsim","id":4736,"avatar_url":"https://avatars.githubusercontent.com/u/4736?v=3","gravatar_id":"","url":"https://api.github.com/users/rsim","html_url":"https://github.com/rsim","followers_url":"https://api.github.com/users/rsim/followers","following_url":"https://api.github.com/users/rsim/following{/other_user}","gists_url":"https://api.github.com/users/rsim/gists{/gist_id}","starred_url":"https://api.github.com/users/rsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsim/subscriptions","organizations_url":"https://api.github.com/users/rsim/orgs","repos_url":"https://api.github.com/users/rsim/repos","events_url":"https://api.github.com/users/rsim/events{/privacy}","received_events_url":"https://api.github.com/users/rsim/received_events","type":"User","site_admin":false},"body":"Here as well `@raw_cache_control` name would be more appropriate.","created_at":"2016-06-22T10:22:26Z","updated_at":"2016-06-22T10:22:26Z","html_url":"https://github.com/rsim/mondrian-olap/pull/38#discussion_r68029184","pull_request_url":"https://api.github.com/repos/rsim/mondrian-olap/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/rsim/mondrian-olap/pulls/comments/68029184"},"html":{"href":"https://github.com/rsim/mondrian-olap/pull/38#discussion_r68029184"},"pull_request":{"href":"https://api.github.com/repos/rsim/mondrian-olap/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/rsim/mondrian-olap/pulls/38","id":73213859,"html_url":"https://github.com/rsim/mondrian-olap/pull/38","diff_url":"https://github.com/rsim/mondrian-olap/pull/38.diff","patch_url":"https://github.com/rsim/mondrian-olap/pull/38.patch","issue_url":"https://api.github.com/repos/rsim/mondrian-olap/issues/38","number":38,"state":"open","locked":false,"title":"Added cache busting for cells linked to member regions","user":{"login":"all4miller","id":105912,"avatar_url":"https://avatars.githubusercontent.com/u/105912?v=3","gravatar_id":"","url":"https://api.github.com/users/all4miller","html_url":"https://github.com/all4miller","followers_url":"https://api.github.com/users/all4miller/followers","following_url":"https://api.github.com/users/all4miller/following{/other_user}","gists_url":"https://api.github.com/users/all4miller/gists{/gist_id}","starred_url":"https://api.github.com/users/all4miller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/all4miller/subscriptions","organizations_url":"https://api.github.com/users/all4miller/orgs","repos_url":"https://api.github.com/users/all4miller/repos","events_url":"https://api.github.com/users/all4miller/events{/privacy}","received_events_url":"https://api.github.com/users/all4miller/received_events","type":"User","site_admin":false},"body":"Added functionality to clear the cache of cell regions linked to dimension members.\r\n\r\nCache can cleared via segment names or full members names.\r\n\r\ne.g. via segment names\r\n\r\n```\r\nolap = Mondrian::OLAP::Connection.create(...)\r\nsales_cube = olap.get('Sales')\r\nsales_cube.flush_region_cache_with_segments(%w(Time 2010 Q1), %w(Customers USA CA))\r\n```\r\n\r\ne.g. via full member names\r\n\r\n```\r\nolap = Mondrian::OLAP::Connection.create(...)\r\nsales_cube = olap.get('Sales')\r\nsales_cube.flush_region_cache_with_full_names('[Time].[2010].[Q1]', '[Customers].[USA].[CA]')\r\n```\r\n","created_at":"2016-06-09T13:30:01Z","updated_at":"2016-06-22T10:22:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45dabe970c5285d46e00fc70f7469af517f3b88e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rsim/mondrian-olap/pulls/38/commits","review_comments_url":"https://api.github.com/repos/rsim/mondrian-olap/pulls/38/comments","review_comment_url":"https://api.github.com/repos/rsim/mondrian-olap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rsim/mondrian-olap/issues/38/comments","statuses_url":"https://api.github.com/repos/rsim/mondrian-olap/statuses/21d92f5c7990ec588371249c795e9e64c65ad269","head":{"label":"vulcanlabs:cache-buster","ref":"cache-buster","sha":"21d92f5c7990ec588371249c795e9e64c65ad269","user":{"login":"vulcanlabs","id":5418389,"avatar_url":"https://avatars.githubusercontent.com/u/5418389?v=3","gravatar_id":"","url":"https://api.github.com/users/vulcanlabs","html_url":"https://github.com/vulcanlabs","followers_url":"https://api.github.com/users/vulcanlabs/followers","following_url":"https://api.github.com/users/vulcanlabs/following{/other_user}","gists_url":"https://api.github.com/users/vulcanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/vulcanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vulcanlabs/subscriptions","organizations_url":"https://api.github.com/users/vulcanlabs/orgs","repos_url":"https://api.github.com/users/vulcanlabs/repos","events_url":"https://api.github.com/users/vulcanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/vulcanlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":57384350,"name":"mondrian-olap","full_name":"vulcanlabs/mondrian-olap","owner":{"login":"vulcanlabs","id":5418389,"avatar_url":"https://avatars.githubusercontent.com/u/5418389?v=3","gravatar_id":"","url":"https://api.github.com/users/vulcanlabs","html_url":"https://github.com/vulcanlabs","followers_url":"https://api.github.com/users/vulcanlabs/followers","following_url":"https://api.github.com/users/vulcanlabs/following{/other_user}","gists_url":"https://api.github.com/users/vulcanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/vulcanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vulcanlabs/subscriptions","organizations_url":"https://api.github.com/users/vulcanlabs/orgs","repos_url":"https://api.github.com/users/vulcanlabs/repos","events_url":"https://api.github.com/users/vulcanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/vulcanlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vulcanlabs/mondrian-olap","description":"JRuby gem for performing multidimensional queries of relational database data using Mondrian OLAP Java library","fork":true,"url":"https://api.github.com/repos/vulcanlabs/mondrian-olap","forks_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/forks","keys_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/teams","hooks_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/hooks","issue_events_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/issues/events{/number}","events_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/events","assignees_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/assignees{/user}","branches_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/branches{/branch}","tags_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/tags","blobs_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/git/refs{/sha}","trees_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/statuses/{sha}","languages_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/languages","stargazers_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/stargazers","contributors_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/contributors","subscribers_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/subscribers","subscription_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/subscription","commits_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/commits{/sha}","git_commits_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/git/commits{/sha}","comments_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/comments{/number}","issue_comment_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/issues/comments{/number}","contents_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/contents/{+path}","compare_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/merges","archive_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/downloads","issues_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/issues{/number}","pulls_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/pulls{/number}","milestones_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/milestones{/number}","notifications_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/labels{/name}","releases_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/releases{/id}","deployments_url":"https://api.github.com/repos/vulcanlabs/mondrian-olap/deployments","created_at":"2016-04-29T13:03:26Z","updated_at":"2016-04-29T13:03:27Z","pushed_at":"2016-06-09T13:40:16Z","git_url":"git://github.com/vulcanlabs/mondrian-olap.git","ssh_url":"git@github.com:vulcanlabs/mondrian-olap.git","clone_url":"https://github.com/vulcanlabs/mondrian-olap.git","svn_url":"https://github.com/vulcanlabs/mondrian-olap","homepage":"","size":60299,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"rsim:master","ref":"master","sha":"78940923436dfe324b7a6bb5b522b70910258479","user":{"login":"rsim","id":4736,"avatar_url":"https://avatars.githubusercontent.com/u/4736?v=3","gravatar_id":"","url":"https://api.github.com/users/rsim","html_url":"https://github.com/rsim","followers_url":"https://api.github.com/users/rsim/followers","following_url":"https://api.github.com/users/rsim/following{/other_user}","gists_url":"https://api.github.com/users/rsim/gists{/gist_id}","starred_url":"https://api.github.com/users/rsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsim/subscriptions","organizations_url":"https://api.github.com/users/rsim/orgs","repos_url":"https://api.github.com/users/rsim/repos","events_url":"https://api.github.com/users/rsim/events{/privacy}","received_events_url":"https://api.github.com/users/rsim/received_events","type":"User","site_admin":false},"repo":{"id":1501083,"name":"mondrian-olap","full_name":"rsim/mondrian-olap","owner":{"login":"rsim","id":4736,"avatar_url":"https://avatars.githubusercontent.com/u/4736?v=3","gravatar_id":"","url":"https://api.github.com/users/rsim","html_url":"https://github.com/rsim","followers_url":"https://api.github.com/users/rsim/followers","following_url":"https://api.github.com/users/rsim/following{/other_user}","gists_url":"https://api.github.com/users/rsim/gists{/gist_id}","starred_url":"https://api.github.com/users/rsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsim/subscriptions","organizations_url":"https://api.github.com/users/rsim/orgs","repos_url":"https://api.github.com/users/rsim/repos","events_url":"https://api.github.com/users/rsim/events{/privacy}","received_events_url":"https://api.github.com/users/rsim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rsim/mondrian-olap","description":"JRuby gem for performing multidimensional queries of relational database data using Mondrian OLAP Java library","fork":false,"url":"https://api.github.com/repos/rsim/mondrian-olap","forks_url":"https://api.github.com/repos/rsim/mondrian-olap/forks","keys_url":"https://api.github.com/repos/rsim/mondrian-olap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rsim/mondrian-olap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rsim/mondrian-olap/teams","hooks_url":"https://api.github.com/repos/rsim/mondrian-olap/hooks","issue_events_url":"https://api.github.com/repos/rsim/mondrian-olap/issues/events{/number}","events_url":"https://api.github.com/repos/rsim/mondrian-olap/events","assignees_url":"https://api.github.com/repos/rsim/mondrian-olap/assignees{/user}","branches_url":"https://api.github.com/repos/rsim/mondrian-olap/branches{/branch}","tags_url":"https://api.github.com/repos/rsim/mondrian-olap/tags","blobs_url":"https://api.github.com/repos/rsim/mondrian-olap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rsim/mondrian-olap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rsim/mondrian-olap/git/refs{/sha}","trees_url":"https://api.github.com/repos/rsim/mondrian-olap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rsim/mondrian-olap/statuses/{sha}","languages_url":"https://api.github.com/repos/rsim/mondrian-olap/languages","stargazers_url":"https://api.github.com/repos/rsim/mondrian-olap/stargazers","contributors_url":"https://api.github.com/repos/rsim/mondrian-olap/contributors","subscribers_url":"https://api.github.com/repos/rsim/mondrian-olap/subscribers","subscription_url":"https://api.github.com/repos/rsim/mondrian-olap/subscription","commits_url":"https://api.github.com/repos/rsim/mondrian-olap/commits{/sha}","git_commits_url":"https://api.github.com/repos/rsim/mondrian-olap/git/commits{/sha}","comments_url":"https://api.github.com/repos/rsim/mondrian-olap/comments{/number}","issue_comment_url":"https://api.github.com/repos/rsim/mondrian-olap/issues/comments{/number}","contents_url":"https://api.github.com/repos/rsim/mondrian-olap/contents/{+path}","compare_url":"https://api.github.com/repos/rsim/mondrian-olap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rsim/mondrian-olap/merges","archive_url":"https://api.github.com/repos/rsim/mondrian-olap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rsim/mondrian-olap/downloads","issues_url":"https://api.github.com/repos/rsim/mondrian-olap/issues{/number}","pulls_url":"https://api.github.com/repos/rsim/mondrian-olap/pulls{/number}","milestones_url":"https://api.github.com/repos/rsim/mondrian-olap/milestones{/number}","notifications_url":"https://api.github.com/repos/rsim/mondrian-olap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rsim/mondrian-olap/labels{/name}","releases_url":"https://api.github.com/repos/rsim/mondrian-olap/releases{/id}","deployments_url":"https://api.github.com/repos/rsim/mondrian-olap/deployments","created_at":"2011-03-19T20:28:28Z","updated_at":"2016-06-06T08:05:01Z","pushed_at":"2016-06-09T13:40:16Z","git_url":"git://github.com/rsim/mondrian-olap.git","ssh_url":"git@github.com:rsim/mondrian-olap.git","clone_url":"https://github.com/rsim/mondrian-olap.git","svn_url":"https://github.com/rsim/mondrian-olap","homepage":"","size":62905,"stargazers_count":193,"watchers_count":193,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":4,"forks":29,"open_issues":4,"watchers":193,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rsim/mondrian-olap/pulls/38"},"html":{"href":"https://github.com/rsim/mondrian-olap/pull/38"},"issue":{"href":"https://api.github.com/repos/rsim/mondrian-olap/issues/38"},"comments":{"href":"https://api.github.com/repos/rsim/mondrian-olap/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/rsim/mondrian-olap/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/rsim/mondrian-olap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rsim/mondrian-olap/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/rsim/mondrian-olap/statuses/21d92f5c7990ec588371249c795e9e64c65ad269"}}}}
{"actor":{"display_login":"rsim"}}