For reference Click Package Index ("the store") already has a title
field. It is returned by default in the details and search endpoints:


$ curl -s 
'https://search.apps.ubuntu.com/api/v1/snaps/search?q=ubuntu-clock-app&size=1' 
-H 'X-Ubuntu-Series: 16' | jq .
{
  "_embedded": {
    "clickindex:package": [
      {
        "publisher": "Ubuntu Core App Developers",
        "ratings_average": 0,
        "name": "ubuntu-clock-app.ubuntucoredev",
        "package_name": "ubuntu-clock-app",
        "title": "Clock",
        "icon_url": 
"https://myapps.developer.ubuntu.com/site_media/appmedia/2016/03/icon_1.png";,
        "price": 0,
        "summary": "Ubuntu Clock application for the Unity desktop",
        "content": "application",
        "alias": "ubuntu-clock-app",
        "version": "3.6+snap3",
        "_links": {
          "self": {
            "href": 
"https://search.apps.ubuntu.com/api/v1/snaps/details/ubuntu-clock-app";
          }
        },
        "architecture": [
          "amd64"
        ],
        "prices": {},
        "plugs": [
          "opengl",
          "unity7"
        ],
        "snap_id": "vjQhIxU28Zszo6iEjbbrmosRqSpBq4GD",
        "slots": [],
        "revision": 5
      }
    ]


And snapd 2.21 at least requests it explicitly:


[14/Feb/2017:06:57:57 +0000] "GET 
/api/v1/snaps/search?confinement=strict%2Cclassic&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Csupport_url%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement&q=appear.in
 HTTP/1.1" 200 2454 "-" "snapd/2.21 (series 16; classic) ubuntu/16.04 (amd64)"


I'd have to check where the value for that field is coming from though - 
whether it's automatically extracted from somewhere or provided by the 
developer in the web UI.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-software in Ubuntu.
https://bugs.launchpad.net/bugs/1663060

Title:
  Add a title field to snap metadata

Status in Developer registration portal:
  New
Status in Snappy:
  New
Status in gnome-software package in Ubuntu:
  Confirmed
Status in snapcraft package in Ubuntu:
  Confirmed
Status in snapd package in Ubuntu:
  Triaged
Status in snapd-glib package in Ubuntu:
  Confirmed

Bug description:
  There are currently three naming fields in the snap metadata:
  name: a codename for the snap (can't contain spaces)
  summary: a one-line description of the snap
  description: A multi-line description of the snap

  For example for the Ubuntu calculator app we have:
  name: ubuntu-calculator-app
  summary: Ubuntu Calculator app
  description: The calculator app for all Ubuntu devices.

  What is missing is the 'title' field from the store - this is more
  appropriate to use in a graphical system to display this. For example,
  this should be "Calculator" for ubuntu-calculator-app.

  I think the following needs to be done:
  1. A title field needs to be specified in the .snap metadata.
  2. snapd needs to return this field for local snaps from the metadata, and 
return the store field for searches.
  3. The store should take the title field from the metadata when uploading and 
automatically set it in the store.
  4. Snapcraft needs to have updated documentation / prompt the user to enter 
this field.
  5. snapd-glib needs support for this field.
  6. GNOME Software should use this field where appropriate.

To manage notifications about this bug go to:
https://bugs.launchpad.net/developer-portal/+bug/1663060/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to