-
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
Add support for importing inventory and products #179
Conversation
@dubdabasoduba please review the resources created for products and inventories here @pld @ukanga I'm going to use the other PR ( #178 ) for a proper refactor, just trying to unblock this here |
a647f81
to
1fc65e8
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.
this looks pretty good, we could probably make it a little tighter but we'd have to get into python internals in a way that would make it less readable, open to ideas, but I'd be comfortable merging this in
importer/main.py
Outdated
for x in reversed(del_indexes): | ||
del payload_obj["resource"]["characteristic"][x] |
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.
think you can move this after the conditional, like to line 740
importer/main.py
Outdated
for x in reversed(del_indexes): | ||
del payload_obj["resource"]["characteristic"][x] |
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.
can remove entirely if you move this or other one below the conditional
IMPORTANT: Where possible all PRs must be linked to a Github issue
Part of #157
Built this branch off of #178 so it might look a bit more loaded
Engineer Checklist
./gradlew spotlessApply
to check my code follows the project's style guide