--===============4976748425391710200== Content-Type: multipart/alternative; boundary="===============7352761496586247813==" --===============7352761496586247813== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/112478/ ----------------------------------------------------------- (Updated Sept. 12, 2013, 11:44 a.m.) Status ------ This change has been marked as submitted. Review request for Bodega. Description ------- Hello, this patch maps the assets with the links from the discourse categories. The json from asset/:assetId will contain a property named "discourseLink" with the appropriate link Diffs ----- server/config.json.sample 1b5ea7f server/lib/db/assetinfo.js b52af3b sql/discourse.plsql 7d108a4 Diff: http://git.reviewboard.kde.org/r/112478/diff/ Testing ------- the output from asset/8 { "authStatus": true, "device": "KDE-1", "store": "KDE-1", "points": 9925, "success": true, "asset": { "id": 8, "license": "GPL", "partnerId": 1002, "version": "0.1", "created": "2013-09-02T17:50:10.386Z", "filename": "org.kde.poker1.plasmoid", "image": "poker1.png", "name": "Poker1", "description": "Poker 1", "points": 15, "canDownload": true, "tags": [ { "grouping": "name_p" }, { "mimetype": "application/x-plasma" }, { "contentrating": "Early Childhood" }, { "assetType": "game" }, { "category": "Card Game" } ], "discourseLink": "localhost:3000/category/Forum%20for%20Poker1" } } File Attachments ---------------- http://git.reviewboard.kde.org/media/uploaded/files/2013/09/03/discourse_forum.png Thanks, Giorgos Tsiapaliokas --===============7352761496586247813== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit
This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/112478/

This change has been marked as submitted.


Review request for Bodega.
By Giorgos Tsiapaliokas.

Updated Sept. 12, 2013, 11:44 a.m.

Description

Hello,

this patch maps the assets with the links from the discourse categories.
The json from asset/:assetId will contain a property named "discourseLink" with the 
appropriate link

Testing

the output from asset/8

{
  "authStatus": true,
  "device": "KDE-1",
  "store": "KDE-1",
  "points": 9925,
  "success": true,
  "asset": {
    "id": 8,
    "license": "GPL",
    "partnerId": 1002,
    "version": "0.1",
    "created": "2013-09-02T17:50:10.386Z",
    "filename": "org.kde.poker1.plasmoid",
    "image": "poker1.png",
    "name": "Poker1",
    "description": "Poker 1",
    "points": 15,
    "canDownload": true,
    "tags": [
      {
        "grouping": "name_p"
      },
      {
        "mimetype": "application/x-plasma"
      },
      {
        "contentrating": "Early Childhood"
      },
      {
        "assetType": "game"
      },
      {
        "category": "Card Game"
      }
    ],
    "discourseLink": "localhost:3000/category/Forum%20for%20Poker1"
  }
}

Diffs

  • server/config.json.sample (1b5ea7f)
  • server/lib/db/assetinfo.js (b52af3b)
  • sql/discourse.plsql (7d108a4)

View Diff

File Attachments

--===============7352761496586247813==-- --===============4976748425391710200== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Active mailing list Active@kde.org https://mail.kde.org/mailman/listinfo/active --===============4976748425391710200==--