Enabling validation of the business start date on CSV import

By default, the effective date specified in the Business Start column of a CSV file is not validated during the import. Thus, previously exported artifacts can be imported without causing errors even if their start date is in the past. However, you might want to prevent import of artifacts with an explicitly specified start date in the past. In this case, you can enable the validation of the value in the Business Start column.

Required role
To complete this task, you must be an administrator of the project (namespace) where you deployed the IBM Knowledge Catalog service.

To change the setting, complete the following steps:

  1. Log into the cluster by running the following command:
    oc login <OpenShift_URL>:port
    
    Alternatively, you can use ssh to log in to the cluster.
  2. Edit the wkc-glossary-service deployment to open the deployment file:
    oc edit deployment wkc-glossary-service
    
  3. Add the BG_IMPORT_BUSINESS_START_VALIDATION_ENABLED flag to the deployment file and set it to true.
  4. Find the env section in the section labeled containers. The section contains multiple lines of key-value pairs. Add the following entry anywhere in the env section. Use spaces to match the current indentation level when you add the flag. Do not use the Tab key.
    - name: BG_IMPORT_BUSINESS_START_VALIDATION_ENABLED
      value: "true"
    
  5. Save the deployment file and exit it. The pod is automatically restarted.
  6. Wait for the new wkc-glossary-service pod to be created and running.
  7. Log out of the cluster.

The date specified in the Business Start column of a CSV import file is now validated during the import. If the date is in the past, the respective artifact is not imported.