{"action":"closed","issue":{"url":"https://api.github.com/repos/openspending/openspending/issues/1021","repository_url":"https://api.github.com/repos/openspending/openspending","labels_url":"https://api.github.com/repos/openspending/openspending/issues/1021/labels{/name}","comments_url":"https://api.github.com/repos/openspending/openspending/issues/1021/comments","events_url":"https://api.github.com/repos/openspending/openspending/issues/1021/events","html_url":"https://github.com/openspending/openspending/issues/1021","id":161466284,"number":1021,"title":"Disallow identical levels in a hierarchy.","user":{"login":"cyberbikepunk","id":1629834,"avatar_url":"https://avatars.githubusercontent.com/u/1629834?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberbikepunk","html_url":"https://github.com/cyberbikepunk","followers_url":"https://api.github.com/users/cyberbikepunk/followers","following_url":"https://api.github.com/users/cyberbikepunk/following{/other_user}","gists_url":"https://api.github.com/users/cyberbikepunk/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberbikepunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberbikepunk/subscriptions","organizations_url":"https://api.github.com/users/cyberbikepunk/orgs","repos_url":"https://api.github.com/users/cyberbikepunk/repos","events_url":"https://api.github.com/users/cyberbikepunk/events{/privacy}","received_events_url":"https://api.github.com/users/cyberbikepunk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"akariv","id":265333,"avatar_url":"https://avatars.githubusercontent.com/u/265333?v=3","gravatar_id":"","url":"https://api.github.com/users/akariv","html_url":"https://github.com/akariv","followers_url":"https://api.github.com/users/akariv/followers","following_url":"https://api.github.com/users/akariv/following{/other_user}","gists_url":"https://api.github.com/users/akariv/gists{/gist_id}","starred_url":"https://api.github.com/users/akariv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akariv/subscriptions","organizations_url":"https://api.github.com/users/akariv/orgs","repos_url":"https://api.github.com/users/akariv/repos","events_url":"https://api.github.com/users/akariv/events{/privacy}","received_events_url":"https://api.github.com/users/akariv/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-06-21T15:22:28Z","updated_at":"2016-06-22T14:04:53Z","closed_at":"2016-06-22T14:04:53Z","body":"Working with the first upload of the Mexican federal budget, I came across, this dimension definition:\r\n\r\n```\r\n{\"fin-source\": {\r\n        \"dimensionType\": \"other\",\r\n        \"primaryKey\": [\r\n          \"ID_FF\",\r\n          \"Fuente_Financiamiento\"\r\n        ],\r\n        \"attributes\": {\r\n          \"ID_FF\": {\r\n            \"source\": \"ID_FF\",\r\n            \"title\": \"ID_FF\"\r\n          },\r\n          \"Fuente_Financiamiento\": {\r\n            \"source\": \"Fuente_Financiamiento\",\r\n            \"title\": \"Fuente_Financiamiento\",\r\n            \"labelfor\": \"ID_FF\"\r\n          }\r\n        }\r\n      },\r\n}\r\n\r\n```\r\nBasically, what's happening here is that ID_FF is the code for the Fuente_Financiamiento label. This is obviously a screw-up: the two levels in the hierarchy are in fact identical. This situation, however, could potentially be prevented, since we could check whether two the levels return the same lines in the data. Do we want to flag the user about this?\r\n\r\nI'm aware this is not of the highest priority but I thought I'd raise this anyways.\r\n"}}
{"actor":{"display_login":"cyberbikepunk"}}