-
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
Add pv argument to get_all_pvs that allows a glob pattern. #53
Conversation
8ac80e4
to
23d14dd
Compare
Pull Request Test Coverage Report for Build 368
💛 - Coveralls |
@willrogers Any reason why this was not merged? |
I don't remember. Does it look ok to you? |
It looks sensible enough. I will test it, and assuming it works, rebase and merge. |
OK I think I know the reason why you postponed this. I get the same test failure that you do. Adding the extra argument here makes this the only use with more than one URL parameter. Because of the non-deterministic ordering in dictionaries, two successive calls to My preferred way to fix this would be to change I guess at the time you questioned whether this was worth it. I think it probably is so I'll go ahead and do it for neatness' sake. |
That sounds right. Deterministic URLs make sense I think. |
Addition of `pv` argument to `RestClient.get_all_pvs` showed up a problem in `_construct_url` that ordering of URL parameters was not repeatable because they are got from the kwargs as a dict. We get around this by sorting by key and storing as a list of tuples of (key, value). We assume that no-one cares what the order of URL parameters is, as long as it is deterministic.
Codecov Report
@@ Coverage Diff @@
## master #53 +/- ##
==========================================
+ Coverage 97.60% 97.62% +0.02%
==========================================
Files 10 10
Lines 625 632 +7
==========================================
+ Hits 610 617 +7
Misses 15 15
Continue to review full report at Codecov.
|
Thanks, looks good. |
No description provided.