-
Notifications
You must be signed in to change notification settings - Fork 1
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
prod_name in get_par_by_name #537
Conversation
it seems to make sense, but could you please explain a little bit the motivation? |
I came up with this in the context of oda-hub/dispatcher-plugin-nb2workflow#47. When I build a request to the backend, I want to be sure that the parameter I'm working with is coming from the proper product. If parameters with the same name are annotated differently in the notebooks, they are not equivalent in the dispatcher. It addresses the TODO comment
It's not a strictly necessary change, I guess, as the problem in oda-hub/dispatcher-plugin-nb2workflow#47 concerns SourceQuery parameters, but it's cleaner to use it this way |
Codecov Report
@@ Coverage Diff @@
## master #537 +/- ##
==========================================
+ Coverage 62.27% 62.32% +0.04%
==========================================
Files 45 45
Lines 7606 7620 +14
==========================================
+ Hits 4737 4749 +12
- Misses 2869 2871 +2
|
something breaks though |
oh, do we already have test for this? could you add one? |
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.
Very useful thanks.
EDIT: also a dedicated test would be really useful, something was already done here:
dispatcher-app/tests/test_parameters.py
Line 34 in fe7aaf5
def test_repeating_parameters(add_duplicate): |
Co-authored-by: Gabriele Barni <burnout87@users.noreply.github.com>
Co-authored-by: Gabriele Barni <burnout87@users.noreply.github.com>
could you merge please? |
I add you to maintainers, I think you add enough code. I merge though |
No description provided.