Addshore added a comment.

  > as this system is currently architected with the service living on wmcs
  
  This is not how the system is currently architected.
  The main architecture of note here is 1) an already deployed MediaWiki 
extension that makes an API call to a service and 2) the service
  The Service can run anywhere, the idea of T285098 
<https://phabricator.wikimedia.org/T285098> was to first deploy this to wmcs to 
prove the system is better than the existing system and then to go with a 
rollout in production and needing to allocate production resources for what is 
initially an A/B test.
  As we seemingly are not able to do this per the discussion in that ticket, 
this the target of this service will be deployment to wikimedia production.
  
  > and wanting to communicate directly with Wikimedia production
  
  This is probably relevant but in both a production and wmcs deployment 
situation this communication is one way.
  This is production communication with this service (the recommender API)
  This is as described in the description of T285098 
<https://phabricator.wikimedia.org/T285098> including example payloads
  
    $response = MediaWikiServices::getInstance()->getHttpRequestFactory()->post(
                        $this->schemaTreeSuggesterUrl,
                        [
                                'postData' => json_encode( [
                                        'Properties' => $properties,
                                        'Types' => $types
                                ] ),
                                'timeout' => 1
                        ],
                        __METHOD__
                );
  
  And the data would look something like this:
  
    {
      "properties": [
        "P1"
        "P2452",
        "P3513551"
      ],
      "types": [
        "Q13",
        "Q245125",
        "Q1314"
      ]
    }

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

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

To: Addshore
Cc: sbassett, Michaelcochez, Martaannaj, Lydia_Pintscher, Addshore, 
WMDE-leszek, karapayneWMDE, Aklapper, Invadibot, Devnull, maantietaja, 
Akuckartz, Jcross, Dsharpe, DannyS712, Nandana, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, 
Bawolff, Mbch331, Legoktm
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to