Stream: cds hooks
Topic: calling a cds service - context
Brett Esler (Jul 12 2017 at 00:26):
Just looking at implementing "order-review" hook and want to populate the "context" field as per http://cds-hooks.org/#calling-a-cds-service
Brett Esler (Jul 12 2017 at 00:27):
specification states "object" example in sidebar is an array?
Brett Esler (Jul 12 2017 at 00:28):
also order-review context is "The set of orders being reviewed on-screen" so not sure what to do here? Should it be a Bundle
(object) or an array (set) of orders?
Grahame Grieve (Jul 13 2017 at 14:49):
I think it should be an array
Kevin Shekleton (Jul 14 2017 at 03:47):
@Brett Esler - We have done a poor job of clearly documenting what context
is for each hook. This is something we will be addressing (see #39).
Brett Esler (Jul 14 2017 at 14:47):
Thanks @Kevin Shekleton the previous discussions helped getting the current picture. Any folks have comments how 'order-review' hook context might be defined? Thinking context with key of "orders" as an array with any of the order/request resource types.
Grahame Grieve (Jul 25 2017 at 06:49):
definitely needs to be a list - you review the order set, not each order
Last updated: Apr 12 2022 at 19:14 UTC