{"action":"created","issue":{"url":"https://api.github.com/repos/OnroerendErfgoed/pyramid_urireferencer/issues/8","repository_url":"https://api.github.com/repos/OnroerendErfgoed/pyramid_urireferencer","labels_url":"https://api.github.com/repos/OnroerendErfgoed/pyramid_urireferencer/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/OnroerendErfgoed/pyramid_urireferencer/issues/8/comments","events_url":"https://api.github.com/repos/OnroerendErfgoed/pyramid_urireferencer/issues/8/events","html_url":"https://github.com/OnroerendErfgoed/pyramid_urireferencer/issues/8","id":100005224,"number":8,"title":"Protected resource URI generation should be more flexible.","user":{"login":"koenedaele","id":676018,"avatar_url":"https://avatars1.githubusercontent.com/u/676018?v=3","gravatar_id":"","url":"https://api.github.com/users/koenedaele","html_url":"https://github.com/koenedaele","followers_url":"https://api.github.com/users/koenedaele/followers","following_url":"https://api.github.com/users/koenedaele/following{/other_user}","gists_url":"https://api.github.com/users/koenedaele/gists{/gist_id}","starred_url":"https://api.github.com/users/koenedaele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koenedaele/subscriptions","organizations_url":"https://api.github.com/users/koenedaele/orgs","repos_url":"https://api.github.com/users/koenedaele/repos","events_url":"https://api.github.com/users/koenedaele/events{/privacy}","received_events_url":"https://api.github.com/users/koenedaele/received_events","type":"User","site_admin":false},"labels":[{"id":211078182,"url":"https://api.github.com/repos/OnroerendErfgoed/pyramid_urireferencer/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"cahytinne","id":7933103,"avatar_url":"https://avatars3.githubusercontent.com/u/7933103?v=3","gravatar_id":"","url":"https://api.github.com/users/cahytinne","html_url":"https://github.com/cahytinne","followers_url":"https://api.github.com/users/cahytinne/followers","following_url":"https://api.github.com/users/cahytinne/following{/other_user}","gists_url":"https://api.github.com/users/cahytinne/gists{/gist_id}","starred_url":"https://api.github.com/users/cahytinne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cahytinne/subscriptions","organizations_url":"https://api.github.com/users/cahytinne/orgs","repos_url":"https://api.github.com/users/cahytinne/repos","events_url":"https://api.github.com/users/cahytinne/events{/privacy}","received_events_url":"https://api.github.com/users/cahytinne/received_events","type":"User","site_admin":false},"assignees":[{"login":"cahytinne","id":7933103,"avatar_url":"https://avatars3.githubusercontent.com/u/7933103?v=3","gravatar_id":"","url":"https://api.github.com/users/cahytinne","html_url":"https://github.com/cahytinne","followers_url":"https://api.github.com/users/cahytinne/followers","following_url":"https://api.github.com/users/cahytinne/following{/other_user}","gists_url":"https://api.github.com/users/cahytinne/gists{/gist_id}","starred_url":"https://api.github.com/users/cahytinne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cahytinne/subscriptions","organizations_url":"https://api.github.com/users/cahytinne/orgs","repos_url":"https://api.github.com/users/cahytinne/repos","events_url":"https://api.github.com/users/cahytinne/events{/privacy}","received_events_url":"https://api.github.com/users/cahytinne/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/OnroerendErfgoed/pyramid_urireferencer/milestones/6","html_url":"https://github.com/OnroerendErfgoed/pyramid_urireferencer/milestone/6","labels_url":"https://api.github.com/repos/OnroerendErfgoed/pyramid_urireferencer/milestones/6/labels","id":2529263,"number":6,"title":"Sprint 55","description":"","creator":{"login":"cahytinne","id":7933103,"avatar_url":"https://avatars3.githubusercontent.com/u/7933103?v=3","gravatar_id":"","url":"https://api.github.com/users/cahytinne","html_url":"https://github.com/cahytinne","followers_url":"https://api.github.com/users/cahytinne/followers","following_url":"https://api.github.com/users/cahytinne/following{/other_user}","gists_url":"https://api.github.com/users/cahytinne/gists{/gist_id}","starred_url":"https://api.github.com/users/cahytinne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cahytinne/subscriptions","organizations_url":"https://api.github.com/users/cahytinne/orgs","repos_url":"https://api.github.com/users/cahytinne/repos","events_url":"https://api.github.com/users/cahytinne/events{/privacy}","received_events_url":"https://api.github.com/users/cahytinne/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2017-05-18T14:01:49Z","updated_at":"2017-05-18T14:02:11Z","due_on":"2017-05-29T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-08-10T08:19:06Z","updated_at":"2017-05-19T13:35:14Z","closed_at":null,"body":"Currently the protected resource decorator assumes that the URI of the resource it's protecting can be generated based on a simple template and the resource object's id. While this works most of the time, there will be cases where that's too simplistic (See OnroerendErfgoed/adviezen#210).\n\nEg. when a certain resource has different URI's based on a subtype of a resource. Eg, when we have a resource shapes that has two subtypes: circles and squares. The URI's in use might be `shapes/<id>`, but they might also be `circles/<id>` and `squares/<id>` based on the subtype.\n\nThis might also happen because we have a uri like `https://id.erfgoed.net/actoren/501/adressen/15`. In this case a template with just an id is insufficient.\n\nMaybe we can implement this with a callback function that is passed the resource it's protecting? But maybe we currently don't have the resource until after we've executed the view?\n\n/cc @BartSaelen \n"},"comment":{"url":"https://api.github.com/repos/OnroerendErfgoed/pyramid_urireferencer/issues/comments/302704346","html_url":"https://github.com/OnroerendErfgoed/pyramid_urireferencer/issues/8#issuecomment-302704346","issue_url":"https://api.github.com/repos/OnroerendErfgoed/pyramid_urireferencer/issues/8","id":302704346,"user":{"login":"koenedaele","id":676018,"avatar_url":"https://avatars1.githubusercontent.com/u/676018?v=3","gravatar_id":"","url":"https://api.github.com/users/koenedaele","html_url":"https://github.com/koenedaele","followers_url":"https://api.github.com/users/koenedaele/followers","following_url":"https://api.github.com/users/koenedaele/following{/other_user}","gists_url":"https://api.github.com/users/koenedaele/gists{/gist_id}","starred_url":"https://api.github.com/users/koenedaele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koenedaele/subscriptions","organizations_url":"https://api.github.com/users/koenedaele/orgs","repos_url":"https://api.github.com/users/koenedaele/repos","events_url":"https://api.github.com/users/koenedaele/events{/privacy}","received_events_url":"https://api.github.com/users/koenedaele/received_events","type":"User","site_admin":false},"created_at":"2017-05-19T13:35:14Z","updated_at":"2017-05-19T13:35:14Z","body":"We might also have 2 resources with different id sequences (and different datamanagers), but I assume we'll be able to work around that."}}
{"actor":{"display_login":"koenedaele"}}