[Wikidata-bugs] [Maniphest] [Updated] T173842: [BUG] Wikidata description for the specific Chinese language variant should be shown

2019-07-31 Thread JoeWalsh
JoeWalsh removed parent tasks: T148854: Use RESTBase for zhwiki, T159985: 
Implement language variant support in the REST API.
Restricted Application changed the subtype of this task from "Task" to "Bug 
Report".

TASK DETAIL
  https://phabricator.wikimedia.org/T173842

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: cooltey, JoeWalsh
Cc: shinjiman, Yuriy_kosygin, Addshore, CXuesong, fantasticfears, cscott, 
gerritbot, Liuxinyu970226, cooltey, Dbrant, Mholloway, bearND, Tbayer, 
Aklapper, RHo, darthmon_wmde, Sunny00217, 94rain, DannyS712, Nandana, 
Charlotte, Lahi, Gq86, Sharvaniharan, BJ6123C7BTD, schoenbaechler, Maggouri, 
Jcasariego, GoranSMilovanovic, lisong, RazeSoldier, Allthingsgo, QZanden, 
LawExplorer, _jensen, rosalieper, Taiwania_Justo, LNDDYL, Fuzheado, Cwek, 
Wikidata-bugs, aude, zhuyifei1999, Shizhao, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Updated] T224678: Feature request: ability to include labels for related entities in wbgetentities responses

2019-06-06 Thread JoeWalsh
JoeWalsh added a subscriber: MarkTraceur.
JoeWalsh added a comment.


  @alaa_wmde thanks for the response. A separate endpoint like 
`wbgetentitiesfordisplay` would also be a good solution, doesn't need to be a 
parameter on `wbgetentities`. Added other answers inline below.
  
  > how many use-cases are there where wbgetentities response is used directly 
to display labels of linked/related entities, requiring a second request to get 
those labels?
  
  The use case is displaying image metadata from the structured data on 
commons. The image metadata would be displayed in the image gallery view on 
articles. It would also be displayed in an "edit suggestions" feature that 
allows users to discover and edit images that need structured data or 
translations of structured data. I'm not aware of other use cases at the 
moment, but will provide them here if I come across any more.
  
  > how big (nr. of entities) is a typical second request to get labels of 
linked/related entities?
  
  Currently, it'd be one entity lookup for each statement plus any entities 
referenced within the statements. These numbers will increase as new statements 
are added to images for other pieces of metadata, likely settling somewhere in 
the range of 10-20 entities per item (estimate from @marktraceur based on this 
statistic from wikidata 
<https://grafana.wikimedia.org/d/00175/wikidata-datamodel-statements?refresh=30m&panelId=4&fullscreen&orgId=1>).
 It's possible that these requests would also be batched for all the commons 
images in a given article, which would multiply that 10-20 number by the 
average number of images in an article.
  
  > how complicated does the second request make the client dealing with it?
  
  It's not that complicated for the clients to make two requests, but the 
bigger downside is having to make two network requests that can't be 
parallelized.
  
  > is the second request a complete blocker in any of those use-cases?
  
  It's not a complete blocker, but would slow down results due to the 
additional network round trip.
  
  > any useful links to existing tasks of work-arounds for or discussions of 
this issue in other projects?
  
  Suggested edit feature that will show the image metadata: T224051 
<https://phabricator.wikimedia.org/T224051>
  New image metadata screen: T223132 
<https://phabricator.wikimedia.org/T223132> 
  Current middleware request to support these features: T224132 
<https://phabricator.wikimedia.org/T224132>
  
  Let me know if you have any other questions. Thanks!

TASK DETAIL
  https://phabricator.wikimedia.org/T224678

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: alaa_wmde, JoeWalsh
Cc: MarkTraceur, Charlotte, alaa_wmde, Mholloway, Aklapper, JoeWalsh, 
darthmon_wmde, Premeditated, Nandana, Lahi, Gq86, Sharvaniharan, 
schoenbaechler, GoranSMilovanovic, QZanden, cmadeo, LawExplorer, _jensen, 
rosalieper, Wikidata-bugs, aude, Dbrant, Jdforrester-WMF, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Retitled] T224678: Feature request: ability to include labels for related entities in wbgetentities responses

