{"action":"closed","issue":{"url":"https://api.github.com/repos/BaseAdresseNationale/api-gestion/issues/237","repository_url":"https://api.github.com/repos/BaseAdresseNationale/api-gestion","labels_url":"https://api.github.com/repos/BaseAdresseNationale/api-gestion/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/BaseAdresseNationale/api-gestion/issues/237/comments","events_url":"https://api.github.com/repos/BaseAdresseNationale/api-gestion/issues/237/events","html_url":"https://github.com/BaseAdresseNationale/api-gestion/issues/237","id":185666538,"number":237,"title":"gestion de la désactivation & redirection d'une ressource","user":{"login":"christopheprudent","id":15735397,"avatar_url":"https://avatars0.githubusercontent.com/u/15735397?v=4","gravatar_id":"","url":"https://api.github.com/users/christopheprudent","html_url":"https://github.com/christopheprudent","followers_url":"https://api.github.com/users/christopheprudent/followers","following_url":"https://api.github.com/users/christopheprudent/following{/other_user}","gists_url":"https://api.github.com/users/christopheprudent/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheprudent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheprudent/subscriptions","organizations_url":"https://api.github.com/users/christopheprudent/orgs","repos_url":"https://api.github.com/users/christopheprudent/repos","events_url":"https://api.github.com/users/christopheprudent/events{/privacy}","received_events_url":"https://api.github.com/users/christopheprudent/received_events","type":"User","site_admin":false},"labels":[{"id":275586535,"url":"https://api.github.com/repos/BaseAdresseNationale/api-gestion/labels/API","name":"API","color":"22313F","default":false},{"id":607153082,"url":"https://api.github.com/repos/BaseAdresseNationale/api-gestion/labels/%C3%A0%20expliciter","name":"à expliciter","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/BaseAdresseNationale/api-gestion/milestones/6","html_url":"https://github.com/BaseAdresseNationale/api-gestion/milestone/6","labels_url":"https://api.github.com/repos/BaseAdresseNationale/api-gestion/milestones/6/labels","id":2526768,"number":6,"title":"futur","description":"","creator":{"login":"ebuard","id":15909440,"avatar_url":"https://avatars1.githubusercontent.com/u/15909440?v=4","gravatar_id":"","url":"https://api.github.com/users/ebuard","html_url":"https://github.com/ebuard","followers_url":"https://api.github.com/users/ebuard/followers","following_url":"https://api.github.com/users/ebuard/following{/other_user}","gists_url":"https://api.github.com/users/ebuard/gists{/gist_id}","starred_url":"https://api.github.com/users/ebuard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebuard/subscriptions","organizations_url":"https://api.github.com/users/ebuard/orgs","repos_url":"https://api.github.com/users/ebuard/repos","events_url":"https://api.github.com/users/ebuard/events{/privacy}","received_events_url":"https://api.github.com/users/ebuard/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":8,"state":"open","created_at":"2017-05-17T12:35:06Z","updated_at":"2018-02-02T10:52:54Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-10-27T13:20:41Z","updated_at":"2018-02-02T10:52:54Z","closed_at":"2018-02-02T10:52:54Z","author_association":"CONTRIBUTOR","body":"dans l'outil de fiabilisation des voies d'une commune, nous avons le besoin de gestion de la désactivation des doublons et donc de leur redirection\n\nse pose alors quelques questions ...\n1. la première est que, pour l'instant, c'est au client de l'API de gérer la désactivation de la ressource, puis d'enchaîner la demande de redirection de celle-ci, vers la ressource de référence\n   cette opération n'étant pas atomique, il y a donc un risque de dénaturer la BAN\n2. ensuite se pose la question concernant les éventuelles ressources filles de la ressource à désactiver\n   avec le même corollaire de transaction atomique\n- désactiver un `Group` : quid  des ressources `Housenumber` et `Position` ?\n- désactiver un `Housenumber` : quid  des ressources `Position` ?\n\nla redirection revient-elle à:\ncréer les ressources fille manquante de la ressource de référence,\nrediriger chaque ressource fille vers la ressource fille correspondante de la ressource de référence\nrediriger la ressource parente\n\nprenons l'exemple d'un `Group` avec 2 doublons dans la BAN\n\n| Group | Housenumber | Etat |\n| --: | --: | --: |\n| ban-group-id1 | 1, 3, 7 | référence |\n| ban-group-id2 | 1, 5, 7 | doublon |\n\ncréer Housenumber 5 pour ban-group-id1\nrediriger les Housenumber de ban-group-id2 vers leurs homologues de ban-group-id1\nrediriger le Group ban-group-id2 vers ban-group-id1\n"}}
{"actor":{"display_login":"gschittek"}}