-
Notifications
You must be signed in to change notification settings - Fork 2
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
DDP-6484 test boston manual orders #215
base: develop
Are you sure you want to change the base?
Conversation
|
||
@Ignore | ||
@Test | ||
public void testOrderForParticipant() throws Exception { |
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.
The only thing going on here was placing an order, so in the spirit of not doing stuff like this in a "test", it's gone!
src/main/java/org/broadinstitute/dsm/model/birch/RegisterBirchOrderCLI.java
Outdated
Show resolved
Hide resolved
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.
Nice CLI! I like that we take in a config file and it reuses a lot of the existing Covid19OrderRegistrar
functionality (from what I can tell) for placing an order. Just a few suggestions below.
src/main/java/org/broadinstitute/dsm/model/birch/RegisterBirchOrderCLI.java
Outdated
Show resolved
Hide resolved
src/main/java/org/broadinstitute/dsm/model/birch/RegisterBirchOrderCLI.java
Outdated
Show resolved
Hide resolved
private static final String USAGE = "args in order are hruid, kitLabel, externalOrderNumber, and collectionTime\n" + | ||
"for example java -Dconfig.file=... RegisterBirchOrderCLI P1234 TBOS-123 12345678910111213 06/30/2020 15:34\n" + | ||
"Make sure you are on a broad network\n"; | ||
public static final String DATE_FORMAT = "MM/dd/yyyy HH:mm"; |
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.
@yufengwng your suggestion worked once I updated this from hh
to HH
(I've been putting in hours as 0-23).
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.
Noted! And it's helpful that the "usage" string shows an example of 15:34
hinting at 24-hr format!
Ready for re-review |
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.
LGTM
DDP-6484 provides a one-off java CLI for placing CareEvolve orders for kits that arrive without UPS data. See DDP-6484 for more details.
To test this on dev, I used the following set of args:
P02133 TBOS-100006T XWPE86O8WIYS2XWO228J "01/01/1970 00:00"
As for the "test" class, it was a temporary measure for placing orders. The new CLI is much better, so I've removed the "test".