-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feature Request: Allow the part column name to be specified on cli/config to avoid prompting during multi-column file import #41
Comments
Currently columns named
What do you use in your BOM files? If it seems reasonable enough, we could simply add it to that list. Otherwise I think I'd prefer exposing this as a config option (2.).
This wouldn't be a problem in this case, as you could add multiple column names. |
Didn't know about that capability with multiple pre-named header columns - very helpful. I use the same column headers as InvenTree BOM, which include As we've been discussing (#38), I use IPN which means the field I care about is Changing |
Optional config parameters are super simple to add, that's why I generally prefer them to extra CLI options ^^ There's a new |
Wonderful. Confirmed working with both the new default with |
Perfect, thanks for confirming ^^ |
Background and use case
I am working on automating the workflow from my electronics design software to Inventree, including importing new parts. I currently export a single multi-column file which is used for part creation with
inventree_part_import
and for BOM import into Inventree. When usinginventree_part_import -i false somefile.csv
the user is required to manually select which column to use for the import, halting the automated process.This feature request is to be able to specify the column name in advance of import to avoid the prompt.
User experience options
--import-column my-column-name
.config.yaml
option that specifies the column name.This may be too rigid, as importing a file using a different column name would require editing the config file.
--import-column false
or--import-column default
to ignore it.While the most flexible approach, it feels like overkill for a low-use feature.
My recommendation is option 1. I'm willing to do a pull-request if approved.
The text was updated successfully, but these errors were encountered: