{"action":"created","issue":{"url":"https://api.github.com/repos/c2corg/v6_api/issues/300","repository_url":"https://api.github.com/repos/c2corg/v6_api","labels_url":"https://api.github.com/repos/c2corg/v6_api/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/c2corg/v6_api/issues/300/comments","events_url":"https://api.github.com/repos/c2corg/v6_api/issues/300/events","html_url":"https://github.com/c2corg/v6_api/issues/300","id":157981779,"number":300,"title":"Getting a document \"list attributes\"?","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-01T18:58:39Z","updated_at":"2016-06-02T06:12:12Z","closed_at":null,"body":"I am making changes in the UI so that the AngularJS card directive and partials (used for the advanced search) are used also for:\r\n* listing associated documents as cards (instead of Mako) => done at https://github.com/c2corg/v6_ui/pull/328\r\n* adding a new card when a document has just been associated.\r\n\r\nFor the latter usage I am in troubles because the data returned by the association tool (based upon the simple search service) does not return all the attributes needed for the \"listing\" cards (in addition the \"externs\" types are different).\r\n\r\n2 options:\r\n* when creating the newly associated document card, I make a request to the API to get the document attributes. I could make a standard document request but it's a bit overkill because I only need the \"listing\" attributes => is it possible to make a \"list\" request to the API for a given document id. For instance ``waypoints?w=1234``?\r\n* we use consistent data structure for the listing and simple-search request, with consistent \"externs\" types.\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/c2corg/v6_api/issues/comments/223204185","html_url":"https://github.com/c2corg/v6_api/issues/300#issuecomment-223204185","issue_url":"https://api.github.com/repos/c2corg/v6_api/issues/300","id":223204185,"user":{"login":"tsauerwein","id":266474,"avatar_url":"https://avatars.githubusercontent.com/u/266474?v=3","gravatar_id":"","url":"https://api.github.com/users/tsauerwein","html_url":"https://github.com/tsauerwein","followers_url":"https://api.github.com/users/tsauerwein/followers","following_url":"https://api.github.com/users/tsauerwein/following{/other_user}","gists_url":"https://api.github.com/users/tsauerwein/gists{/gist_id}","starred_url":"https://api.github.com/users/tsauerwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsauerwein/subscriptions","organizations_url":"https://api.github.com/users/tsauerwein/orgs","repos_url":"https://api.github.com/users/tsauerwein/repos","events_url":"https://api.github.com/users/tsauerwein/events{/privacy}","received_events_url":"https://api.github.com/users/tsauerwein/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T06:12:12Z","updated_at":"2016-06-02T06:12:12Z","body":"If I get you right, the actual problem is that the simple search service does not return all required attributes?\r\n\r\nThe simple search service is used in different places, for the actual search at the top of the page and to find new associations. Either we use the same schema for all these uses, or we let the simple search service return different attributes depending on the use. E.g. `/search?q=...&l=1` could return all attributes required for listings.\r\n\r\nSee also https://github.com/c2corg/v6_api/issues/192"}}
{"actor":{"display_login":"tsauerwein"}}