-
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
ACAS-1023 -- Adjusted checkExistance to use FindByProtocolNameLike #85
Conversation
Hi @brianbolt -- this is pull request that is dependent upon mcneilco/acas-roo-server#444, which implements a protocol name like. Let me know the best way to tie these pull requests together. Thanks! Phil |
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.
Overall this LGTM but a few changes I think needed:
- Can you fill in a Description and How it was tested?
- I think the user should be warned that the protocol they entered in the upload sheet is different than what was entered. That is, once the R code recognizes that there is a match, get the name and compare exact with what they entered. If it's not an exact match then do something like:
- untested just wrote this inline
protcolNameLabel <- paste0(racas::applicationSettings$client.protocol.label, " name")
warnUser(paste0("The ", protcolNameLabel, " you entered '", protocolName, "' does not exactly match the ", protocolNameLabel, " found.")
- This seems like something we should have acasclient tests for. A test where you upload a file with a unique protocol name which has upper case characters, then you load the file again with lower case. The test should verify that the warnings are thrown (there are example in the acasclient tests for checking warnings/errors, and also that if you proceed, the file is uploaded to the correct protocol.
Added @bffrost just so he's aware of this incoming change. |
Thanks @brianbolt . I agree with your feedback. Right now if I understand this correctly, it seems like this change would prevent users from creating any two protocols where one's name is a substring of the other's name. FWIW we had a similar feature request from the Data Team:
@philippcheung any interest in extending your Roo implementation to do a fuzzy match instead of just a "like"? |
Description
Related Issue
How Has This Been Tested?