Issue 2919: REST always returns empty list for WEB_LINKS data
Status:  Invalid
Owner: ----
Closed:  Sep 2014
Project Member Reported by zaro0508, Sep 19, 2014
Affected Version: 2.10 and master 

The documentation for the query changes REST api[1] says that you should be able to get web links for a change when adding 'o=WEB_LINKS' to the REST call.  However when i run that command [2] I am never able to get the web links data, it always returns as an empty list in the result [3].

[1] https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-changes
[2] curl -s 'https://gerrit-review.googlesource.com/changes/59220?o=CURRENT_REVISION&o=WEB_LINKS'
OR curl -s 'https://gerrit-review.googlesource.com/changes/?q=59220&o=CURRENT_REVISION&o=WEB_LINKS'
[3] 
{
  "id": "gerrit~master~I97af533d8e68c9e1f6b5e47ca5a4deef529ce7a5",
  "project": "gerrit",
  "branch": "master",
  "hashtags": [],
  "change_id": "I97af533d8e68c9e1f6b5e47ca5a4deef529ce7a5",
  "subject": "Add link for easy switch of diff view",
  "status": "NEW",
  "created": "2014-08-12 12:42:54.620000000",
  "updated": "2014-08-25 19:19:17.514000000",
  "mergeable": true,
  "insertions": 90,
  "deletions": 0,
  "_sortkey": "002f58c70000e754",
  "_number": 59220,
  "owner": {
    "name": "Mani Chandel"
  },
  "current_revision": "efa11ffc54d7870a2792d6c1275e971e7fad1b7c",
  "revisions": {
    "efa11ffc54d7870a2792d6c1275e971e7fad1b7c": {
      "_number": 2,
      "fetch": {
        "http": {
          "url": "https://gerrit.googlesource.com/gerrit",
          "ref": "refs/changes/20/59220/2"
        }
      },
      "web_links": []
    }
  }
}
Sep 19, 2014
#1 dborowitz@google.com
This feature is not present in 2.10 I don't think, Edwin added it at the hackathon last week.

In master, web links are only provided by plugins, there are none built in. Have you installed plugins that you expect to provide web links and that's not working?
Sep 19, 2014
Project Member #2 zaro0508
Ohh, I think I am confusing web links with comment links.   I was expecting a comment link to be in the response.
Sep 20, 2014
Project Member #3 David.Os...@gmail.com
(No comment was entered for this change.)
Status: Invalid