{"action":"closed","issue":{"url":"https://api.github.com/repos/datosgobar/pydatajson/issues/147","repository_url":"https://api.github.com/repos/datosgobar/pydatajson","labels_url":"https://api.github.com/repos/datosgobar/pydatajson/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/datosgobar/pydatajson/issues/147/comments","events_url":"https://api.github.com/repos/datosgobar/pydatajson/issues/147/events","html_url":"https://github.com/datosgobar/pydatajson/issues/147","id":315659178,"number":147,"title":"Modificar `push_dataset_to_ckan()` para soportar catálogos con perfil de metadatos 1.0","user":{"login":"abenassi","id":4405346,"avatar_url":"https://avatars0.githubusercontent.com/u/4405346?v=4","gravatar_id":"","url":"https://api.github.com/users/abenassi","html_url":"https://github.com/abenassi","followers_url":"https://api.github.com/users/abenassi/followers","following_url":"https://api.github.com/users/abenassi/following{/other_user}","gists_url":"https://api.github.com/users/abenassi/gists{/gist_id}","starred_url":"https://api.github.com/users/abenassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abenassi/subscriptions","organizations_url":"https://api.github.com/users/abenassi/orgs","repos_url":"https://api.github.com/users/abenassi/repos","events_url":"https://api.github.com/users/abenassi/events{/privacy}","received_events_url":"https://api.github.com/users/abenassi/received_events","type":"User","site_admin":false},"labels":[{"id":788402111,"url":"https://api.github.com/repos/datosgobar/pydatajson/labels/federacion","name":"federacion","color":"70bcc9","default":false},{"id":861576680,"url":"https://api.github.com/repos/datosgobar/pydatajson/labels/to%20do","name":"to do","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/datosgobar/pydatajson/milestones/6","html_url":"https://github.com/datosgobar/pydatajson/milestone/6","labels_url":"https://api.github.com/repos/datosgobar/pydatajson/milestones/6/labels","id":3188104,"number":6,"title":"Federación - Segunda iteración","description":"Se retoma la lógica de administración de catálogos implementada en el proyecto series-tiempo-ar-api para orquestar la federación de datasets de la red de nodos hacia un nodo indexador, utilizando la función auxiliar de pydatajson `push_dataset_to_ckan()`.","creator":{"login":"abenassi","id":4405346,"avatar_url":"https://avatars0.githubusercontent.com/u/4405346?v=4","gravatar_id":"","url":"https://api.github.com/users/abenassi","html_url":"https://github.com/abenassi","followers_url":"https://api.github.com/users/abenassi/followers","following_url":"https://api.github.com/users/abenassi/following{/other_user}","gists_url":"https://api.github.com/users/abenassi/gists{/gist_id}","starred_url":"https://api.github.com/users/abenassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abenassi/subscriptions","organizations_url":"https://api.github.com/users/abenassi/orgs","repos_url":"https://api.github.com/users/abenassi/repos","events_url":"https://api.github.com/users/abenassi/events{/privacy}","received_events_url":"https://api.github.com/users/abenassi/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"open","created_at":"2018-03-14T18:19:28Z","updated_at":"2018-04-20T00:05:53Z","due_on":"2018-03-19T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-04-18T22:07:48Z","updated_at":"2018-04-20T00:05:53Z","closed_at":"2018-04-20T00:05:53Z","author_association":"OWNER","body":"**Contexto**\n\nLa implementación actual sólo soporta el perfil 1.1 porque depende críticamente del `distribution_identifier`. Muchos catálogos van a tardar en migrar hacia ese perfil, y tener identificador obligatorio de distribución.\n\n**Propuesta**\n\nModificar `push_dataset_to_ckan()` para que, ante la ausencia de identifier a nivel de distribution, genere un identificador para las distribuciones según una regla que preserve la inmutabilidad de referencia _frente a la mayor cantidad de casos, aunque no pueda asegurar la inmutabilidad de referencia en todos ellos_.\n\nUna propuesta posible: usar el índice posicional en el array `distribution` para conformar el id:\n\n`distribution_identifier` = `{dataset_identifier}_{distribution_index}``\n\nAsí el identificador de las 4 distribuciones de un dataset con identifier `ign_1` sería:\n\n+ `ign_1_0`\n+ `ign_1_1`\n+ `ign_1_2`\n+ `ign_1_3`"}}
{"actor":{"display_login":"abenassi"}}