Merge branch 'za/1243-import-org-data' of https://github.com/cisagov/manage.get.gov into za/1243-import-org-data

This commit is contained in:
zandercymatics 2023-11-22 08:29:49 -07:00
commit 4b625d32de
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -423,7 +423,7 @@ Used by the migration scripts to trigger a prompt for deleting all table entries
Useful for testing purposes, but *use with caution*
## Import organization data
During MVP, our import scripts did not populate the following fields: `address_line, city, state_territory, and zipcode`. This was primarily due to time constraints. Because of this, we need to run a follow-on script to load this remaining data on each `DomainInformation` object.
During MVP, our import scripts did not populate the following fields: `address_line, city, state_territory, and zipcode` for organization address in Domain Information. This was primarily due to time constraints. Because of this, we need to run a follow-on script to load this remaining data on each `DomainInformation` object.
This script is intended to run under the assumption that the [load_transition_domain](#step-1-load-transition-domains) and the [transfer_transition_domains_to_domains](#step-2-transfer-transition-domain-data-into-main-domain-tables) scripts have already been ran.
@ -470,6 +470,6 @@ The `load_organization_data` script has five optional parameters. These are as f
|:-:|:---------------------------------|:----------------------------------------------------------------------------|
| 1 | **sep** | Determines the file separator. Defaults to "\|" |
| 2 | **debug** | Increases logging detail. Defaults to False |
| 3 | **directory** | Specifies the containing directory of the data. Defaults to "migrationdata" |
| 3 | **directory** | Specifies the directory containing the files that will be parsed. Defaults to "migrationdata" |
| 4 | **domain_additional_filename** | Specifies the filename of domain_additional. Used as an override for the JSON. Has no default. |
| 5 | **organization_adhoc_filename** | Specifies the filename of organization_adhoc. Used as an override for the JSON. Has no default. |