2019-05-30 Thread JoeWalsh
JoeWalsh renamed this task from "Feature request: ability to include labels for 
related entities in wbgetentities response" to "Feature request: ability to 
include labels for related entities in wbgetentities responses".

TASK DETAIL
  https://phabricator.wikimedia.org/T224678

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JoeWalsh
Cc: Aklapper, JoeWalsh, darthmon_wmde, Premeditated, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Wikidata-bugs, 
aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Created] T224678: Feature request: ability to include labels for related entities in wbgetentities response

2019-05-30 Thread JoeWalsh
JoeWalsh created this task.
JoeWalsh added projects: MediaWiki-extensions-WikibaseRepository, Wikidata.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  To add additional structured data to new APIs, the Reading Infrastructure 
team would like the ability to include labels for related entities included in 
`wbgetentities` responses to avoid having to make a second request for that 
information.
  
  **Current behavior:**
  
  A request like 
https://commons.wikimedia.org/w/api.php?action=wbgetentities&languages=en&formatversion=2&ids=M41837276&format=json
 returns:
  
{
  "entities": {
"M41837276": {
  "pageid": 41837276,
  "ns": 6,
  "title": "File:Pluto-01 Stern 03 Pluto Color TXT.jpg",
  "lastrevid": 349086472,
  "modified": "2019-05-07T13:02:06Z",
  "type": "mediainfo",
  "id": "M41837276",
  "labels": {
"en": {
  "language": "en",
  "value": "High-resolution MVIC image of Pluto in enhanced color 
to bring out differences in surface composition."
}
  },
  "descriptions": {},
  "statements": {
"P180": [
  {
"mainsnak": {
  "snaktype": "value",
  "property": "P180",
  "hash": "37091d3741ed1d6b19bf23f5947366650883be7d",
  "datavalue": {
"value": {
  "entity-type": "item",
  "numeric-id": 339,
  "id": "Q339"
},
"type": "wikibase-entityid"
  }
},
"type": "statement",
"id": "M41837276$31a303cd-44a6-e116-09ab-fb02d71f2aef",
"rank": "preferred"
  }
]
  }
}
  },
  "success": 1
}
  
  **Desired behavior:**
  
  A parameter that would alter the response to include labels of related 
entities (`P180` and `Q339` in this example):
  
{
  "entities": {
"M41837276": {
  "pageid": 41837276,
  "ns": 6,
  "title": "File:Pluto-01 Stern 03 Pluto Color TXT.jpg",
  "lastrevid": 349086472,
  "modified": "2019-05-07T13:02:06Z",
  "type": "mediainfo",
  "id": "M41837276",
  "labels": {
"en": {
  "language": "en",
  "value": "High-resolution MVIC image of Pluto in enhanced color 
to bring out differences in surface composition."
}
  },
  "descriptions": {},
  "statements": {
"P180": {
  "labels": {
"en": {
  "language": "en",
  "value": "depicts"
}
  },
  "values": [
{
  "mainsnak": {
"snaktype": "value",
"property": "P180",
"hash": "37091d3741ed1d6b19bf23f5947366650883be7d",
"datavalue": {
  "value": {
"entity-type": "item",
"numeric-id": 339,
"id": "Q339",
"labels": {
  "en": {
"language": "en",
"value": "Pluto"
  }
}
  },
  "type": "wikibase-entityid"
}
  },
  "type": "statement",
  "id": "M41837276$31a303cd-44a6-e116-09ab-fb02d71f2aef",
  "rank": "preferred"
}
  ]
}
  }
}
  },
  "success": 1
}
  
  Open to suggestions about structure of the response or other ways to achieve 
this.

TASK DETAIL
  https://phabricator.wikimedia.org/T224678

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JoeWalsh
Cc: Aklapper, JoeWalsh, darthmon_wmde, Premeditated, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Wikidata-bugs, 
aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Claimed] T206786: Allow mobile description editing in English

