Repository navigation
Conversation
|
Hi @dmakushin, thanks for catching and fixing this bug! The current patch correctly resolves the immediate issue. However, I'd like to suggest a slightly more robust architectural approach. Instead of just adjusting the
Why this approach is better:
Here is how the caller side would look with this approach: fromItemArgs, err := expressFromItems(ctx, w, d, start+len(args), u.FromItems)
if err != nil {
return nil, err
}
args = append(args, fromItemArgs...)What do you think about refactoring it this way? cc @stephenafamo to keep him in the loop regarding this architectural detail. |
|
Hi @atzedus , I have nothing against this plan. I've already forgotten the details, so it's hard for me to give a confident comments. Feel free to do whatever makes the most sense. I can close this PR for convenience. |
|
Hi @dmakushin, following up on the discussion above - I've opened #786 with the same fix refactored per my suggestion (helper returns only new args, bob.Express*-style contract). Your original fix and tests are carried over with credit. This PR can be closed now, thanks again! |
|
Amazing! Thank you. Closing this one. |
Fixes #772.