You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: importer/README.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -137,11 +137,12 @@ The coverage report `coverage.html` will be at the working directory
137
137
- The csv_file containing the exported resources is labelled using the current time, to know when the resources were exported for example, csv/exports/2024-02-21-12-21-export_Location.csv
138
138
139
139
### 10. Import products from openSRP 1
140
-
- Run `python3 main.py --csv_file csv/import/product.csv --setup products --log_level info`
- See example csv [here](/importer/csv/import/product.csv)
142
142
- This creates a Group resource for each product imported, a Binary resource for any products with an image, and a List resource with references to all the Group and Binary resources created
143
143
- The first two columns __name__ and __active__ is the minimum required
144
144
- The last column __imageSourceUrl__ contains a url to the product image. If this source requires authentication, then you need to provide the `product_access_token` in the config file. The image is added as a binary resource and referenced in the product's Group resource
145
+
- You can pass in a `list_resource_id` to be used as the identifier for the List resource, or you can leave it empty and a random uuid will be generated
145
146
146
147
### 11. Import inventories from openSRP 1
147
148
- Run `python3 main.py --csv_file csv/import/inventory.csv --setup inventories --log_level info`
0 commit comments