Skip to content
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

OBPIH-4677 PO with canceled items only should not be visible on PO sh… #3412

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

kchelstowski
Copy link
Collaborator

…ipment dropdown

Copy link
Member

@jmiranda jmiranda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but we should probably think about making the code more readable (including a comment about what's happening).

orderNumber: it.orderNumber
]
}
] as JSON)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd feel more comfortable if this was either

    def data = ...
    render([data: data] as JSON)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, the code here is complex enough that it probably deserves to be migrated to the service so we can write tests for it. Since you haven't changed much about the original code (aside from formatting), we can leave it as-is, but I'd like to refactor this a bit when we get a chance.

@jmiranda jmiranda merged commit 01a8cef into develop Aug 16, 2022
@jmiranda jmiranda deleted the OBPIH-4677 branch August 16, 2022 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants