{"action":"created","issue":{"url":"https://api.github.com/repos/c2corg/v6_ui/issues/298","repository_url":"https://api.github.com/repos/c2corg/v6_ui","labels_url":"https://api.github.com/repos/c2corg/v6_ui/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/c2corg/v6_ui/issues/298/comments","events_url":"https://api.github.com/repos/c2corg/v6_ui/issues/298/events","html_url":"https://github.com/c2corg/v6_ui/issues/298","id":148010917,"number":298,"title":"Association tool is broken","user":{"login":"asaunier","id":1192331,"avatar_url":"https://avatars.githubusercontent.com/u/1192331?v=3","gravatar_id":"","url":"https://api.github.com/users/asaunier","html_url":"https://github.com/asaunier","followers_url":"https://api.github.com/users/asaunier/followers","following_url":"https://api.github.com/users/asaunier/following{/other_user}","gists_url":"https://api.github.com/users/asaunier/gists{/gist_id}","starred_url":"https://api.github.com/users/asaunier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaunier/subscriptions","organizations_url":"https://api.github.com/users/asaunier/orgs","repos_url":"https://api.github.com/users/asaunier/repos","events_url":"https://api.github.com/users/asaunier/events{/privacy}","received_events_url":"https://api.github.com/users/asaunier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/c2corg/v6_ui/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/c2corg/v6_ui/milestones/1","html_url":"https://github.com/c2corg/v6_ui/milestones/WP4","labels_url":"https://api.github.com/repos/c2corg/v6_ui/milestones/1/labels","id":1703713,"number":1,"title":"WP4","description":"","creator":{"login":"fjacon","id":1583203,"avatar_url":"https://avatars.githubusercontent.com/u/1583203?v=3","gravatar_id":"","url":"https://api.github.com/users/fjacon","html_url":"https://github.com/fjacon","followers_url":"https://api.github.com/users/fjacon/followers","following_url":"https://api.github.com/users/fjacon/following{/other_user}","gists_url":"https://api.github.com/users/fjacon/gists{/gist_id}","starred_url":"https://api.github.com/users/fjacon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjacon/subscriptions","organizations_url":"https://api.github.com/users/fjacon/orgs","repos_url":"https://api.github.com/users/fjacon/repos","events_url":"https://api.github.com/users/fjacon/events{/privacy}","received_events_url":"https://api.github.com/users/fjacon/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":14,"state":"open","created_at":"2016-04-13T13:08:00Z","updated_at":"2016-05-10T08:41:41Z","due_on":"2016-05-19T22:00:00Z","closed_at":null},"comments":13,"created_at":"2016-04-13T10:04:19Z","updated_at":"2016-05-11T10:28:16Z","closed_at":null,"body":"(perhaps an API issue?)\r\n\r\nIt seems no longer possible to associate for instance a WP to a route, the API returns an error.\r\n\r\nFor example:\r\n* open http://c2corgv6-demo.gis.internal:6555/routes/45168/fr\r\n* search for \"mattes\" and pick \"Pointe des Mattes\"\r\n* a request to the API is sent:\r\n```\r\nhttp://c2corgv6-demo.gis.internal:6545/associations\r\nPOST\r\nchild_document_id: 43618\r\nparent_document_id: 45168\r\n``` \r\n* get an error:\r\n> {\"status\": \"error\", \"errors\": [{\"location\": \"body\", \"name\": \"association\", \"description\": \"invalid association type\"}]}"},"comment":{"url":"https://api.github.com/repos/c2corg/v6_ui/issues/comments/218421116","html_url":"https://github.com/c2corg/v6_ui/issues/298#issuecomment-218421116","issue_url":"https://api.github.com/repos/c2corg/v6_ui/issues/298","id":218421116,"user":{"login":"asaunier","id":1192331,"avatar_url":"https://avatars.githubusercontent.com/u/1192331?v=3","gravatar_id":"","url":"https://api.github.com/users/asaunier","html_url":"https://github.com/asaunier","followers_url":"https://api.github.com/users/asaunier/followers","following_url":"https://api.github.com/users/asaunier/following{/other_user}","gists_url":"https://api.github.com/users/asaunier/gists{/gist_id}","starred_url":"https://api.github.com/users/asaunier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaunier/subscriptions","organizations_url":"https://api.github.com/users/asaunier/orgs","repos_url":"https://api.github.com/users/asaunier/repos","events_url":"https://api.github.com/users/asaunier/events{/privacy}","received_events_url":"https://api.github.com/users/asaunier/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T10:28:16Z","updated_at":"2016-05-11T10:28:16Z","body":"> And about my original question: Should a route always have a main waypoint?\r\n\r\nThe answer from the association is no. It should be possible to have routes with no main waypoint. Some raids for instance (routes that take several days going from huts to huts)."}}