2019-01-08 Thread JoeWalsh
JoeWalsh claimed this task.
TASK DETAILhttps://phabricator.wikimedia.org/T206786EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JoeWalshCc: Tbayer, Lydia_Pintscher, ABorbaWMF, cmadeo, JoeWalsh, Dbrant, Mhurd, JMinor, NHarateh_WMF, LGoto, Aklapper, Nandana, Lahi, Gq86, Sharvaniharan, schoenbaechler, GoranSMilovanovic, QZanden, Taquo, LawExplorer, catalandres, _jensen, D3r1ck01, Karthik_sripal, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Claimed] T206786: Allow mobile description editing in English

2019-01-08 Thread JoeWalsh
JoeWalsh claimed this task.
TASK DETAILhttps://phabricator.wikimedia.org/T206786EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JoeWalshCc: Tbayer, Lydia_Pintscher, ABorbaWMF, cmadeo, JoeWalsh, Dbrant, Mhurd, JMinor, NHarateh_WMF, LGoto, Aklapper, Nandana, Lahi, Gq86, Sharvaniharan, schoenbaechler, GoranSMilovanovic, QZanden, Taquo, LawExplorer, catalandres, _jensen, D3r1ck01, Karthik_sripal, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Reassigned] T206786: Allow mobile description editing in English

2019-01-08 Thread JoeWalsh
JoeWalsh reassigned this task from JoeWalsh to NHarateh_WMF.
TASK DETAILhttps://phabricator.wikimedia.org/T206786EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: NHarateh_WMF, JoeWalshCc: Tbayer, Lydia_Pintscher, ABorbaWMF, cmadeo, JoeWalsh, Dbrant, Mhurd, JMinor, NHarateh_WMF, LGoto, Aklapper, Nandana, Lahi, Gq86, Sharvaniharan, schoenbaechler, GoranSMilovanovic, QZanden, Taquo, LawExplorer, catalandres, _jensen, D3r1ck01, Karthik_sripal, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Changed Subscribers] T193360: Cantonese Wikipedia mobile app interface cannot edit yue descriptions from Wikidata

2018-12-14 Thread JoeWalsh
JoeWalsh added a subscriber: NHarateh_WMF.JoeWalsh added a comment.
@cooltey - @bearND is right that the language should be changed from zh-yue to yue. There are a few other entries in the mapping dictionary on iOS so those should be adjusted before passing to language as well. @NHarateh_WMF is there anything else that needed to change on the iOS side or just the language code?TASK DETAILhttps://phabricator.wikimedia.org/T193360EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JoeWalshCc: NHarateh_WMF, Jdforrester-WMF, JMinor, JoeWalsh, Aklapper, ABorbaWMF, cooltey, Dbrant, Hello903hello, Tgr, bearND, Charlotte, RHo, Liuxinyu970226, deryckchan, Nandana, Lahi, Gq86, Sharvaniharan, schoenbaechler, GoranSMilovanovic, QZanden, cmadeo, Taquo, LawExplorer, catalandres, _jensen, D3r1ck01, Karthik_sripal, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Claimed] T193360: Cantonese Wikipedia mobile app interface cannot edit yue descriptions from Wikidata

2018-11-05 Thread JoeWalsh
JoeWalsh edited projects, added iOS-app-v6.1.1-Narwhal-On-A-Magic-Pumpkin; removed iOS-app-v6.2.JoeWalsh claimed this task.
TASK DETAILhttps://phabricator.wikimedia.org/T193360EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JoeWalshCc: Aklapper, ABorbaWMF, cooltey, Dbrant, Hello903hello, Tgr, bearND, Charlotte, RHo, Liuxinyu970226, deryckchan, Nandana, Lahi, Gq86, Sharvaniharan, schoenbaechler, GoranSMilovanovic, QZanden, cmadeo, Taquo, LawExplorer, catalandres, Karthik_sripal, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs