-
Notifications
You must be signed in to change notification settings - Fork 0
Crosslink 198 initial #384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| func (a *PatronRequestApiHandler) GetPatronRequests(w http.ResponseWriter, r *http.Request, params proapi.GetPatronRequestsParams) { | ||
| symbol, err := api.GetSymbolForRequest(r, a.tenant, params.XOkapiTenant, params.Symbol) | ||
| logParams := map[string]string{"method": "GetPatronRequests", "side": params.Side, "symbol": symbol} | ||
| func (a *PatronRequestApiHandler) GetStateModelModelsReturnables(w http.ResponseWriter, r *http.Request) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kurtnordstrom let's bundle returnables.yaml with the app and unmarshal here and serialize on GET
| InvokeAction(common.ExtendedContext, events.Event) | ||
| } | ||
|
|
||
| type ReturnablesPatronRequestActionService struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kurtnordstrom action mapping service should not be state model specifc, it's just a collection of all action implementationsthat can be used in a specific state model
| - actionResult | ||
|
|
||
| paths: | ||
| /state_model/models/returnables: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kurtnordstrom let's not harcode the state model name in the path but match the {name} against the bundled file name
| } | ||
|
|
||
| /* Constructor function to initialize the mappings for the returnables */ | ||
| func NewReturnableActionMapping() *ReturnableActionMapping { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kurtnordstrom let's pass StateModel to the constructor to set up the mapping and drop the ReturnableActionMapping concrete impl since, I think, it will all be controlled via the StateModel
No description provided.