-
Notifications
You must be signed in to change notification settings - Fork 207
Remove rouge "values" key when building ObjectDict from xml #121
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #121 +/- ##
============================================
- Coverage 77.27% 46.83% -30.45%
============================================
Files 18 4 -14
Lines 955 632 -323
Branches 92 64 -28
============================================
- Hits 738 296 -442
- Misses 212 324 +112
- Partials 5 12 +7
Continue to review full report at Codecov.
|
|
Addresses |
7cd54fd to
0725d9d
Compare
|
on the face of things I can't see any issues with this. Would there be any use cases where that empty string may be required (I can't think of any) |
|
thank you for this. I referenced my pull request from 1 year ago where we agreed to use xmltodict. |
|
@elcolumbio using However, #75 appears to be a much larger piece of work as evidenced that it has been open for over a year. Would there be any issue with merging this and creating a patch release to be able to get some of the benefits sooner? If anything, it would be one step closer to the behaviour of |
|
@tomdottom just re-reading #69 quickly, and @GriceTurrble has pointed out some edge cases that may be affected by changing the current behaviour. Could you write some tests to show that these edge cases would not be affected by your change? If they are not, then its probably safe to merge and get some benefits on the develop branch. @elcolumbio for your merge request, I would like to see @GriceTurrble sign that one off or @jameshiew as its has a lot more changes in there. |
|
I still think we should just merge #75 to develop and use the next month for user feedback. I had a brief look at your code. One tiny issue: In your CLI you used the new syntax: XML2Dict in your commit you didn't. |
|
I am just getting started again, probably i make a lot of mistakes. We get binary strings from the amazon api and i think it's easier to solve those issue by writing the test input in binary strings. Like here, also what i referenced before: python-amazon-mws/tests/test_wrappers.py Lines 51 to 73 in 7e387b0
|
|
Firstly @Bobspadger thanks for getting the Danger Mouse theme tune stuck in my head 🎵 ... He's fantastic ... 🎵 Moving on, are the edge cases from @GriceTurrble that you eluded to enumerated anywhere (issues, project tasks, etc ...)? It would help to know which pathways, or upstream/downstream dependencies, of the current Cheers |
|
It is possible to rewrite our own XML2Dict, or we use the python module xmltodict. import xmltodict
xmltodict.parse(example_response, dict_constructor=dict,
process_namespaces=False,
force_cdata=False) |
but, lot of "values" was there too. i used the orders modules,and "get_order" interface. |
Before
Pasring produces unwanted entries of
'value': '\n 'After