-
Notifications
You must be signed in to change notification settings - Fork 134
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
Merge select one and select multiple options at MergedXform creation #2015
Conversation
e8c892b
to
efe5224
Compare
efe5224
to
775e2d9
Compare
90c58b4
to
322fc88
Compare
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.
It's getting close
if element_list: | ||
element = element_list[0] | ||
children += element['children'] |
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.
For line 92, is it correct to assume that element
will always be a non-empty dictionary with a children
key? What would happen in line 92 if element_list
in line 90 is empty?
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.
going to change these lines to
if element_list and element_list[0]:
children += element_list[0]['children']
65333db
to
8dfa439
Compare
This also reverts: b6b0343
8dfa439
to
14ea161
Compare
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.
Looks good to me
Closes #2016
Changes proposed
select one
andselect multiple
options at MergedXform creation(in the serializer). This is better because it would work for all the endpoints that make use of these options (not only the charts endpoint)NB: Earlier added tests for the charts endpoints and all existing test should still pass