Silvan_WMDE added subscribers: Ollie.Shotton_WMDE, Silvan_WMDE.
Silvan_WMDE added a comment.


  **Task Breakdown Notes:**
  
  WHEN I provide the _fields parameter containing allowed field names: -- 
subtask to be created by @Silvan_WMDE
  
  - in the RouteHandler, construct the GetItemRequest object based on both the 
ItemId and the `_fields` request parameter
  - in the GetItem use case, filter the itemSerialization based on the 
`_fields` from the GetItemRequest
    - create a new `GetItemFieldsFilter` object that filters the 
itemSerialization based on requested fields
  - since it is an array, the filtered ItemSerialization can still be passed 
into GetItemResult
  
  WHEN I provide the _fields parameter including a value which is not allowed: 
subtask to be created by @Ollie.Shotton_WMDE
  
  - use the validator to return a new "Failure" GetItemResult (with 
`isSuccessful() == false`)
  - the RouteHandler will create an error response (set http status, code, 
message) based on the GetItemResult

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

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

To: Silvan_WMDE
Cc: Silvan_WMDE, Ollie.Shotton_WMDE, Aklapper, WMDE-leszek, 
Fernandobacasegua34, Astuthiodit_1, 786, Suran38, Biggs657, karapayneWMDE, 
Invadibot, Lalamarie69, maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, 
Akuckartz, Hook696, Kent7301, joker88john, CucyNoiD, Nandana, Gaboe420, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, 
QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, rosalieper, Neuronton, 
Scott_WUaS, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to